Completed
Pull Request — master (#306)
by Philippe
79:09 queued 13:49
created
src/HealthMonitor/Monitor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
             $notifiers = $checkInstance->notifiers();
19 19
 
20 20
             if (!$checkInstance->check()) {
21
-                foreach($notifiers as $notifier)
21
+                foreach ($notifiers as $notifier)
22 22
                 {
23 23
                     app($notifier)->onFailure($checkInstance);
24 24
                 }
25 25
                 return;
26
-            } else {
27
-                foreach($notifiers as $notifier)
26
+            }else {
27
+                foreach ($notifiers as $notifier)
28 28
                 {
29 29
                     app($notifier)->onSuccess($checkInstance);
30 30
                 }
Please login to merge, or discard this patch.
src/HealthMonitor/Checks/HomepageAccessibleCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/HealthMonitor/Checks/HomepageSetCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.