Skip to content

Commit 95fc35b

Browse files
committed
feat: class order
1 parent 745b27b commit 95fc35b

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

src/RuleSets/DefaultSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function rules(): array
7979
'property_protected',
8080
'property_private_static',
8181
'property_private',
82+
'construct',
8283
'method_public_static',
8384
'method_protected_static',
8485
'method_private_static',
@@ -90,7 +91,6 @@ public function rules(): array
9091
'method_public',
9192
'method_protected',
9293
'method_private',
93-
'destruct',
9494
],
9595
],
9696
'global_namespace_import' => [

src/RuleSets/ExtendedPERSet.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,27 +96,28 @@ public function rules(): array
9696
'sort_algorithm' => 'none',
9797
'order' => [
9898
'use_trait',
99-
'constant_public',
100-
'constant_protected',
101-
'constant_private',
102-
'property_public_static',
99+
'case',
100+
'constant',
101+
// 'property_public_static',
103102
'property_public',
104-
'property_protected_static',
103+
// 'property_protected_static',
105104
'property_protected',
106-
'property_private_static',
105+
// 'property_private_static',
107106
'property_private',
107+
'construct',
108108
'method_public_static',
109-
'method_protected_static',
110-
'method_private_static',
111-
'method_public_abstract_static',
112-
'method_protected_abstract_static',
113-
'method_public_abstract',
114-
'method_protected_abstract',
115-
'phpunit',
109+
// 'method_public_abstract_static',
110+
// 'method_public_abstract',
116111
'method_public',
112+
'magic',
113+
'destruct',
114+
'phpunit',
115+
'method_protected_static',
116+
// 'method_protected_abstract_static',
117+
// 'method_protected_abstract',
117118
'method_protected',
119+
'method_private_static',
118120
'method_private',
119-
'destruct',
120121
],
121122
],
122123
'method_argument_space' => [

0 commit comments

Comments
 (0)