Test Failed
Push — master ( 3ef329...d55ae3 )
by Antonio Carlos
01:41 queued 11s
created
src/Checkers/Certificate.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.