|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | 5 | $finder = PhpCsFixer\Finder::create() |
6 | | - ->notPath('vendor') |
7 | | - ->notPath('node_modules') |
8 | | - ->in(__DIR__) |
9 | | - ->in('./resources/views') |
10 | | - ->in('./config') |
11 | | - ->name('*.php') |
12 | | - ->notName('*.blade.php') |
13 | | - ->ignoreDotFiles(true) |
14 | | - ->ignoreVCS(true); |
| 6 | + ->notPath('vendor') |
| 7 | + ->notPath('node_modules') |
| 8 | + ->in(__DIR__) |
| 9 | + ->in('./resources/views') |
| 10 | + ->in('./config') |
| 11 | + ->name('*.php') |
| 12 | + ->notName('*.blade.php') |
| 13 | + ->ignoreDotFiles(true) |
| 14 | + ->ignoreVCS(true); |
15 | 15 |
|
16 | 16 | return (new PhpCsFixer\Config) |
17 | | - ->setRules([ |
18 | | - '@PSR2' => true, |
19 | | - 'array_syntax' => [ |
20 | | - 'syntax' => 'short', |
21 | | - ], |
22 | | - 'ordered_imports' => [ |
23 | | - 'sort_algorithm' => 'alpha', |
24 | | - ], |
25 | | - 'no_unused_imports' => true, |
26 | | - 'binary_operator_spaces' => [ |
27 | | - 'default' => 'single_space', |
28 | | - 'operators' => [ |
29 | | - '=>' => 'single_space', |
30 | | - '|' => 'no_space', |
31 | | - ], |
32 | | - ], |
33 | | - 'full_opening_tag' => true, |
34 | | - 'yoda_style' => [ |
35 | | - 'always_move_variable' => true, |
36 | | - 'equal' => true, |
37 | | - 'identical' => true, |
38 | | - 'less_and_greater' => true, |
39 | | - ], |
40 | | - ]) |
41 | | - ->setFinder($finder); |
| 17 | + ->setRules([ |
| 18 | + '@PSR2' => true, |
| 19 | + 'array_syntax' => [ |
| 20 | + 'syntax' => 'short', |
| 21 | + ], |
| 22 | + 'ordered_imports' => [ |
| 23 | + 'sort_algorithm' => 'alpha', |
| 24 | + ], |
| 25 | + 'no_unused_imports' => true, |
| 26 | + 'array_indentation' => true, |
| 27 | + 'binary_operator_spaces' => [ |
| 28 | + 'default' => 'single_space', |
| 29 | + 'operators' => [ |
| 30 | + '=>' => 'single_space', |
| 31 | + '|' => 'no_space', |
| 32 | + ], |
| 33 | + ], |
| 34 | + 'full_opening_tag' => true, |
| 35 | + 'yoda_style' => [ |
| 36 | + 'always_move_variable' => true, |
| 37 | + 'equal' => true, |
| 38 | + 'identical' => true, |
| 39 | + 'less_and_greater' => true, |
| 40 | + ], |
| 41 | + ]) |
| 42 | + ->setFinder($finder); |
0 commit comments