File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed
Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change 44
55use Rector \Config \RectorConfig ;
66use Rector \PHPUnit \Set \PHPUnitSetList ;
7- use Rector \Set \ValueObject \LevelSetList ;
8- use Rector \Set \ValueObject \SetList ;
97
10- return static function (RectorConfig $ rectorConfig ): void {
11- $ rectorConfig ->sets ([
12- LevelSetList::UP_TO_PHP_81 ,
13- SetList::CODE_QUALITY ,
14- SetList::CODING_STYLE ,
15- SetList::DEAD_CODE ,
16- SetList::NAMING ,
17- SetList::PRIVATIZATION ,
18- SetList::TYPE_DECLARATION ,
8+ return RectorConfig::configure ()
9+ ->withPhpSets (php81: true )
10+ ->withPreparedSets (
11+ codeQuality: true ,
12+ codingStyle: true ,
13+ deadCode: true ,
14+ naming: true ,
15+ privatization: true ,
16+ typeDeclarations: true
17+ )
18+ ->withSets ([
1919 PHPUnitSetList::PHPUNIT_100 ,
20- ]);
21-
22- $ rectorConfig ->parallel ();
23- $ rectorConfig ->paths ([__DIR__ . '/src ' , __DIR__ . '/tests ' , __FILE__ ]);
24- $ rectorConfig ->importNames ();
25- };
20+ ])
21+ ->withParallel ()
22+ ->withPaths ([__DIR__ . '/src ' , __DIR__ . '/tests ' , __FILE__ ])
23+ ->withImportNames ();
You can’t perform that action at this time.
0 commit comments