|
28 | 28 | use PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer; |
29 | 29 | use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer; |
30 | 30 | use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer; |
| 31 | +use PhpCsFixer\Fixer\StringNotation\ExplicitStringVariableFixer; |
31 | 32 | use PhpCsFixer\Fixer\Whitespace\BlankLineBeforeStatementFixer; |
32 | 33 | use Symplify\EasyCodingStandard\Config\ECSConfig; |
33 | 34 | use Symplify\EasyCodingStandard\ValueObject\Set\SetList; |
|
43 | 44 | $ruleConfigurations = [ |
44 | 45 | [ |
45 | 46 | IncrementStyleFixer::class, |
46 | | - ['style' => 'post'], |
| 47 | + [ |
| 48 | + 'style' => 'post', |
| 49 | + ], |
47 | 50 | ], |
48 | 51 | [ |
49 | 52 | CastSpacesFixer::class, |
50 | | - ['space' => 'none'], |
| 53 | + [ |
| 54 | + 'space' => 'none', |
| 55 | + ], |
51 | 56 | ], |
52 | 57 | [ |
53 | 58 | YodaStyleFixer::class, |
|
59 | 64 | ], |
60 | 65 | [ |
61 | 66 | ConcatSpaceFixer::class, |
62 | | - ['spacing' => 'one'], |
| 67 | + [ |
| 68 | + 'spacing' => 'one', |
| 69 | + ], |
63 | 70 | ], |
64 | 71 | [ |
65 | 72 | CastSpacesFixer::class, |
66 | | - ['space' => 'none'], |
| 73 | + [ |
| 74 | + 'space' => 'none', |
| 75 | + ], |
67 | 76 | ], |
68 | 77 | [ |
69 | 78 | OrderedImportsFixer::class, |
70 | | - ['imports_order' => ['class', 'function', 'const']], |
| 79 | + [ |
| 80 | + 'imports_order' => ['class', 'function', 'const'], |
| 81 | + ], |
71 | 82 | ], |
72 | 83 | [ |
73 | 84 | NoSuperfluousPhpdocTagsFixer::class, |
|
79 | 90 | ], |
80 | 91 | [ |
81 | 92 | DeclareEqualNormalizeFixer::class, |
82 | | - ['space' => 'single'], |
| 93 | + [ |
| 94 | + 'space' => 'single', |
| 95 | + ], |
83 | 96 | ], |
84 | 97 | [ |
85 | 98 | BlankLineBeforeStatementFixer::class, |
86 | | - ['statements' => ['continue', 'declare', 'return', 'throw', 'try']], |
| 99 | + [ |
| 100 | + 'statements' => ['continue', 'declare', 'return', 'throw', 'try'], |
| 101 | + ], |
87 | 102 | ], |
88 | 103 | [ |
89 | 104 | BinaryOperatorSpacesFixer::class, |
90 | | - ['operators' => ['&' => 'align']], |
| 105 | + [ |
| 106 | + 'operators' => [ |
| 107 | + '&' => 'align', |
| 108 | + ], |
| 109 | + ], |
91 | 110 | ], |
92 | 111 | ]; |
93 | 112 |
|
|
106 | 125 | PhpdocAlignFixer::class => null, |
107 | 126 | PhpdocToCommentFixer::class => null, |
108 | 127 | NativeFunctionInvocationFixer::class => null, |
| 128 | + ExplicitStringVariableFixer::class => null, |
109 | 129 | ]); |
110 | 130 | }; |
0 commit comments