Skip to content

Commit c892eab

Browse files
committed
Fix #1 - make ordered_class_elements more strict
Add grouping of static class elements.
1 parent 7209364 commit c892eab

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Config.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,28 @@ public static function create()
126126
'no_superfluous_elseif' => true,
127127
'no_useless_else' => true,
128128
'no_useless_return' => true,
129-
'ordered_class_elements' => true,
129+
'ordered_class_elements' => [
130+
'use_trait',
131+
'constant_public',
132+
'constant_protected',
133+
'constant_private',
134+
'property_public_static',
135+
'property_protected_static',
136+
'property_private_static',
137+
'property_public',
138+
'property_protected',
139+
'property_private',
140+
'construct',
141+
'destruct',
142+
'magic',
143+
'phpunit',
144+
'method_public_static',
145+
'method_protected_static',
146+
'method_private_static',
147+
'method_public',
148+
'method_protected',
149+
'method_private',
150+
],
130151
'ordered_imports' => [
131152
'importsOrder' => [
132153
'class',

0 commit comments

Comments
 (0)