@@ -14,17 +14,31 @@ return PhpCsFixer\Config::create()
1414 [
1515 'array_syntax ' => ['syntax ' => 'short ' ],
1616 'binary_operator_spaces ' => [
17- 'align_double_arrow ' => true ,
18- 'align_equals ' => true
17+ 'operators ' => [
18+ '= ' => 'align ' ,
19+ '=> ' => 'align ' ,
20+ ],
1921 ],
2022 'blank_line_after_namespace ' => true ,
2123 'blank_line_before_statement ' => [
2224 'statements ' => [
2325 'break ' ,
2426 'continue ' ,
27+ 'declare ' ,
28+ 'do ' ,
29+ 'for ' ,
30+ 'foreach ' ,
31+ 'if ' ,
32+ 'include ' ,
33+ 'include_once ' ,
34+ 'require ' ,
35+ 'require_once ' ,
2536 'return ' ,
37+ 'switch ' ,
2638 'throw ' ,
2739 'try ' ,
40+ 'while ' ,
41+ 'yield ' ,
2842 ],
2943 ],
3044 'braces ' => true ,
@@ -58,7 +72,7 @@ return PhpCsFixer\Config::create()
5872 'no_empty_comment ' => true ,
5973 'no_empty_phpdoc ' => true ,
6074 'no_empty_statement ' => true ,
61- 'no_extra_consecutive_blank_lines ' => true ,
75+ 'no_extra_blank_lines ' => true ,
6276 'no_homoglyph_names ' => true ,
6377 'no_leading_import_slash ' => true ,
6478 'no_leading_namespace_whitespace ' => true ,
@@ -91,16 +105,22 @@ return PhpCsFixer\Config::create()
91105 'constant_public ' ,
92106 'constant_protected ' ,
93107 'constant_private ' ,
108+ 'property_public_static ' ,
109+ 'property_protected_static ' ,
110+ 'property_private_static ' ,
94111 'property_public ' ,
95112 'property_protected ' ,
96113 'property_private ' ,
114+ 'method_public_static ' ,
97115 'construct ' ,
98116 'destruct ' ,
99117 'magic ' ,
100118 'phpunit ' ,
101119 'method_public ' ,
102120 'method_protected ' ,
103121 'method_private ' ,
122+ 'method_protected_static ' ,
123+ 'method_private_static ' ,
104124 ],
105125 ],
106126 'ordered_imports ' => true ,
@@ -145,5 +165,4 @@ return PhpCsFixer\Config::create()
145165 ->files ()
146166 ->in (__DIR__ . '/src ' )
147167 ->in (__DIR__ . '/tests ' )
148- ->name ('*.php ' )
149168 );
0 commit comments