diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-06 15:28:51 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-06 15:28:51 +0100 |
commit | 3cdb059dcfa8dc441221dfb2eefacc863b864854 (patch) | |
tree | 26481d2eedd7d9c9a46181e10eb9e24d3e50977a | |
parent | 2aab6bd2096fc83912182704ad70c25954396457 (diff) | |
download | nextcloud-server-3cdb059dcfa8dc441221dfb2eefacc863b864854.tar.gz nextcloud-server-3cdb059dcfa8dc441221dfb2eefacc863b864854.zip |
Use no style for info to make it different from warning
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | core/Command/SetupChecks.php | 8 |
1 files 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}>", + ($styleTag !== null ? "</{$styleTag}>" : ''), $verbosity ); } |