Skip to content

Commit

Permalink
Fix #1 - make ordered_class_elements more strict
Browse files Browse the repository at this point in the history
Add grouping of static class elements.
  • Loading branch information
EvgenyOrekhov committed Apr 12, 2018
1 parent 7209364 commit c892eab
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,28 @@ public static function create()
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_class_elements' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'property_protected_static',
'property_private_static',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'magic',
'phpunit',
'method_public_static',
'method_protected_static',
'method_private_static',
'method_public',
'method_protected',
'method_private',
],
'ordered_imports' => [
'importsOrder' => [
'class',
Expand Down

0 comments on commit c892eab

Please sign in to comment.