Completed
Push — master ( 5db41f...c1280c )
by Daniel
01:31
created
lib/Adapter/Composer/ComposerClassToFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/Adapter/Composer/ComposerFileToClass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Adapter/Simple/ClassScanner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 if ($tokens[$i][0] === \T_NAMESPACE) {
36 36
                     for ($j = $i + 1; $j < count($tokens); $j++) {
37 37
                         if ($tokens[$j][0] === T_STRING) {
38
-                            $namespace .= '\\' . $tokens[$j][1];
38
+                            $namespace .= '\\'.$tokens[$j][1];
39 39
                         } elseif ($tokens[$j] === '{' || $tokens[$j] === ';') {
40 40
                             break;
41 41
                         }
@@ -59,6 +59,6 @@  discard block
 block discarded – undo
59 59
 
60 60
         fclose($fp);
61 61
 
62
-        return ltrim($namespace . '\\' . $class, '\\');
62
+        return ltrim($namespace.'\\'.$class, '\\');
63 63
     }
64 64
 }
Please login to merge, or discard this patch.