|
9 | 9 | $config = new PhpCsFixer\Config();
|
10 | 10 | return $config
|
11 | 11 | ->setRules([
|
12 |
| - '@Symfony' => true, |
13 |
| - '@PSR12' => true, |
14 |
| - 'binary_operator_spaces' => ['default' => null, 'operators' => ['=>' => 'align']], |
15 |
| - 'concat_space' => ['spacing' => 'one'], |
16 |
| - 'declare_strict_types' => true, |
17 |
| - 'no_alias_functions' => true, |
18 |
| - 'no_useless_sprintf' => true, |
19 |
| - 'ordered_imports' => [ |
20 |
| - 'imports_order' => [ |
21 |
| - 'class', |
22 |
| - 'function', |
23 |
| - 'const', |
24 |
| - ], |
25 |
| - 'sort_algorithm' => 'alpha' |
26 |
| - ], |
27 |
| - 'phpdoc_align' => ['align' => 'left'], |
28 |
| - 'phpdoc_summary' => false, |
29 |
| - 'self_accessor' => true, |
30 |
| - 'single_line_throw' => false, |
31 |
| - 'visibility_required' => ['elements' => ['property', 'method']], // removed 'const' since we still support PHP 7.0 for now |
32 |
| - 'yoda_style' => false, |
| 12 | + '@PER-CS' => true, |
| 13 | + 'binary_operator_spaces' => ['default' => 'at_least_single_space', 'operators' => ['=>' => 'align']], |
| 14 | + 'declare_strict_types' => true, |
| 15 | + 'no_alias_functions' => true, |
| 16 | + 'no_useless_sprintf' => true, |
| 17 | + 'nullable_type_declaration_for_default_null_value' => false, // should be 'true' when we drop support for PHP 7.0 which didn't support nullable types yet |
| 18 | + 'ordered_imports' => ['sort_algorithm' => 'alpha'], |
| 19 | + 'phpdoc_align' => ['align' => 'vertical'], |
| 20 | + 'phpdoc_separation' => ['skip_unlisted_annotations' => true], |
| 21 | + 'self_accessor' => true, |
| 22 | + 'visibility_required' => ['elements' => ['property', 'method']], // removed 'const' since we still support PHP 7.0 for now |
33 | 23 | ])
|
34 | 24 | ->setFinder($finder)
|
35 | 25 | ;
|
0 commit comments