@@ -175,14 +175,14 @@ |
||
175 | 175 | #$start = microtime(true); |
176 | 176 | #fwrite(STDERR, "\n".'Validating link: '.$href); |
177 | 177 | $context = stream_context_create([ |
178 | - 'http' => [ |
|
179 | - 'method' => 'HEAD', |
|
180 | - 'protocol_version' => 1.1, |
|
181 | - 'header' => [ |
|
182 | - 'Connection: close', |
|
183 | - ], |
|
184 | - ], |
|
185 | - ]); |
|
178 | + 'http' => [ |
|
179 | + 'method' => 'HEAD', |
|
180 | + 'protocol_version' => 1.1, |
|
181 | + 'header' => [ |
|
182 | + 'Connection: close', |
|
183 | + ], |
|
184 | + ], |
|
185 | + ]); |
|
186 | 186 | $result = null; |
187 | 187 | try { |
188 | 188 | $headers = get_headers($href, 0, $context); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | '', |
123 | 123 | \dirname($file) |
124 | 124 | ); |
125 | - $start .= '/'.\rtrim($relativeSubdirs, '/'); |
|
125 | + $start .= '/'.\rtrim($relativeSubdirs, '/'); |
|
126 | 126 | } |
127 | 127 | $realpath = \realpath($start.'/'.$path); |
128 | 128 | if (empty($realpath) || (!\file_exists($realpath) && !\is_dir($realpath))) { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | ], |
184 | 184 | ], |
185 | 185 | ]); |
186 | - $result = null; |
|
186 | + $result = null; |
|
187 | 187 | try { |
188 | 188 | $headers = get_headers($href, 0, $context); |
189 | 189 | foreach ($headers as $header) { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | $href, |
204 | 204 | var_export($result, true) |
205 | 205 | ); |
206 | - $return = 1; |
|
206 | + $return = 1; |
|
207 | 207 | #$time = round(microtime(true) - $start, 2); |
208 | 208 | #fwrite(STDERR, "\n".'Failed ('.$time.' seconds): '.$href); |
209 | 209 | } |