From 989ff6dcc45539aa468bb133a7c83ee95226878c Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 11 Aug 2023 14:29:15 +0000 Subject: [PATCH] [1.x] Improves imports when using `functions` (#205) * Improves imports when using `functions` * Style --- app/Output/SummaryOutput.php | 1 + resources/presets/laravel.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Output/SummaryOutput.php b/app/Output/SummaryOutput.php index 3ecbc1f9..043c4b27 100644 --- a/app/Output/SummaryOutput.php +++ b/app/Output/SummaryOutput.php @@ -6,6 +6,7 @@ use App\Project; use App\ValueObjects\Issue; use PhpCsFixer\FixerFileProcessedEvent; + use function Termwind\render; use function Termwind\renderUsing; diff --git a/resources/presets/laravel.php b/resources/presets/laravel.php index affecd29..e82b7ac0 100644 --- a/resources/presets/laravel.php +++ b/resources/presets/laravel.php @@ -16,6 +16,7 @@ 'return', ], ], + 'blank_line_between_import_groups' => true, 'blank_lines_before_namespace' => true, 'control_structure_braces' => true, 'control_structure_continuation_position' => [ @@ -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,