|
17 | 17 | ->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers()) |
18 | 18 | ->setRiskyAllowed(true) |
19 | 19 | ->setRules([ |
20 | | - '@PSR2' => true, |
| 20 | + '@PER-CS2.0' => true, |
21 | 21 | '@PHP74Migration:risky' => true, |
22 | | - 'blank_line_after_opening_tag' => true, |
23 | | - 'concat_space' => ['spacing' => 'one'], |
24 | 22 | 'no_alias_functions' => true, |
25 | 23 | 'native_function_casing' => true, |
26 | | - 'no_blank_lines_after_class_opening' => true, |
27 | | - 'ordered_imports' => true, |
28 | 24 | 'phpdoc_no_access' => true, |
29 | | - 'no_leading_import_slash' => true, |
30 | 25 | 'self_accessor' => true, |
31 | | - 'array_syntax' => ['syntax' => 'short'], |
32 | | - 'cast_spaces' => true, |
33 | 26 | 'no_unused_imports' => true, |
34 | | - 'no_whitespace_in_blank_line' => true, |
35 | 27 | 'method_argument_space' => false, |
36 | 28 | 'statement_indentation' => false, |
37 | 29 | MultilinePromotedPropertiesFixer::name() => [ |
38 | 30 | 'keep_blank_lines' => true, |
39 | 31 | 'minimum_number_of_parameters' => 2, |
40 | 32 | ], |
41 | | - 'trailing_comma_in_multiline' => [ |
42 | | - 'elements' => ['arrays', 'parameters'] |
43 | | - ], |
| 33 | + 'type_declaration_spaces' => true, |
44 | 34 | ]) |
45 | 35 | ->setFinder($finder) |
46 | 36 | ->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache') |
|
0 commit comments