Skip to content

Commit

Permalink
Merge pull request #16 from worksome/JIRA-5937_order-use-statements-a…
Browse files Browse the repository at this point in the history
…lphabetically

feature: JIRA-5937 Added PHP-CS rules for import ordering
  • Loading branch information
Odinn Adalsteinsson authored Jun 7, 2022
2 parents ae34381 + d7258db commit 4665880
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/PhpCsFixerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ class PhpCsFixerConfig extends Config
'align' => 'vertical',
],
'phpdoc_separation' => true,
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
'sort_algorithm' => 'alpha',
],
],
'@worksome:risky' => [
// ...
Expand Down

0 comments on commit 4665880

Please sign in to comment.