Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-health
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 26, 2021
2 parents 7836440 + 2da47e0 commit 393d908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ListChecksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
]));
Expand All @@ -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',
Expand Down

0 comments on commit 393d908

Please sign in to comment.