Skip to content

Commit

Permalink
Updated linter to sort constants, properties, and methods, and then r…
Browse files Browse the repository at this point in the history
…an the linter (#109)
  • Loading branch information
davidbyoung authored Jan 23, 2021
1 parent 9539596 commit 970adfb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@ return (new PhpCsFixer\Config())
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'ordered_class_elements' => [
'order' => [
'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_abstract',
'method_protected_abstract',
'method_public_static',
'method_protected_static',
'method_private_static',
'method_public',
'method_protected',
'method_private'
]
],
'ordered_imports' => true,
'return_type_declaration' => ['space_before' => 'none'],
'single_quote' => true,
Expand Down

0 comments on commit 970adfb

Please sign in to comment.