diff --git a/.php_cs.dist b/.php_cs.dist index c7e1dc9..6ade6e3 100755 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -1,17 +1,5 @@ 0) { - require_once current($files); -} - -use SLLH\StyleCIBridge\ConfigBridge; - $header = << @@ -20,39 +8,31 @@ file that was distributed with this source code. EOF; $rules = [ - '@Symfony' => true, - '@Symfony:risky' => true, - '@PHP70Migration' => true, - '@PHP71Migration:risky' => true, - 'array_syntax' => [ - 'syntax' => 'short', - ], - 'binary_operator_spaces' => [ - 'default' => 'align', - ], - 'combine_consecutive_issets' => true, - 'combine_consecutive_unsets' => true, - 'compact_nullable_typehint' => true, - 'header_comment' => [ - 'header' => $header, - ], - 'no_extra_consecutive_blank_lines' => true, - 'no_php4_constructor' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'ordered_class_elements' => true, - 'ordered_imports' => true, - 'phpdoc_order' => true, - 'php_unit_strict' => true, ]; $finder = PhpCsFixer\Finder::create() - ->in( __DIR__) - ->exclude('tests/Fixtures') + ->in([ __DIR__.'/src', __DIR__.'/tests']) ; -return PhpCsFixer\Config::create() - ->setFinder($finder) + +$config = PhpCsFixer\Config::create() ->setRiskyAllowed(true) - ->setRules($rules) - ->setUsingCache(true) + ->setRules([ + '@Symfony' => true, + '@Symfony:risky' => true, + '@PHP70Migration' => true, + '@PHP71Migration:risky' => true, + '@PHPUnit60Migration:risky' => true, + 'header_comment' => [ + 'header' => $header, + ], + 'list_syntax' => [ + 'syntax' => 'short', + ], + 'binary_operator_spaces' => [ + 'default' => 'align', + ], + ]) + ->setFinder($finder) ; + +return $config;