@@ -41,12 +41,9 @@ protected function prepareRules() : void
4141 'blank_line_after_namespace ' => true ,
4242 'blank_line_after_opening_tag ' => false ,
4343 'blank_line_before_statement ' => false ,
44- 'braces ' => [
45- 'allow_single_line_anonymous_class_with_empty_body ' => false ,
46- 'allow_single_line_closure ' => false ,
47- 'position_after_anonymous_constructs ' => 'same ' ,
48- 'position_after_control_structures ' => 'same ' ,
49- 'position_after_functions_and_oop_constructs ' => 'next ' ,
44+ 'blank_lines_before_namespace ' => [
45+ 'min_line_breaks ' => 0 ,
46+ 'max_line_breaks ' => 0 ,
5047 ],
5148 'cast_spaces ' => [
5249 'space ' => 'single ' ,
@@ -71,6 +68,9 @@ protected function prepareRules() : void
7168 'spacing ' => 'one ' ,
7269 ],
7370 'constant_case ' => true ,
71+ 'control_structure_braces ' => true ,
72+ 'control_structure_continuation_position ' => ['position ' => 'same_line ' ],
73+ 'curly_braces_position ' => true ,
7474 'date_time_immutable ' => false ,
7575 'declare_equal_normalize ' => [
7676 'space ' => 'none ' ,
@@ -101,7 +101,6 @@ protected function prepareRules() : void
101101 'closure_function_spacing ' => 'one ' ,
102102 ],
103103 'function_to_constant ' => true ,
104- 'function_typehint_space ' => true ,
105104 'general_phpdoc_annotation_remove ' => [],
106105 /*'header_comment' => [
107106 'comment_type' => 'comment',
@@ -150,7 +149,6 @@ protected function prepareRules() : void
150149 'no_binary_string ' => true ,
151150 'no_blank_lines_after_class_opening ' => true ,
152151 'no_blank_lines_after_phpdoc ' => true ,
153- 'no_blank_lines_before_namespace ' => true ,
154152 'no_break_comment ' => false ,
155153 'no_closing_tag ' => true ,
156154 'no_empty_comment ' => false ,
@@ -177,6 +175,7 @@ protected function prepareRules() : void
177175 'no_leading_namespace_whitespace ' => true ,
178176 'no_mixed_echo_print ' => true ,
179177 'no_multiline_whitespace_around_double_arrow ' => true ,
178+ 'no_multiple_statements_per_line ' => true ,
180179 'no_null_property_initialization ' => true ,
181180 'no_php4_constructor ' => false ,
182181 'no_short_bool_cast ' => true ,
@@ -262,12 +261,12 @@ protected function prepareRules() : void
262261 'short_scalar_cast ' => true ,
263262 'simplified_null_return ' => false ,
264263 'single_blank_line_at_eof ' => true ,
265- 'single_blank_line_before_namespace ' => false ,
266264 'single_class_element_per_statement ' => true ,
267265 'single_import_per_statement ' => true ,
268266 'single_line_after_imports ' => true ,
269267 'single_line_comment_style ' => true ,
270268 'single_quote ' => true ,
269+ 'single_space_around_construct ' => true ,
271270 'space_after_semicolon ' => true ,
272271 'standardize_increment ' => true ,
273272 'standardize_not_equals ' => true ,
@@ -281,6 +280,7 @@ protected function prepareRules() : void
281280 'ternary_to_null_coalescing ' => true ,
282281 'trailing_comma_in_multiline ' => ['elements ' => ['arrays ' ]],
283282 'trim_array_spaces ' => true ,
283+ 'type_declaration_spaces ' => ['elements ' => ['function ' , 'property ' ]],
284284 'unary_operator_spaces ' => true ,
285285 'visibility_required ' => true ,
286286 'void_return ' => true ,
0 commit comments