Use no style for info to make it different from warning

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/41081/head
Côme Chilliet 2023-11-06 15:28:51 +07:00
parent 2aab6bd209
commit 3cdb059dcf
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 5 additions and 3 deletions

@ -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
);
}