@@ -22,13 +22,26 @@ return PhpCsFixer\Config::create()
2222 'statements ' => [
2323 'break ' ,
2424 'continue ' ,
25+ 'declare ' ,
26+ 'do ' ,
27+ 'for ' ,
28+ 'foreach ' ,
29+ 'if ' ,
30+ 'include ' ,
31+ 'include_once ' ,
32+ 'require ' ,
33+ 'require_once ' ,
2534 'return ' ,
35+ 'switch ' ,
2636 'throw ' ,
2737 'try ' ,
38+ 'while ' ,
39+ 'yield ' ,
2840 ],
2941 ],
3042 'braces ' => true ,
3143 'cast_spaces ' => true ,
44+ 'class_attributes_separation ' => ['elements ' => ['method ' ]],
3245 'compact_nullable_typehint ' => true ,
3346 'concat_space ' => ['spacing ' => 'one ' ],
3447 'declare_equal_normalize ' => ['space ' => 'none ' ],
@@ -46,7 +59,6 @@ return PhpCsFixer\Config::create()
4659 'lowercase_keywords ' => true ,
4760 'magic_constant_casing ' => true ,
4861 'method_argument_space ' => ['ensure_fully_multiline ' => true ],
49- 'method_separation ' => true ,
5062 'modernize_types_casting ' => true ,
5163 'native_function_casing ' => true ,
5264 'native_function_invocation ' => true ,
@@ -57,7 +69,7 @@ return PhpCsFixer\Config::create()
5769 'no_empty_comment ' => true ,
5870 'no_empty_phpdoc ' => true ,
5971 'no_empty_statement ' => true ,
60- 'no_extra_consecutive_blank_lines ' => true ,
72+ 'no_extra_blank_lines ' => true ,
6173 'no_homoglyph_names ' => true ,
6274 'no_leading_import_slash ' => true ,
6375 'no_leading_namespace_whitespace ' => true ,
@@ -85,20 +97,28 @@ return PhpCsFixer\Config::create()
8597 'normalize_index_brace ' => true ,
8698 'object_operator_without_whitespace ' => true ,
8799 'ordered_class_elements ' => [
88- 'use_trait ' ,
89- 'constant_public ' ,
90- 'constant_protected ' ,
91- 'constant_private ' ,
92- 'property_public ' ,
93- 'property_protected ' ,
94- 'property_private ' ,
95- 'construct ' ,
96- 'destruct ' ,
97- 'magic ' ,
98- 'phpunit ' ,
99- 'method_public ' ,
100- 'method_protected ' ,
101- 'method_private '
100+ 'order ' => [
101+ 'use_trait ' ,
102+ 'constant_public ' ,
103+ 'constant_protected ' ,
104+ 'constant_private ' ,
105+ 'property_public_static ' ,
106+ 'property_protected_static ' ,
107+ 'property_private_static ' ,
108+ 'property_public ' ,
109+ 'property_protected ' ,
110+ 'property_private ' ,
111+ 'method_public_static ' ,
112+ 'construct ' ,
113+ 'destruct ' ,
114+ 'magic ' ,
115+ 'phpunit ' ,
116+ 'method_public ' ,
117+ 'method_protected ' ,
118+ 'method_private ' ,
119+ 'method_protected_static ' ,
120+ 'method_private_static ' ,
121+ ],
102122 ],
103123 'ordered_imports ' => true ,
104124 'phpdoc_add_missing_param_annotation ' => true ,
0 commit comments