@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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) |