|
49 | 49 | 'binary_operator_spaces' => true, |
50 | 50 | 'blank_line_after_opening_tag' => true, |
51 | 51 | 'blank_line_after_namespace' => true, |
| 52 | + 'blank_lines_before_namespace' => true, |
52 | 53 | 'blank_line_before_statement' => true, |
53 | | - 'braces' => [ |
54 | | - 'allow_single_line_closure' => true, |
55 | | - ], |
56 | 54 | 'cast_spaces' => true, |
57 | 55 | 'class_attributes_separation' => true, |
58 | 56 | 'class_definition' => [ |
|
62 | 60 | 'combine_consecutive_issets' => true, |
63 | 61 | 'combine_consecutive_unsets' => true, |
64 | 62 | 'comment_to_phpdoc' => true, |
65 | | - 'compact_nullable_typehint' => true, |
| 63 | + 'compact_nullable_type_declaration' => true, |
66 | 64 | 'concat_space' => [ |
67 | 65 | 'spacing' => 'one', |
68 | 66 | ], |
|
88 | 86 | 'fully_qualified_strict_types' => true, |
89 | 87 | 'function_declaration' => true, |
90 | 88 | 'function_to_constant' => true, |
91 | | - 'function_typehint_space' => true, |
92 | 89 | 'general_phpdoc_tag_rename' => true, |
| 90 | + 'global_namespace_import' => [ |
| 91 | + 'import_classes' => true, |
| 92 | + 'import_constants' => false, |
| 93 | + 'import_functions' => false, |
| 94 | + ], |
93 | 95 | 'header_comment' => [ |
94 | 96 | 'header' => $header, |
95 | 97 | 'location' => 'after_open', |
|
110 | 112 | 'lowercase_static_reference' => true, |
111 | 113 | 'magic_constant_casing' => true, |
112 | 114 | 'method_argument_space' => true, |
| 115 | + 'modernize_strpos' => false, |
113 | 116 | 'modernize_types_casting' => true, |
114 | 117 | 'multiline_comment_opening_closing' => true, |
115 | 118 | 'multiline_whitespace_before_semicolons' => [ |
116 | 119 | 'strategy' => 'new_line_for_chained_calls', |
117 | 120 | ], |
118 | 121 | 'native_constant_invocation' => true, |
119 | 122 | 'native_function_casing' => true, |
120 | | - 'new_with_braces' => true, |
| 123 | + 'new_with_parentheses' => true, |
121 | 124 | 'no_alias_functions' => true, |
122 | 125 | 'no_alternative_syntax' => true, |
123 | 126 | 'no_blank_lines_after_class_opening' => true, |
|
156 | 159 | 'no_short_bool_cast' => true, |
157 | 160 | 'no_spaces_after_function_name' => true, |
158 | 161 | 'no_spaces_around_offset' => true, |
159 | | - 'no_spaces_inside_parenthesis' => true, |
| 162 | + 'spaces_inside_parentheses' => true, |
160 | 163 | 'no_superfluous_elseif' => true, |
161 | 164 | 'no_superfluous_phpdoc_tags' => [ |
162 | 165 | 'allow_mixed' => true, |
163 | 166 | ], |
164 | 167 | 'no_unset_cast' => true, |
165 | 168 | 'no_unneeded_control_parentheses' => true, |
166 | | - 'no_unneeded_curly_braces' => true, |
| 169 | + 'no_unneeded_braces' => true, |
167 | 170 | 'no_unneeded_final_method' => true, |
168 | 171 | 'no_unset_on_property' => true, |
169 | 172 | 'no_unused_imports' => true, |
170 | 173 | 'no_useless_else' => true, |
171 | 174 | 'no_useless_return' => true, |
172 | | - 'no_trailing_comma_in_list_call' => true, |
173 | | - 'no_trailing_comma_in_singleline_array' => true, |
| 175 | + 'no_trailing_comma_in_singleline' => true, |
174 | 176 | 'no_trailing_whitespace' => true, |
175 | 177 | 'no_trailing_whitespace_in_comment' => true, |
176 | 178 | 'no_whitespace_before_comma_in_array' => true, |
177 | 179 | 'no_whitespace_in_blank_line' => true, |
178 | 180 | 'non_printable_character' => true, |
179 | 181 | 'normalize_index_brace' => true, |
| 182 | + 'nullable_type_declaration_for_default_null_value' => false, |
180 | 183 | 'object_operator_without_whitespace' => true, |
181 | 184 | 'ordered_imports' => [ |
182 | 185 | 'imports_order' => [ |
|
211 | 214 | 'phpdoc_order' => true, |
212 | 215 | 'phpdoc_return_self_reference' => true, |
213 | 216 | 'phpdoc_scalar' => true, |
214 | | - 'phpdoc_separation' => true, |
| 217 | + 'phpdoc_separation' => ['groups' => [ |
| 218 | + ['ORM\\*'], ['Assert\\*'], |
| 219 | + ]], |
215 | 220 | 'phpdoc_single_line_var_spacing' => true, |
216 | 221 | 'phpdoc_tag_type' => true, |
217 | 222 | 'phpdoc_to_comment' => false, |
|
231 | 236 | 'self_accessor' => true, |
232 | 237 | 'short_scalar_cast' => true, |
233 | 238 | 'single_blank_line_at_eof' => true, |
234 | | - 'single_blank_line_before_namespace' => true, |
235 | 239 | 'single_class_element_per_statement' => true, |
236 | 240 | 'single_import_per_statement' => true, |
237 | 241 | 'single_line_after_imports' => true, |
|
248 | 252 | 'elements' => ['arrays'], |
249 | 253 | ], |
250 | 254 | 'trim_array_spaces' => true, |
| 255 | + 'type_declaration_spaces' => true, |
251 | 256 | 'unary_operator_spaces' => true, |
252 | 257 | 'visibility_required' => [ |
253 | 258 | 'elements' => [ |
|
0 commit comments