Skip to content

Commit

Permalink
[1.x] Improves imports when using functions (#205)
Browse files Browse the repository at this point in the history
* Improves imports when using `functions`

* Style
  • Loading branch information
nunomaduro authored Aug 11, 2023
1 parent 6dbc1e0 commit 989ff6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Output/SummaryOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Project;
use App\ValueObjects\Issue;
use PhpCsFixer\FixerFileProcessedEvent;

use function Termwind\render;
use function Termwind\renderUsing;

Expand Down
3 changes: 2 additions & 1 deletion resources/presets/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'return',
],
],
'blank_line_between_import_groups' => true,
'blank_lines_before_namespace' => true,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
Expand Down Expand Up @@ -136,7 +137,7 @@
'use_nullable_type_declaration' => false,
],
'object_operator_without_whitespace' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['const', 'class', 'function']],
'psr_autoloading' => false,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => true,
Expand Down

0 comments on commit 989ff6d

Please sign in to comment.