|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +// https://mlocati.github.io/php-cs-fixer-configurator/ |
3 | 4 | return PhpCsFixer\Config::create() |
4 | 5 | ->setRules([ |
5 | 6 | '@PSR12' => true, |
6 | 7 | 'array_syntax' => ['syntax' => 'short'], |
| 8 | + 'increment_style' => ['style' => 'post'], |
| 9 | + 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], |
| 10 | + 'concat_space' => ['spacing' => 'one'], |
| 11 | + 'cast_spaces' => ['space' => 'none'], |
| 12 | + 'ordered_imports' => ['imports_order' => ['class', 'function', 'const']], |
| 13 | + 'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => false, 'allow_mixed' => true, 'allow_unused_params' => true], |
| 14 | + 'declare_equal_normalize' => ['space' => 'none'], |
| 15 | + 'blank_line_before_statement' => ['statements' => ['continue', 'declare', 'return', 'throw', 'try']], |
| 16 | + 'single_blank_line_before_namespace' => true, |
| 17 | + 'blank_line_after_namespace' => true, |
| 18 | + 'blank_line_after_opening_tag' => true, |
| 19 | + |
| 20 | + // skip list (see ecs.php) |
| 21 | + 'no_multiline_whitespace_around_double_arrow' => false, |
| 22 | + 'phpdoc_no_package' => false, |
| 23 | + 'phpdoc_summary' => false, |
| 24 | + 'phpdoc_separation' => false, |
| 25 | + 'class_attributes_separation' => false, |
| 26 | + 'no_blank_lines_before_namespace' => false, |
| 27 | + 'not_operator_with_successor_space' => false, |
| 28 | + 'single_line_throw' => false, |
| 29 | + |
7 | 30 | ]) |
8 | 31 | ; |
0 commit comments