@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Thinktomorrow\Chief\HealthMonitor; |
| 6 | 6 | |
@@ -22,20 +22,20 @@ discard block |
||
| 22 | 22 | foreach ($this->checks as $check) { |
| 23 | 23 | $checkInstance = app($check); |
| 24 | 24 | |
| 25 | - if(! $checkInstance instanceof HealthCheck){ |
|
| 25 | + if (!$checkInstance instanceof HealthCheck) { |
|
| 26 | 26 | throw new InvalidClassException('Checks must implement Healthcheck interface.'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $notifiers = $checkInstance->notifiers(); |
| 30 | 30 | |
| 31 | 31 | if (!$checkInstance->check()) { |
| 32 | - foreach($notifiers as $notifier) |
|
| 32 | + foreach ($notifiers as $notifier) |
|
| 33 | 33 | { |
| 34 | 34 | app($notifier)->onFailure($checkInstance); |
| 35 | 35 | } |
| 36 | 36 | return; |
| 37 | - } else { |
|
| 38 | - foreach($notifiers as $notifier) |
|
| 37 | + }else { |
|
| 38 | + foreach ($notifiers as $notifier) |
|
| 39 | 39 | { |
| 40 | 40 | app($notifier)->onSuccess($checkInstance); |
| 41 | 41 | } |