From 2da47e0a028f61acd5279ea156a15cf152cc9cc7 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 26 Nov 2021 16:26:22 +0000 Subject: [PATCH] Fix styling --- src/Commands/ListChecksCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/ListChecksCommand.php b/src/Commands/ListChecksCommand.php index 9c959b2b..5e2ffce3 100644 --- a/src/Commands/ListChecksCommand.php +++ b/src/Commands/ListChecksCommand.php @@ -25,7 +25,7 @@ public function handle(): int render(view('health::cli.list', [ 'lastRanAt' => new Carbon($checkResults->finishedAt), 'checkResults' => $checkResults, - 'color' => function(string $status) { + 'color' => function (string $status) { return $this->getBackgroundColor($status); }, ])); @@ -35,7 +35,7 @@ public function handle(): int protected function getBackgroundColor(string $status) { - return match($status) { + return match ($status) { Status::ok()->value => 'bg-green-800', Status::warning()->value => 'bg-orange-800', Status::skipped()->value => 'bg-blue-800',