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