File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1212 */
1313
1414use Ergebnis \PhpCsFixer ;
15+ use PhpCsFixer \Finder ;
1516
1617$ ruleSet = PhpCsFixer \Config \RuleSet \Php74::create ()
1718 ->withHeader ('' )
3536 'static_private_method ' => false ,
3637 ]));
3738
38- $ config = PhpCsFixer \Config \Factory::fromRuleSet ($ ruleSet );
39-
40- $ config ->getFinder ()
39+ $ finder = Finder::create ()
4140 ->in (__DIR__ . '/test/Fixture/ ' )
4241 ->notPath ([
4342 'CallLikes/NoNamedArgumentRule/ClassUsingInvokableClass.php ' ,
5756 'Methods/NoParameterWithNullableTypeDeclarationRule/script.php ' ,
5857 ]);
5958
59+ $ config = PhpCsFixer \Config \Factory::fromRuleSet ($ ruleSet );
60+
6061$ config ->setCacheFile (__DIR__ . '/.build/php-cs-fixer/.php_cs.fixture.cache ' );
62+ $ config ->setFinder ($ finder );
6163
6264return $ config ;
Original file line number Diff line number Diff line change 1313
1414use Ergebnis \License ;
1515use Ergebnis \PhpCsFixer ;
16+ use PhpCsFixer \Finder ;
1617
1718$ license = License \Type \MIT ::markdown (
1819 __DIR__ . '/LICENSE.md ' ,
2829
2930$ ruleSet = PhpCsFixer \Config \RuleSet \Php74::create ()->withHeader ($ license ->header ());
3031
31- $ config = PhpCsFixer \Config \Factory::fromRuleSet ($ ruleSet );
32-
33- $ config ->getFinder ()
32+ $ finder = Finder::create ()
3433 ->exclude ([
3534 '.build/ ' ,
3635 '.github/ ' ,
4039 ->ignoreDotFiles (false )
4140 ->in (__DIR__ );
4241
42+ $ config = PhpCsFixer \Config \Factory::fromRuleSet ($ ruleSet );
43+
4344$ config ->setCacheFile (__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache ' );
45+ $ config ->setFinder ($ finder );
4446
4547return $ config ;
You can’t perform that action at this time.
0 commit comments