Skip to content

Commit

Permalink
Use no style for info to make it different from warning
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Nov 6, 2023
1 parent 2aab6bd commit 3cdb059
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/Command/SetupChecks.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$styleTag = match ($check->getSeverity()) {
'success' => 'info',
'error' => 'error',
default => 'comment',
'warning' => 'comment',
default => null,
};
$emoji = match ($check->getSeverity()) {
'success' => '✓',
Expand All @@ -70,11 +71,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$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
);
}
Expand Down

0 comments on commit 3cdb059

Please sign in to comment.