Skip to content

Commit 4665880

Browse files
author
Odinn Adalsteinsson
authored
Merge pull request #16 from worksome/JIRA-5937_order-use-statements-alphabetically
feature: JIRA-5937 Added PHP-CS rules for import ordering
2 parents ae34381 + d7258db commit 4665880

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/PhpCsFixerConfig.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ class PhpCsFixerConfig extends Config
1313
'align' => 'vertical',
1414
],
1515
'phpdoc_separation' => true,
16+
'ordered_imports' => [
17+
'imports_order' => [
18+
'class',
19+
'function',
20+
'const',
21+
],
22+
'sort_algorithm' => 'alpha',
23+
],
1624
],
1725
'@worksome:risky' => [
1826
// ...

0 commit comments

Comments
 (0)