Skip to content

Commit

Permalink
feat: class order
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 23, 2024
1 parent 745b27b commit 95fc35b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/RuleSets/DefaultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function rules(): array
'property_protected',
'property_private_static',
'property_private',
'construct',
'method_public_static',
'method_protected_static',
'method_private_static',
Expand All @@ -90,7 +91,6 @@ public function rules(): array
'method_public',
'method_protected',
'method_private',
'destruct',
],
],
'global_namespace_import' => [
Expand Down
29 changes: 15 additions & 14 deletions src/RuleSets/ExtendedPERSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,28 @@ public function rules(): array
'sort_algorithm' => 'none',
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'case',
'constant',
// 'property_public_static',
'property_public',
'property_protected_static',
// 'property_protected_static',
'property_protected',
'property_private_static',
// 'property_private_static',
'property_private',
'construct',
'method_public_static',
'method_protected_static',
'method_private_static',
'method_public_abstract_static',
'method_protected_abstract_static',
'method_public_abstract',
'method_protected_abstract',
'phpunit',
// 'method_public_abstract_static',
// 'method_public_abstract',
'method_public',
'magic',
'destruct',
'phpunit',
'method_protected_static',
// 'method_protected_abstract_static',
// 'method_protected_abstract',
'method_protected',
'method_private_static',
'method_private',
'destruct',
],
],
'method_argument_space' => [
Expand Down

0 comments on commit 95fc35b

Please sign in to comment.