@@ -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); |
@@ -176,11 +176,11 @@ |
||
176 | 176 | private function addMissingPathError(string $path, string $namespaceRoot, string $absPathRoot): void |
177 | 177 | { |
178 | 178 | $invalidPathMessage = "Namespace root '$namespaceRoot'". |
179 | - "\ncontains a path '$path''". |
|
180 | - "\nwhich doesn't exist\n"; |
|
179 | + "\ncontains a path '$path''". |
|
180 | + "\nwhich doesn't exist\n"; |
|
181 | 181 | if (stripos($absPathRoot, "Magento") !== false) { |
182 | 182 | $invalidPathMessage .= 'Magento\'s composer includes this by default, ' |
183 | - .'it should be removed from the psr-4 section'; |
|
183 | + .'it should be removed from the psr-4 section'; |
|
184 | 184 | } |
185 | 185 | $this->missingPaths[$path] = $invalidPathMessage; |
186 | 186 | } |