@@ -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\Checks; |
6 | 6 | |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | private function get_http_response_code(string $url) |
18 | 18 | { |
19 | - if ($url =='') { |
|
19 | + if ($url == '') { |
|
20 | 20 | return false; |
21 | 21 | } |
22 | 22 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | public function message(): string |
36 | 36 | { |
37 | - return 'Het lijkt erop dat de homepagina niet meer bereikbaar is. <a href="'. route('chief.back.settings.edit') .'" class="text-secondary-800 underline hover:text-white">Kies een nieuwe</a>.'; |
|
37 | + return 'Het lijkt erop dat de homepagina niet meer bereikbaar is. <a href="'.route('chief.back.settings.edit').'" class="text-secondary-800 underline hover:text-white">Kies een nieuwe</a>.'; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | public function notifiers(): array |
@@ -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\Checks; |
6 | 6 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | public function message(): string |
20 | 20 | { |
21 | - return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="'. route('chief.back.settings.edit') .'" class="text-secondary-800 underline hover:text-white">Settings</a>'; |
|
21 | + return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="'.route('chief.back.settings.edit').'" class="text-secondary-800 underline hover:text-white">Settings</a>'; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function notifiers(): array |
@@ -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,7 +22,7 @@ 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 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | app($notifier)->onFailure($checkInstance); |
34 | 34 | } |
35 | 35 | return; |
36 | - } else { |
|
36 | + }else { |
|
37 | 37 | foreach ($notifiers as $notifier) { |
38 | 38 | app($notifier)->onSuccess($checkInstance); |
39 | 39 | } |