@@ -26,7 +26,7 @@ discard block |
||
| 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 |
||
| 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) |
@@ -46,9 +46,9 @@ |
||
| 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 | |
@@ -46,7 +46,7 @@ |
||
| 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 | } |
@@ -296,7 +296,7 @@ |
||
| 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 | /** |
@@ -103,8 +103,7 @@ |
||
| 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 | } |