cloud_bbb/.php-cs-fixer.dist.php

26 lines
515 B
PHP
Raw Permalink Normal View History

2020-04-26 11:36:41 +02:00
<?php
declare(strict_types=1);
require_once './vendor/autoload.php';
2020-09-23 12:33:09 +02:00
use Nextcloud\CodingStandard\Config as NextcloudConfig;
use PhpCsFixer\Config;
2020-09-23 12:33:09 +02:00
$nextcloudConfig = new NextcloudConfig();
$config = new Config();
2020-09-23 12:33:09 +02:00
$rules = $nextcloudConfig->getRules();
$rules['ordered_imports'] = ['sort_algorithm' => 'alpha'];
$config
2020-09-23 12:33:09 +02:00
->setIndent("\t")
->setRules($rules)
->getFinder()
->ignoreVCSIgnored(true)
->notPath('build')
->notPath('l10n')
->notPath('src')
->notPath('vendor')
->in(__DIR__);
return $config;