|
7 | 7 | ->name('*.php'); |
8 | 8 |
|
9 | 9 |
|
10 | | -return PhpCsFixer\Config::create() |
| 10 | +return (new PhpCsFixer\Config) |
11 | 11 | ->setUsingCache(true) |
12 | 12 | ->setIndent("\t") |
13 | 13 | ->setLineEnding("\n") |
|
37 | 37 | 'no_leading_import_slash' => true, |
38 | 38 | 'no_leading_namespace_whitespace' => true, |
39 | 39 |
|
| 40 | + 'array_indentation' => true, |
| 41 | + |
40 | 42 | 'no_whitespace_in_blank_line' => true, |
41 | 43 |
|
42 | 44 | 'phpdoc_add_missing_param_annotation' => [ 'only_untyped' => true, ], |
|
103 | 105 | ], |
104 | 106 |
|
105 | 107 | 'blank_line_before_statement' => [ |
106 | | - 'statements' => [ 'continue', 'try', 'switch', 'die', 'exit', 'throw', 'return', 'do' ], |
| 108 | + 'statements' => [ 'continue', 'try', 'switch', 'exit', 'throw', 'return', 'do' ], |
107 | 109 | ], |
108 | 110 |
|
109 | 111 | 'no_superfluous_phpdoc_tags' => [ |
|
119 | 121 | 'escape_implicit_backslashes' => true, |
120 | 122 | 'explicit_indirect_variable' => true, |
121 | 123 | 'heredoc_to_nowdoc' => true, |
| 124 | + 'heredoc_indentation' => true, |
122 | 125 |
|
123 | 126 |
|
124 | 127 | 'no_singleline_whitespace_before_semicolons' => true, |
|
140 | 143 |
|
141 | 144 | 'method_chaining_indentation' => true, |
142 | 145 | 'method_argument_space' => [ |
| 146 | + 'on_multiline' => 'ignore', // at least until they fix it |
143 | 147 | 'keep_multiple_spaces_after_comma' => true, |
144 | 148 | ], |
145 | 149 |
|
|
156 | 160 | 'import_functions' => false, |
157 | 161 | ], |
158 | 162 |
|
159 | | - 'trailing_comma_in_multiline_array' => true, |
160 | | - 'single_line_comment_style' => true, |
| 163 | + 'trailing_comma_in_multiline' => true, |
| 164 | + 'single_line_comment_style' => true, |
| 165 | + |
| 166 | + 'is_null' => true, |
| 167 | + 'yoda_style' => [ |
| 168 | + 'equal' => false, |
| 169 | + 'identical' => false, |
| 170 | + 'less_and_greater' => null, |
| 171 | + ], |
161 | 172 | ] |
162 | 173 | ) |
163 | 174 | ->setFinder($finder); |
|
0 commit comments