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 37
37
},
38
38
"require-dev" : {
39
39
"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 "
42
42
},
43
43
"minimum-stability" : " dev" ,
44
44
"prefer-stable" : true ,
50
50
"scripts" : {
51
51
"analyze" : [
52
52
" phpstan analyze" ,
53
- " psalm"
53
+ " psalm" ,
54
+ " rector process --dry-run"
54
55
],
55
56
"ci" : [
56
57
" Composer\\ Config::disableProcessTimeout" ,
57
58
" @analyze" ,
58
- " rector process" ,
59
59
" @style"
60
60
],
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"
63
62
}
64
63
}
Original file line number Diff line number Diff line change 7
7
use ComposerUnused \ComposerUnused \Configuration \PatternFilter ;
8
8
use Webmozart \Glob \Glob ;
9
9
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 1
1
<?php
2
2
3
- use Rector \Config \RectorConfig ;
4
3
use Rector \CodeQuality \Rector \BooleanAnd \SimplifyEmptyArrayCheckRector ;
5
4
use Rector \CodeQuality \Rector \Expression \InlineIfToExplicitIfRector ;
6
5
use Rector \CodeQuality \Rector \For_ \ForToForeachRector ;
18
17
use Rector \CodingStyle \Rector \ClassMethod \FuncGetArgsToVariadicParamRector ;
19
18
use Rector \CodingStyle \Rector \ClassMethod \MakeInheritedMethodVisibilitySameAsParentRector ;
20
19
use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
20
+ use Rector \Config \RectorConfig ;
21
21
use Rector \Core \ValueObject \PhpVersion ;
22
22
use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
23
23
use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
You can’t perform that action at this time.
0 commit comments