Skip to content

Commit

Permalink
Merge pull request #10 from nextcloud/fix/ordered_imports
Browse files Browse the repository at this point in the history
Order imports alphabetically
  • Loading branch information
come-nc committed Oct 17, 2022
2 parents 8814009 + 57f50fc commit 88d3ffd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public function getRules() : array {
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_unused_imports' => true,
'ordered_imports' => [
'imports_order' => ['class', 'function', 'const'],
'sort_algorithm' => 'alpha'
],
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => true,
'single_import_per_statement' => true,
Expand Down

0 comments on commit 88d3ffd

Please sign in to comment.