@@ -82,7 +82,7 @@ |
||
82 | 82 | |
83 | 83 | foreach ($prefixes as $prefix => $files) { |
84 | 84 | $files = (array) $files; |
85 | - $files = array_map(function ($file) { |
|
85 | + $files = array_map(function($file) { |
|
86 | 86 | if (!file_exists($file)) { |
87 | 87 | $this->logger->warning(sprintf( |
88 | 88 | 'Composer mapped directory "%s" does not exist', $file |
@@ -80,14 +80,14 @@ |
||
80 | 80 | // |
81 | 81 | // TODO: realpath will return void if the path does not exist |
82 | 82 | // we should not depend on the file path existing. |
83 | - $pathPrefixes = array_map(function ($pathPrefix) { |
|
83 | + $pathPrefixes = array_map(function($pathPrefix) { |
|
84 | 84 | return Path::canonicalize($pathPrefix); |
85 | 85 | }, $pathPrefixes); |
86 | 86 | |
87 | 87 | foreach ($pathPrefixes as $pathPrefix) { |
88 | 88 | |
89 | 89 | if ((string) $filePath == $pathPrefix) { |
90 | - $candidates[] = [ $pathPrefix, $classPrefix ]; |
|
90 | + $candidates[] = [$pathPrefix, $classPrefix]; |
|
91 | 91 | continue; |
92 | 92 | } |
93 | 93 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | if ($tokens[$i][0] === T_NAMESPACE) { |
58 | 58 | for ($j = $i + 1; $j < count($tokens); $j++) { |
59 | 59 | if ($tokens[$j][0] === T_STRING) { |
60 | - $namespace .= '\\' . $tokens[$j][1]; |
|
60 | + $namespace .= '\\'.$tokens[$j][1]; |
|
61 | 61 | } elseif ($tokens[$j] === '{' || $tokens[$j] === ';') { |
62 | 62 | break; |
63 | 63 | } |
@@ -81,6 +81,6 @@ discard block |
||
81 | 81 | |
82 | 82 | fclose($fp); |
83 | 83 | |
84 | - return ltrim($namespace . '\\' . $class, '\\'); |
|
84 | + return ltrim($namespace.'\\'.$class, '\\'); |
|
85 | 85 | } |
86 | 86 | } |