diff --git a/.php-cs-fixer.php b/.php-cs-fixer.dist.php similarity index 59% rename from .php-cs-fixer.php rename to .php-cs-fixer.dist.php index 5377e8d..efdad92 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.dist.php @@ -1,5 +1,18 @@ + * + * 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 XmlMatchesXsd. @@ -10,12 +23,13 @@ with this source code in the file LICENSE. EOF; -$finder = PhpCsFixer\Finder::create() +$finder = Finder::create() ->exclude('tests/Fixtures') ->in(__DIR__) + ->append([__FILE__]) ; -return (new PhpCsFixer\Config()) +return (new Config()) ->setRiskyAllowed(true) ->setRules([ '@PhpCsFixer' => true,