|
3 | 3 | use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; |
4 | 4 | use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; |
5 | 5 | use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; |
6 | | -use Rector\CodeQuality\Rector\For_\ForToForeachRector; |
7 | 6 | use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; |
8 | | -use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector; |
9 | 7 | use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; |
10 | 8 | use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; |
11 | 9 | use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; |
|
21 | 19 | use Rector\Config\RectorConfig; |
22 | 20 | use Rector\Core\ValueObject\PhpVersion; |
23 | 21 | use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; |
24 | | -use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector; |
25 | 22 | use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; |
26 | 23 | use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; |
27 | 24 | use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; |
|
32 | 29 | use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; |
33 | 30 | use Rector\PHPUnit\Set\PHPUnitSetList; |
34 | 31 | use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; |
35 | | -use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector; |
36 | 32 | use Rector\Set\ValueObject\LevelSetList; |
37 | 33 | use Rector\Set\ValueObject\SetList; |
38 | 34 | use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; |
|
82 | 78 | // Note: requires php 8 |
83 | 79 | RemoveUnusedPromotedPropertyRector::class, |
84 | 80 |
|
85 | | - // Ignore tests that might make calls without a result |
86 | | - RemoveEmptyMethodCallRector::class => [ |
87 | | - __DIR__ . '/tests', |
88 | | - ], |
89 | | - |
90 | | - // Ignore files that should not be namespaced to their folder |
91 | | - NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [ |
92 | | - __DIR__ . '/src/Helpers', |
93 | | - ], |
94 | | - |
95 | 81 | // May load view files directly when detecting classes |
96 | 82 | StringClassNameToClassConstantRector::class, |
97 | 83 |
|
|
105 | 91 | $rectorConfig->rule(SimplifyUselessVariableRector::class); |
106 | 92 | $rectorConfig->rule(RemoveAlwaysElseRector::class); |
107 | 93 | $rectorConfig->rule(CountArrayToEmptyArrayComparisonRector::class); |
108 | | - $rectorConfig->rule(ForToForeachRector::class); |
109 | 94 | $rectorConfig->rule(ChangeNestedForeachIfsToEarlyContinueRector::class); |
110 | 95 | $rectorConfig->rule(ChangeIfElseValueAssignToEarlyReturnRector::class); |
111 | 96 | $rectorConfig->rule(SimplifyStrposLowerRector::class); |
|
118 | 103 | $rectorConfig->rule(UnusedForeachValueToArrayKeysRector::class); |
119 | 104 | $rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class); |
120 | 105 | $rectorConfig->rule(UnnecessaryTernaryExpressionRector::class); |
121 | | - $rectorConfig->rule(AddPregQuoteDelimiterRector::class); |
122 | 106 | $rectorConfig->rule(SimplifyRegexPatternRector::class); |
123 | 107 | $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); |
124 | 108 | $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); |
125 | 109 | $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); |
126 | | - $rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class); |
127 | 110 | $rectorConfig |
128 | 111 | ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ |
129 | 112 | /** |
|
0 commit comments