Passed
Push — master ( ee13c0...fd5ab9 )
by Koldo
02:31
created
src/Application/Service/GetRealPathFromNamespace.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
67 67
             ));
68 68
         }
69 69
 
70
-        return $classDir . $parts;
70
+        return $classDir.$parts;
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/Application/Service/CreateClassFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Container/MakerCommandFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.