Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
roblesterjr04 committed Jun 23, 2023
1 parent 6597a5f commit 4a69641
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Checks/Checks/CombinedCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ public function run(): Result
$checkResult = $check->run();
$status = (string)$checkResult->status;
if ($status !== 'ok') $notOk++;
$summary[] = $this->checkIcons[(string)$checkResult->status] . $checkResult->getShortSummary();
$summary[] = $this->checkIcons[(string)$checkResult->status] . ($checkResult->getNotificationMessage()
?: $checkResult->getShortSummary());
}

$result->shortSummary(implode("<br />", $summary));
$result->ok(implode("<br />", $summary));

if ($notOk == $total) return $result->failed();
if ($notOk > 0) return $result->warning();

return $result->ok();
return $result;

}

Expand Down
7 changes: 7 additions & 0 deletions tests/SpoofsLaravelApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ function now()
}
}

if (!function_exists('trans')) {
function trans($string)
{
return $string;
}
}

}
}

0 comments on commit 4a69641

Please sign in to comment.