@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | $classLoader = $autoloader[0]; |
| 45 | 45 | $depth = 0; |
| 46 | 46 | while (null === $classDir) { |
| 47 | - if (array_key_exists($namespace . "\\", $classLoader->getPrefixesPsr4())) { |
|
| 48 | - $classDir = $classLoader->getPrefixesPsr4()[$namespace . "\\"][0]; |
|
| 47 | + if (array_key_exists($namespace."\\", $classLoader->getPrefixesPsr4())) { |
|
| 48 | + $classDir = $classLoader->getPrefixesPsr4()[$namespace."\\"][0]; |
|
| 49 | 49 | } else { |
| 50 | - $parts = DIRECTORY_SEPARATOR . $getClassNameFromFQCN($namespace) . $parts; |
|
| 50 | + $parts = DIRECTORY_SEPARATOR.$getClassNameFromFQCN($namespace).$parts; |
|
| 51 | 51 | $namespace = $getNamespaceFromFQCN($namespace); |
| 52 | 52 | } |
| 53 | 53 | if (10 <= $depth) { |
@@ -67,6 +67,6 @@ discard block |
||
| 67 | 67 | )); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - return $classDir . $parts; |
|
| 70 | + return $classDir.$parts; |
|
| 71 | 71 | } |
| 72 | 72 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | throw new RuntimeException(sprintf('Directory "%s" was not created', $classDir)); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - $realFilePath = $classDir . DIRECTORY_SEPARATOR . $className . '.php'; |
|
| 23 | + $realFilePath = $classDir.DIRECTORY_SEPARATOR.$className.'.php'; |
|
| 24 | 24 | if (file_exists($realFilePath)) { |
| 25 | 25 | throw new RuntimeException(sprintf('File %s already exist.', $realFilePath)); |
| 26 | 26 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $getNamespaceFromFQCN, |
| 45 | 45 | new GetRealPathFromNamespace($getClassNameFromFQCN, $getNamespaceFromFQCN), |
| 46 | 46 | new CreateClassFile, |
| 47 | - (array)$container->get('config') |
|
| 47 | + (array) $container->get('config') |
|
| 48 | 48 | ); |
| 49 | 49 | } |
| 50 | 50 | |