|
1 | 1 | <?php |
2 | 2 |
|
3 | | -return PhpCsFixer\Config::create() |
| 3 | +$config = new PhpCsFixer\Config(); |
| 4 | + |
| 5 | +return $config |
4 | 6 | ->setRules([ |
5 | 7 | '@PSR2' => true, |
6 | 8 | 'array_syntax' => ['syntax' => 'short'], |
7 | | - 'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false], |
8 | 9 | 'blank_line_after_opening_tag' => true, |
9 | | - 'blank_line_before_return' => true, |
| 10 | + 'class_attributes_separation' => ['elements' => ['method' => 'one']], |
10 | 11 | 'cast_spaces' => true, |
11 | 12 | 'concat_space' => ['spacing' => 'none'], |
12 | 13 | 'declare_strict_types' => true, |
13 | | - 'method_separation' => true, |
| 14 | + 'increment_style' => ['style' => 'pre'], |
14 | 15 | 'native_function_invocation' => ['include' => ['@all'], 'strict' => false], |
15 | 16 | 'no_blank_lines_after_class_opening' => true, |
16 | 17 | 'no_spaces_around_offset' => ['positions' => ['inside', 'outside']], |
|
19 | 20 | 'phpdoc_align' => true, |
20 | 21 | 'phpdoc_no_access' => true, |
21 | 22 | 'phpdoc_separation' => true, |
22 | | - 'pre_increment' => true, |
23 | 23 | 'single_quote' => true, |
24 | 24 | 'trim_array_spaces' => true, |
25 | 25 | 'single_blank_line_before_namespace' => true |
26 | 26 | ]) |
27 | 27 | ->setFinder( |
28 | 28 | PhpCsFixer\Finder::create() |
29 | | - ->in(__DIR__ . '/src') |
30 | | - ->in(__DIR__ . '/tests') |
| 29 | + ->in(__DIR__.'/src') |
| 30 | + ->in(__DIR__.'/tests') |
31 | 31 | ) |
32 | 32 | ->setRiskyAllowed(true) |
33 | 33 | ->setUsingCache(false) |
|
0 commit comments