|
9 | 9 | [ |
10 | 10 | '@PSR1' => true, |
11 | 11 | '@PSR2' => true, |
12 | | - '@Symfony' => true, |
13 | | - 'psr_autoloading' => true, |
14 | 12 | // custom rules |
| 13 | + 'psr_autoloading' => true, |
15 | 14 | 'align_multiline_comment' => ['comment_type' => 'phpdocs_only'], // psr-5 |
16 | 15 | 'phpdoc_to_comment' => false, |
17 | 16 | 'no_superfluous_phpdoc_tags' => false, |
18 | 17 | 'array_indentation' => true, |
19 | 18 | 'array_syntax' => ['syntax' => 'short'], |
20 | 19 | 'cast_spaces' => ['space' => 'none'], |
21 | 20 | 'concat_space' => ['spacing' => 'one'], |
22 | | - 'compact_nullable_typehint' => true, |
| 21 | + 'compact_nullable_type_declaration' => true, |
23 | 22 | 'declare_equal_normalize' => ['space' => 'single'], |
24 | 23 | 'general_phpdoc_annotation_remove' => [ |
25 | 24 | 'annotations' => [ |
|
36 | 35 | 'phpdoc_order' => true, // psr-5 |
37 | 36 | 'phpdoc_no_useless_inheritdoc' => false, |
38 | 37 | 'protected_to_private' => false, |
39 | | - 'yoda_style' => false, |
| 38 | + 'yoda_style' => [ |
| 39 | + 'equal' => false, |
| 40 | + 'identical' => false, |
| 41 | + 'less_and_greater' => false |
| 42 | + ], |
40 | 43 | 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], |
41 | 44 | 'ordered_imports' => [ |
42 | 45 | 'sort_algorithm' => 'alpha', |
|
47 | 50 | 'blank_line_between_import_groups' => true, |
48 | 51 | 'fully_qualified_strict_types' => true, |
49 | 52 | 'no_null_property_initialization' => false, |
| 53 | + 'nullable_type_declaration_for_default_null_value' => false, |
50 | 54 | 'operator_linebreak' => [ |
51 | 55 | 'only_booleans' => true, |
52 | 56 | 'position' => 'beginning', |
|
55 | 59 | 'import_classes' => true, |
56 | 60 | 'import_constants' => null, |
57 | 61 | 'import_functions' => null |
| 62 | + ], |
| 63 | + 'class_definition' => [ |
| 64 | + 'space_before_parenthesis' => true, |
| 65 | + ], |
| 66 | + 'trailing_comma_in_multiline' => [ |
| 67 | + 'after_heredoc' => true, |
| 68 | + 'elements' => ['array_destructuring', 'arrays', 'match'] |
| 69 | + ], |
| 70 | + 'function_declaration' => [ |
| 71 | + 'closure_fn_spacing' => 'none', |
58 | 72 | ] |
59 | 73 | ] |
60 | 74 | ) |
|
0 commit comments