@@ -26,13 +26,14 @@ public function getRules(): array {
26
26
'blank_line_before_statement ' => [
27
27
'statements ' => ['return ' , 'throw ' , 'try ' , 'exit ' ]
28
28
],
29
- 'braces ' => [
30
- 'position_after_functions_and_oop_constructs ' => 'same '
29
+ 'braces_position ' => [
30
+ 'classes_opening_brace ' => 'same_line ' ,
31
+ 'functions_opening_brace ' => 'same_line '
31
32
],
32
33
'cast_spaces ' => [
33
34
'space ' => 'single '
34
35
],
35
- 'compact_nullable_typehint ' => true ,
36
+ 'compact_nullable_type_declaration ' => true ,
36
37
'concat_space ' => [
37
38
'spacing ' => 'one '
38
39
],
@@ -46,7 +47,6 @@ public function getRules(): array {
46
47
'function_declaration ' => [
47
48
'closure_function_spacing ' => 'one '
48
49
],
49
- 'function_typehint_space ' => true ,
50
50
'indentation_type ' => true ,
51
51
'lowercase_cast ' => true ,
52
52
'lowercase_keywords ' => true ,
@@ -62,8 +62,7 @@ public function getRules(): array {
62
62
'no_leading_namespace_whitespace ' => true ,
63
63
'no_multiline_whitespace_around_double_arrow ' => true ,
64
64
'no_spaces_after_function_name ' => true ,
65
- 'no_spaces_inside_parenthesis ' => true ,
66
- 'no_trailing_comma_in_singleline_array ' => true ,
65
+ 'no_trailing_comma_in_singleline ' => ['elements ' => ['arguments ' , 'array_destructuring ' , 'array ' , 'group_import ' ]],
67
66
'no_trailing_whitespace ' => true ,
68
67
'no_unused_imports ' => true ,
69
68
'no_whitespace_before_comma_in_array ' => true ,
@@ -81,6 +80,8 @@ public function getRules(): array {
81
80
'single_import_per_statement ' => true ,
82
81
'single_line_after_imports ' => true ,
83
82
'single_quote ' => true ,
83
+ 'spaces_inside_parentheses ' => ['space ' => 'none ' ],
84
+ 'type_declaration_spaces ' => ['elements ' => ['function ' , 'property ' ]],
84
85
'visibility_required ' => true ,
85
86
'whitespace_after_comma_in_array ' => true
86
87
];
0 commit comments