|
21 | 21 | ->exclude('setup/vendor')
|
22 | 22 | ->exclude('var');
|
23 | 23 |
|
24 |
| -return PhpCsFixer\Config::create() |
25 |
| - ->setFinder($finder) |
| 24 | +$config = new PhpCsFixer\Config(); |
| 25 | +$config->setFinder($finder) |
26 | 26 | ->setRules([
|
27 | 27 | '@PSR2' => true,
|
28 | 28 | 'array_syntax' => ['syntax' => 'short'],
|
29 | 29 | 'concat_space' => ['spacing' => 'one'],
|
30 | 30 | 'include' => true,
|
31 | 31 | 'new_with_braces' => true,
|
32 | 32 | 'no_empty_statement' => true,
|
33 |
| - 'no_extra_consecutive_blank_lines' => true, |
| 33 | + 'no_extra_blank_lines' => true, |
34 | 34 | 'no_leading_import_slash' => true,
|
35 | 35 | 'no_leading_namespace_whitespace' => true,
|
36 | 36 | 'no_multiline_whitespace_around_double_arrow' => true,
|
37 |
| - 'no_multiline_whitespace_before_semicolons' => true, |
| 37 | + 'multiline_whitespace_before_semicolons' => true, |
38 | 38 | 'no_singleline_whitespace_before_semicolons' => true,
|
39 | 39 | 'no_trailing_comma_in_singleline_array' => true,
|
40 | 40 | 'no_unused_imports' => true,
|
|
44 | 44 | 'standardize_not_equals' => true,
|
45 | 45 | 'ternary_operator_spaces' => true,
|
46 | 46 | ]);
|
| 47 | +return $config; |
0 commit comments