|
2 | 2 |
|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
5 |
| -use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector; |
6 | 5 | use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
7 |
| -use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector; |
8 |
| -use Rector\CodingStyle\Rector\Closure\StaticClosureRector; |
9 |
| -use Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector; |
10 | 6 | use Rector\Config\RectorConfig;
|
11 | 7 | use Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector;
|
12 |
| -use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector; |
13 |
| -use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector; |
14 | 8 | use Rector\Php70\Rector\StmtsAwareInterface\IfIssetToCoalescingRector;
|
15 | 9 | use Rector\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector;
|
16 | 10 | use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
|
|
19 | 13 | use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector;
|
20 | 14 |
|
21 | 15 | return RectorConfig::configure()
|
22 |
| - ->withPhpSets() |
23 |
| - ->withPreparedSets() |
| 16 | + ->withCache(__DIR__.'/build/rector') |
24 | 17 | ->withPaths([
|
25 | 18 | __DIR__.'/src',
|
26 | 19 | __DIR__.'/config',
|
27 | 20 | ])
|
| 21 | + ->withPhpSets() |
| 22 | + ->withPreparedSets( |
| 23 | + deadCode: true, |
| 24 | + codeQuality: true, |
| 25 | + codingStyle: true, |
| 26 | + typeDeclarations: true, |
| 27 | + ) |
| 28 | + ->withImportNames( |
| 29 | + importNames: false, |
| 30 | + importDocBlockNames: false, |
| 31 | + importShortClasses: false, |
| 32 | + removeUnusedImports: true |
| 33 | + ) |
28 | 34 | ->withSkip([
|
29 | 35 | AddArrowFunctionReturnTypeRector::class,
|
30 | 36 | AddParamBasedOnParentClassMethodRector::class,
|
31 |
| - CallableThisArrayToAnonymousFunctionRector::class, |
32 |
| - ChangeAndIfToEarlyReturnRector::class, |
33 | 37 | FlipTypeControlToUseExclusiveTypeRector::class,
|
34 | 38 | IfIssetToCoalescingRector::class,
|
35 |
| - PostIncDecToPreIncDecRector::class, |
36 | 39 | RemoveNullPropertyInitializationRector::class,
|
37 |
| - ReturnBinaryOrToEarlyReturnRector::class, |
38 | 40 | ReturnTypeFromReturnDirectArrayRector::class,
|
39 | 41 | ReturnTypeFromReturnNewRector::class,
|
40 | 42 | ReturnTypeFromStrictTypedCallRector::class,
|
41 |
| - StaticArrowFunctionRector::class, |
42 |
| - StaticClosureRector::class, |
43 | 43 | ]);
|
0 commit comments