Completed
Pull Request — master (#5)
by Greg
02:03
created
src/FileSystemUtils.php 3 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * directories that do not yet exist.
27 27
      *
28 28
      * @param $path The directory path to create.
29
-     * @return boolean
29
+     * @return boolean|null
30 30
      */
31 31
     public static function mkdirParents($path)
32 32
     {
@@ -73,7 +73,8 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Find all installed projects in one organization dir.
75 75
      *
76
-     * @param array $globalOrgDir
76
+     * @param array $globalBaseDir
77
+     * @param string $org
77 78
      * @return string[]
78 79
      */
79 80
     protected static function allInstalledProjectsInOneOrg($globalBaseDir, $org)
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
      * @return string[]
47 47
      */
48 48
     public static function listDirectories($d) {
49
-       return array_filter(scandir($d), function ($f) use($d) {
50
-           return is_dir($d . DIRECTORY_SEPARATOR . $f) && ($f[0] != '.');
51
-       });
49
+        return array_filter(scandir($d), function ($f) use($d) {
50
+            return is_dir($d . DIRECTORY_SEPARATOR . $f) && ($f[0] != '.');
51
+        });
52 52
     }
53 53
 
54 54
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * @return string[]
47 47
      */
48 48
     public static function listDirectories($d) {
49
-       return array_filter(scandir($d), function ($f) use($d) {
49
+       return array_filter(scandir($d), function($f) use($d) {
50 50
            return is_dir($d . DIRECTORY_SEPARATOR . $f) && ($f[0] != '.');
51 51
        });
52 52
     }
Please login to merge, or discard this patch.
src/Application.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
      */
297 297
     public function flipProjectsArray($projects)
298 298
     {
299
-        return array_map(function ($item) { return ''; }, array_flip($projects));
299
+        return array_map(function($item) { return ''; }, array_flip($projects));
300 300
     }
301 301
 
302 302
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
         $methodName = "{$command}Command";
104 104
         if (method_exists($this, $methodName)) {
105 105
             return $this->$methodName($execPath, $composerArgs, $projects, $options);
106
-        }
107
-        else {
106
+        } else {
108 107
             // If there is no specific implementation for the requested command, then call 'generalCommand'.
109 108
             return $this->generalCommand($command, $execPath, $composerArgs, $projects, $options);
110 109
         }
Please login to merge, or discard this patch.