Skip to content

Commit 989ff6d

Browse files
authored
[1.x] Improves imports when using functions (#205)
* Improves imports when using `functions` * Style
1 parent 6dbc1e0 commit 989ff6d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/Output/SummaryOutput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Project;
77
use App\ValueObjects\Issue;
88
use PhpCsFixer\FixerFileProcessedEvent;
9+
910
use function Termwind\render;
1011
use function Termwind\renderUsing;
1112

resources/presets/laravel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'return',
1717
],
1818
],
19+
'blank_line_between_import_groups' => true,
1920
'blank_lines_before_namespace' => true,
2021
'control_structure_braces' => true,
2122
'control_structure_continuation_position' => [
@@ -136,7 +137,7 @@
136137
'use_nullable_type_declaration' => false,
137138
],
138139
'object_operator_without_whitespace' => true,
139-
'ordered_imports' => ['sort_algorithm' => 'alpha'],
140+
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['const', 'class', 'function']],
140141
'psr_autoloading' => false,
141142
'phpdoc_indent' => true,
142143
'phpdoc_inline_tag_normalizer' => true,

0 commit comments

Comments
 (0)