From 3cdb059dcfa8dc441221dfb2eefacc863b864854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 6 Nov 2023 15:28:51 +0100 Subject: [PATCH] Use no style for info to make it different from warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/Command/SetupChecks.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/Command/SetupChecks.php b/core/Command/SetupChecks.php index d266b62a0f2..ed0d22bdfc0 100644 --- a/core/Command/SetupChecks.php +++ b/core/Command/SetupChecks.php @@ -59,7 +59,8 @@ class SetupChecks extends Base { $styleTag = match ($check->getSeverity()) { 'success' => 'info', 'error' => 'error', - default => 'comment', + 'warning' => 'comment', + default => null, }; $emoji = match ($check->getSeverity()) { 'success' => '✓', @@ -70,11 +71,12 @@ class SetupChecks extends Base { $verbosity = ($check->getSeverity() === 'error' ? OutputInterface::VERBOSITY_QUIET : OutputInterface::VERBOSITY_NORMAL); $description = $check->getDescription(); $output->writeln( - "\t\t<{$styleTag}>". + "\t\t". + ($styleTag !== null ? "<{$styleTag}>" : ''). "{$emoji} ". $title. ($description !== null ? ': '.$description : ''). - "", + ($styleTag !== null ? "" : ''), $verbosity ); }