mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Use no style for info to make it different from warning
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
2aab6bd209
commit
3cdb059dcf
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
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue