@@ -54,10 +54,10 @@ discard block |
||
54 | 54 | public static function fromConfig(): Runner |
55 | 55 | { |
56 | 56 | return Collection::make(config('api-health.checkers')) |
57 | - ->map(function ($checker): Executor { |
|
57 | + ->map(function($checker): Executor { |
|
58 | 58 | return Executor::make($checker); |
59 | 59 | }) |
60 | - ->pipe(function ($executors) { |
|
60 | + ->pipe(function($executors) { |
|
61 | 61 | return new static($executors); |
62 | 62 | }); |
63 | 63 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $this->passes = new Collection; |
117 | 117 | |
118 | - $this->executors->filter(function (Executor $executor) { |
|
118 | + $this->executors->filter(function(Executor $executor) { |
|
119 | 119 | if (!$this->scheduled) { |
120 | 120 | return true; |
121 | 121 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | return $executor->getChecker()->isDue(); |
128 | - })->each(function (Executor $executor) { |
|
128 | + })->each(function(Executor $executor) { |
|
129 | 129 | ($executor->fails() ? $this->failed : $this->passes)->push($executor); |
130 | 130 | }); |
131 | 131 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @return null|string |
35 | 35 | */ |
36 | - public function retryJob(): ? string |
|
36 | + public function retryJob(): ? string |
|
37 | 37 | { |
38 | 38 | return $this->retryJob ?: config('api-health.retries.job.job'); |
39 | 39 | } |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * |
17 | 17 | * @return null|string |
18 | 18 | */ |
19 | - public function retryJob(): ? string; |
|
19 | + public function retryJob(): ? string; |
|
20 | 20 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | 'command.make:ssl-certificate-checker', |
62 | 62 | ]); |
63 | 63 | |
64 | - $this->app->singleton('laravel-api-health', function ($app) { |
|
64 | + $this->app->singleton('laravel-api-health', function($app) { |
|
65 | 65 | return $app->make(ApiHealthChecker::class); |
66 | 66 | }); |
67 | 67 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | return; |
20 | 20 | } |
21 | 21 | |
22 | - return tap($notification, function ($notification) { |
|
22 | + return tap($notification, function($notification) { |
|
23 | 23 | app(config('api-health.notifications.notifiable'))->notify($notification); |
24 | 24 | }); |
25 | 25 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public static function fake() |
29 | 29 | { |
30 | - return tap(new ApiHealthFake, function ($fake) { |
|
30 | + return tap(new ApiHealthFake, function($fake) { |
|
31 | 31 | static::swap($fake); |
32 | 32 | }); |
33 | 33 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | if ($passes->isNotEmpty()) { |
46 | 46 | $this->line(''); |
47 | 47 | $this->info('Passing checkers:'); |
48 | - $this->table(['Checker'], $passes->map(function (Executor $executor) { |
|
48 | + $this->table(['Checker'], $passes->map(function(Executor $executor) { |
|
49 | 49 | return [get_class($executor->getChecker())]; |
50 | 50 | })); |
51 | 51 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | if ($failed->isNotEmpty()) { |
54 | 54 | $this->line(''); |
55 | 55 | $this->error('Failed checkers:'); |
56 | - $this->table(['Checker', 'Exception'], $failed->map(function (Executor $executor) { |
|
56 | + $this->table(['Checker', 'Exception'], $failed->map(function(Executor $executor) { |
|
57 | 57 | return [ |
58 | 58 | get_class($executor->getChecker()), |
59 | 59 | $executor->getException()->getMessage(), |