|
10 | 10 | use Rector\Php70\Rector\FuncCall\CallUserMethodRector;
|
11 | 11 | use Rector\Php70\Rector\FuncCall\EregToPregMatchRector;
|
12 | 12 | use Rector\Php70\Rector\FuncCall\MultiDirnameRector;
|
13 |
| -use Rector\Php70\Rector\FuncCall\NonVariableToVariableOnFunctionCallRector; |
14 | 13 | use Rector\Php70\Rector\FuncCall\RandomFunctionRector;
|
15 | 14 | use Rector\Php70\Rector\FuncCall\RenameMktimeWithoutArgsToTimeRector;
|
16 | 15 | use Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector;
|
|
24 | 23 | use Rector\Php70\Rector\Variable\WrapVariableVariableNameInCurlyBracesRector;
|
25 | 24 |
|
26 | 25 | return static function (RectorConfig $rectorConfig): void {
|
27 |
| - $rectorConfig->rule(Php4ConstructorRector::class); |
28 |
| - |
29 |
| - $rectorConfig->rule(TernaryToNullCoalescingRector::class); |
30 |
| - |
31 |
| - $rectorConfig->rule(RandomFunctionRector::class); |
32 |
| - |
33 |
| - $rectorConfig->rule(ExceptionHandlerTypehintRector::class); |
34 |
| - |
35 |
| - $rectorConfig->rule(MultiDirnameRector::class); |
36 |
| - |
37 |
| - $rectorConfig->rule(ListSplitStringRector::class); |
38 |
| - |
39 |
| - $rectorConfig->rule(EmptyListRector::class); |
40 |
| - |
41 |
| - # be careful, run this just once, since it can keep swapping order back and forth |
42 |
| - $rectorConfig->rule(ListSwapArrayOrderRector::class); |
43 |
| - |
44 |
| - $rectorConfig->rule(CallUserMethodRector::class); |
45 |
| - |
46 |
| - $rectorConfig->rule(EregToPregMatchRector::class); |
47 |
| - |
48 |
| - $rectorConfig->rule(ReduceMultipleDefaultSwitchRector::class); |
49 |
| - |
50 |
| - $rectorConfig->rule(TernaryToSpaceshipRector::class); |
51 |
| - |
52 |
| - $rectorConfig->rule(WrapVariableVariableNameInCurlyBracesRector::class); |
53 |
| - |
54 |
| - $rectorConfig->rule(IfToSpaceshipRector::class); |
55 |
| - |
56 |
| - $rectorConfig->rule(StaticCallOnNonStaticToInstanceCallRector::class); |
57 |
| - |
58 |
| - $rectorConfig->rule(ThisCallOnStaticMethodToStaticCallRector::class); |
59 |
| - |
60 |
| - $rectorConfig->rule(BreakNotInLoopOrSwitchToReturnRector::class); |
61 |
| - |
62 |
| - $rectorConfig->rule(RenameMktimeWithoutArgsToTimeRector::class); |
63 |
| - |
64 |
| - $rectorConfig->rule(NonVariableToVariableOnFunctionCallRector::class); |
| 26 | + $rectorConfig->rules([ |
| 27 | + Php4ConstructorRector::class, |
| 28 | + TernaryToNullCoalescingRector::class, |
| 29 | + RandomFunctionRector::class, |
| 30 | + ExceptionHandlerTypehintRector::class, |
| 31 | + MultiDirnameRector::class, |
| 32 | + ListSplitStringRector::class, |
| 33 | + EmptyListRector::class, |
| 34 | + // be careful, run this just once, since it can keep swapping order back and forth |
| 35 | + ListSwapArrayOrderRector::class, |
| 36 | + CallUserMethodRector::class, |
| 37 | + EregToPregMatchRector::class, |
| 38 | + ReduceMultipleDefaultSwitchRector::class, |
| 39 | + TernaryToSpaceshipRector::class, |
| 40 | + WrapVariableVariableNameInCurlyBracesRector::class, |
| 41 | + IfToSpaceshipRector::class, |
| 42 | + StaticCallOnNonStaticToInstanceCallRector::class, |
| 43 | + ThisCallOnStaticMethodToStaticCallRector::class, |
| 44 | + BreakNotInLoopOrSwitchToReturnRector::class, |
| 45 | + RenameMktimeWithoutArgsToTimeRector::class, |
| 46 | + ]); |
65 | 47 | };
|
0 commit comments