From 15b64d3a4ccdad271be3ac755fab94ca93dd61b6 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Sun, 9 Feb 2025 23:28:00 +0100 Subject: [PATCH] chore: update Fixer config --- .php-cs-fixer.php => .php-cs-fixer.dist.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) rename .php-cs-fixer.php => .php-cs-fixer.dist.php (59%) 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,