@@ -91,6 +91,9 @@ discard block |
||
| 91 | 91 | return (array) $this->target->urls; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $host |
|
| 96 | + */ |
|
| 94 | 97 | public function checkHostCertificate($host) |
| 95 | 98 | { |
| 96 | 99 | $result = collect([ |
@@ -164,7 +167,7 @@ discard block |
||
| 164 | 167 | |
| 165 | 168 | /** |
| 166 | 169 | * @param $host |
| 167 | - * @return string|string[] |
|
| 170 | + * @return string |
|
| 168 | 171 | */ |
| 169 | 172 | protected function makeCommand($host) |
| 170 | 173 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | foreach ($resources as $url) { |
| 29 | 29 | [$healthy, $message] = $this->checkCertificate($url); |
| 30 | 30 | |
| 31 | - if (! $healthy) { |
|
| 31 | + if (!$healthy) { |
|
| 32 | 32 | return $this->makeResult(false, $message); |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | 'php' => $this->checkCertificateWithPhp($host), |
| 105 | 105 | ]) |
| 106 | - ->filter(function ($result) { |
|
| 106 | + ->filter(function($result) { |
|
| 107 | 107 | return $result[0] === false; |
| 108 | 108 | }) |
| 109 | 109 | ->first(); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | $result = collect($output) |
| 123 | 123 | ->filter( |
| 124 | - function ($line) { |
|
| 124 | + function($line) { |
|
| 125 | 125 | return Str::contains( |
| 126 | 126 | $line, |
| 127 | 127 | $this->target->resource->verifyString |