diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..3a9284c --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,39 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +use PhpCsFixer\Config; +use PhpCsFixer\Finder; + +$header = <<<'EOF' +This file is part of PHP CS Fixer / PHPUnit Constraint IsIdenticalString. + +(c) Dariusz Rumiński + +This source file is subject to the MIT license that is bundled +with this source code in the file LICENSE. +EOF; + +$finder = Finder::create() + ->exclude('tests/Fixtures') + ->in(__DIR__) + ->append([__FILE__]) +; + +return (new Config()) + ->setRiskyAllowed(true) + ->setRules([ + '@PhpCsFixer' => true, + '@PhpCsFixer:risky' => true, + '@PHPUnit60Migration:risky' => true, + 'header_comment' => ['header' => $header], + ]) + ->setFinder($finder) +; diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php deleted file mode 100644 index 58ed836..0000000 --- a/.php-cs-fixer.php +++ /dev/null @@ -1,26 +0,0 @@ - - -This source file is subject to the MIT license that is bundled -with this source code in the file LICENSE. -EOF; - -$finder = PhpCsFixer\Finder::create() - ->exclude('tests/Fixtures') - ->in(__DIR__) -; - -return (new PhpCsFixer\Config) - ->setRiskyAllowed(true) - ->setRules([ - '@PhpCsFixer' => true, - '@PhpCsFixer:risky' => true, - '@PHPUnit60Migration:risky' => true, - 'header_comment' => ['header' => $header], - ]) - ->setFinder($finder) -;