| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 52 | public function check(): void |
||
| 53 | { |
||
| 54 | foreach ($this->checks as $checker) { |
||
| 55 | $result = $checker->checkStatus(); |
||
| 56 | if ($this->logger) { |
||
| 57 | if ($result->isSuccess()) { |
||
| 58 | $this->logger->info($result->getLabel().': OK', ['details' => $result->getDetails()]); |
||
| 59 | } else { |
||
| 60 | $this->logger->alert($result->getLabel().': '.$result->getError(), ['details' => $result->getDetails()]); |
||
| 61 | } |
||
| 62 | } |
||
| 63 | $this->results[] = $result; |
||
| 64 | } |
||
| 94 |