@@ -14,17 +14,31 @@ return PhpCsFixer\Config::create()
14
14
[
15
15
'array_syntax ' => ['syntax ' => 'short ' ],
16
16
'binary_operator_spaces ' => [
17
- 'align_double_arrow ' => true ,
18
- 'align_equals ' => true
17
+ 'operators ' => [
18
+ '= ' => 'align ' ,
19
+ '=> ' => 'align ' ,
20
+ ],
19
21
],
20
22
'blank_line_after_namespace ' => true ,
21
23
'blank_line_before_statement ' => [
22
24
'statements ' => [
23
25
'break ' ,
24
26
'continue ' ,
27
+ 'declare ' ,
28
+ 'do ' ,
29
+ 'for ' ,
30
+ 'foreach ' ,
31
+ 'if ' ,
32
+ 'include ' ,
33
+ 'include_once ' ,
34
+ 'require ' ,
35
+ 'require_once ' ,
25
36
'return ' ,
37
+ 'switch ' ,
26
38
'throw ' ,
27
39
'try ' ,
40
+ 'while ' ,
41
+ 'yield ' ,
28
42
],
29
43
],
30
44
'braces ' => true ,
@@ -58,7 +72,7 @@ return PhpCsFixer\Config::create()
58
72
'no_empty_comment ' => true ,
59
73
'no_empty_phpdoc ' => true ,
60
74
'no_empty_statement ' => true ,
61
- 'no_extra_consecutive_blank_lines ' => true ,
75
+ 'no_extra_blank_lines ' => true ,
62
76
'no_homoglyph_names ' => true ,
63
77
'no_leading_import_slash ' => true ,
64
78
'no_leading_namespace_whitespace ' => true ,
@@ -91,16 +105,22 @@ return PhpCsFixer\Config::create()
91
105
'constant_public ' ,
92
106
'constant_protected ' ,
93
107
'constant_private ' ,
108
+ 'property_public_static ' ,
109
+ 'property_protected_static ' ,
110
+ 'property_private_static ' ,
94
111
'property_public ' ,
95
112
'property_protected ' ,
96
113
'property_private ' ,
114
+ 'method_public_static ' ,
97
115
'construct ' ,
98
116
'destruct ' ,
99
117
'magic ' ,
100
118
'phpunit ' ,
101
119
'method_public ' ,
102
120
'method_protected ' ,
103
121
'method_private ' ,
122
+ 'method_protected_static ' ,
123
+ 'method_private_static ' ,
104
124
],
105
125
],
106
126
'ordered_imports ' => true ,
@@ -145,5 +165,4 @@ return PhpCsFixer\Config::create()
145
165
->files ()
146
166
->in (__DIR__ . '/src ' )
147
167
->in (__DIR__ . '/tests ' )
148
- ->name ('*.php ' )
149
168
);
0 commit comments