@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $realPath, |
| 114 | 114 | \RecursiveDirectoryIterator::SKIP_DOTS |
| 115 | 115 | ); |
| 116 | - $iterator = new \RecursiveIteratorIterator( |
|
| 116 | + $iterator = new \RecursiveIteratorIterator( |
|
| 117 | 117 | $directoryIterator, |
| 118 | 118 | \RecursiveIteratorIterator::SELF_FIRST |
| 119 | 119 | ); |
@@ -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 | } |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | /* Find bootstrap path */ |
| 4 | 4 | $rootPath = realpath(dirname(__FILE__)); |
| 5 | -while (!file_exists($rootPath . '/app/bootstrap.php') && $rootPath !== '/') { |
|
| 5 | +while (!file_exists($rootPath.'/app/bootstrap.php') && $rootPath !== '/') { |
|
| 6 | 6 | $rootPath = realpath(dirname($rootPath)); |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | /* Include Magento bootstrap file */ |
| 10 | -require_once $rootPath . '/app/bootstrap.php'; |
|
| 10 | +require_once $rootPath.'/app/bootstrap.php'; |
|
| 11 | 11 | |
| 12 | 12 | /* Create git hook class autoloader */ |
| 13 | 13 | $_git_hook_loaded_class = []; |
@@ -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); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | '', |
| 125 | 125 | \dirname($file) |
| 126 | 126 | ); |
| 127 | - $start .= '/'.\rtrim($relativeSubdirs, '/'); |
|
| 127 | + $start .= '/'.\rtrim($relativeSubdirs, '/'); |
|
| 128 | 128 | } |
| 129 | 129 | $realpath = \realpath($start.'/'.$path); |
| 130 | 130 | if (false === $realpath) { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | ], |
| 186 | 186 | ], |
| 187 | 187 | ]); |
| 188 | - $result = null; |
|
| 188 | + $result = null; |
|
| 189 | 189 | try { |
| 190 | 190 | $headers = get_headers($href, 0, $context); |
| 191 | 191 | foreach ($headers as $header) { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | $href, |
| 206 | 206 | var_export($result, true) |
| 207 | 207 | ); |
| 208 | - $return = 1; |
|
| 208 | + $return = 1; |
|
| 209 | 209 | #$time = round(microtime(true) - $start, 2); |
| 210 | 210 | #fwrite(STDERR, "\n".'Failed ('.$time.' seconds): '.$href); |
| 211 | 211 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | ): void { |
| 75 | 75 | $this->testSuccesful = false; |
| 76 | 76 | $this->symbol = $symbol; |
| 77 | - $this->additionalInformation .= "\n".$additionalInformation; |
|
| 77 | + $this->additionalInformation .= "\n".$additionalInformation; |
|
| 78 | 78 | $this->additionalInformationVerbose = $additionalInformationVerbose; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | \implode( |
| 136 | 136 | "\n", |
| 137 | 137 | \array_map( |
| 138 | - function (string $text) { |
|
| 138 | + function(string $text) { |
|
| 139 | 139 | return \sprintf(' │ %s', $text); |
| 140 | 140 | }, |
| 141 | 141 | \explode("\n", $this->additionalInformation) |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $this->currentTestResult = new \EdmondsCommerce\PHPQA\PHPUnit\TestDox\TestResult( |
| 92 | - function (string $color, string $buffer) { |
|
| 92 | + function(string $color, string $buffer) { |
|
| 93 | 93 | return $this->formatWithColor($color, $buffer); |
| 94 | 94 | }, |
| 95 | 95 | $className, |