File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 3737 },
3838 "require-dev" : {
3939 "codeigniter4/framework" : " ^4.1" ,
40- "rector/rector " : " 0.13.5 " ,
41- "icanhazstring/composer-unused " : " ^0.8.2 "
40+ "icanhazstring/composer-unused " : " ^0.8.2 " ,
41+ "rector/rector " : " 0.13.5 "
4242 },
4343 "minimum-stability" : " dev" ,
4444 "prefer-stable" : true ,
5050 "scripts" : {
5151 "analyze" : [
5252 " phpstan analyze" ,
53- " psalm"
53+ " psalm" ,
54+ " rector process --dry-run"
5455 ],
5556 "ci" : [
5657 " Composer\\ Config::disableProcessTimeout" ,
5758 " @analyze" ,
58- " rector process" ,
5959 " @style"
6060 ],
61- "style" : " php-cs-fixer fix --verbose --ansi --using-cache=no" ,
62- "test" : " phpunit"
61+ "style" : " php-cs-fixer fix --verbose --ansi --using-cache=no"
6362 }
6463}
Original file line number Diff line number Diff line change 77use ComposerUnused \ComposerUnused \Configuration \PatternFilter ;
88use Webmozart \Glob \Glob ;
99
10- return static function (Configuration $ config ): Configuration {
11- return $ config
12- // ->addNamedFilter(NamedFilter::fromString('symfony/config'))
13- // ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
14- ->setAdditionalFilesFor ('codeigniter4/framework ' , [
15- ...Glob::glob (__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php ' ),
16- ]);
17- };
10+ return static fn (Configuration $ config ): Configuration => $ config
11+ // ->addNamedFilter(NamedFilter::fromString('symfony/config'))
12+ // ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
13+ ->setAdditionalFilesFor ('codeigniter4/framework ' , [
14+ ...Glob::glob (__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php ' ),
15+ ]);
Original file line number Diff line number Diff line change 11<?php
22
3- use Rector \Config \RectorConfig ;
43use Rector \CodeQuality \Rector \BooleanAnd \SimplifyEmptyArrayCheckRector ;
54use Rector \CodeQuality \Rector \Expression \InlineIfToExplicitIfRector ;
65use Rector \CodeQuality \Rector \For_ \ForToForeachRector ;
1817use Rector \CodingStyle \Rector \ClassMethod \FuncGetArgsToVariadicParamRector ;
1918use Rector \CodingStyle \Rector \ClassMethod \MakeInheritedMethodVisibilitySameAsParentRector ;
2019use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
20+ use Rector \Config \RectorConfig ;
2121use Rector \Core \ValueObject \PhpVersion ;
2222use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
2323use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
You can’t perform that action at this time.
0 commit comments