|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | $finder = Symfony\Component\Finder\Finder::create() |
4 | | - ->notPath('bootstrap/*') |
5 | | - ->notPath('storage/*') |
6 | | - ->notPath('resources/view/mail/*') |
7 | 4 | ->in([ |
8 | 5 | __DIR__ . '/src', |
9 | 6 | __DIR__ . '/tests', |
|
13 | 10 | ->ignoreDotFiles(true) |
14 | 11 | ->ignoreVCS(true); |
15 | 12 |
|
16 | | -return PhpCsFixer\Config::create() |
| 13 | +return (new PhpCsFixer\Config()) |
17 | 14 | ->setRules([ |
18 | | - '@PSR2' => true, |
| 15 | + '@PSR12' => true, |
19 | 16 | 'array_syntax' => ['syntax' => 'short'], |
20 | | - 'ordered_imports' => ['sortAlgorithm' => 'alpha'], |
| 17 | + 'ordered_imports' => ['sort_algorithm' => 'alpha'], |
21 | 18 | 'no_unused_imports' => true, |
22 | 19 | 'not_operator_with_successor_space' => true, |
23 | | - 'trailing_comma_in_multiline_array' => true, |
| 20 | + 'trailing_comma_in_multiline' => true, |
24 | 21 | 'phpdoc_scalar' => true, |
25 | 22 | 'unary_operator_spaces' => true, |
26 | 23 | 'binary_operator_spaces' => true, |
|
29 | 26 | ], |
30 | 27 | 'phpdoc_single_line_var_spacing' => true, |
31 | 28 | 'phpdoc_var_without_name' => true, |
| 29 | + 'class_attributes_separation' => [ |
| 30 | + 'elements' => [ |
| 31 | + 'method' => 'one', |
| 32 | + ], |
| 33 | + ], |
32 | 34 | 'method_argument_space' => [ |
33 | 35 | 'on_multiline' => 'ensure_fully_multiline', |
34 | 36 | 'keep_multiple_spaces_after_comma' => true, |
35 | | - ] |
| 37 | + ], |
| 38 | + 'single_trait_insert_per_statement' => true, |
36 | 39 | ]) |
37 | 40 | ->setFinder($finder); |
0 commit comments