Test Setup Failed
Push — master ( 631b6a...2c79bf )
by Antonio Carlos
02:43 queued 11s
created
src/Listeners/NotifyHealthIssue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     private function getNotifiableUsers()
17 17
     {
18 18
         return collect(config('health.notifications.users.emails'))->map(
19
-            function ($item) {
19
+            function($item) {
20 20
                 $model = instantiate(
21 21
                     config('health.notifications.users.model')
22 22
                 );
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
             $notifierClass = HealthStatus::class;
45 45
         }
46 46
         try {
47
-            $event->failure->targets->each(function ($target) use ($event, $notifierClass) {
48
-                if (! $target->result->healthy) {
47
+            $event->failure->targets->each(function($target) use ($event, $notifierClass) {
48
+                if (!$target->result->healthy) {
49 49
                     Notification::send(
50 50
                         $this->getNotifiableUsers(),
51 51
                         $notifierClass->newInstance($target, $event->channel)
Please login to merge, or discard this patch.