Completed
Pull Request — master (#15)
by Greg
12:38 queued 06:58
created
src/FileSystemUtils.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public static function listDirectories($d)
49 49
     {
50
-        return array_filter(scandir($d), function ($f) use ($d) {
50
+        return array_filter(scandir($d), function($f) use ($d) {
51 51
             return is_dir($d . DIRECTORY_SEPARATOR . $f) && ($f[0] != '.');
52 52
         });
53 53
     }
Please login to merge, or discard this patch.
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
     {
@@ -74,7 +74,8 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * Find all installed projects in one organization dir.
76 76
      *
77
-     * @param string $globalOrgDir
77
+     * @param string $globalBaseDir
78
+     * @param string $org
78 79
      * @return string[]
79 80
      */
80 81
     protected static function allInstalledProjectsInOneOrg($globalBaseDir, $org)
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
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
      */
296 296
     public function flipProjectsArray($projects)
297 297
     {
298
-        return array_map(function () {
298
+        return array_map(function() {
299 299
             return '';
300 300
         }, array_flip($projects));
301 301
     }
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     /**
125 125
      * Run all of the commands in a list.  Abort early if any fail.
126 126
      *
127
-     * @param array $commandList An array of CommandToExec
127
+     * @param CommandToExec $commandList An array of CommandToExec
128 128
      * @return integer
129 129
      */
130 130
     public function runCommandList($commandList, $options)
@@ -151,6 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param array $composerArgs
152 152
      * @param array $projects
153 153
      * @param array $options
154
+     * @param string $command
154 155
      * @return CommandToExec
155 156
      */
156 157
     public function getCommandsToExec($command, $composerArgs, $projects, $options)
@@ -381,7 +382,6 @@  discard block
 block discarded – undo
381 382
      * the "global" Composer project, we also want to get the infomation of
382 383
      * all the "isolated" projects installed via cgr in ~/.composer/global.
383 384
      *
384
-     * @param string $command The path to composer
385 385
      * @param array $composerArgs Anything from the global $argv to be passed
386 386
      *   on to Composer
387 387
      * @param array $projects A list of projects to update.
@@ -405,7 +405,6 @@  discard block
 block discarded – undo
405 405
      * "global" Composer project, we also want to update all of the
406 406
      * "isolated" projects installed via cgr in ~/.composer/global.
407 407
      *
408
-     * @param string $command The path to composer
409 408
      * @param array $composerArgs Anything from the global $argv to be passed
410 409
      *   on to Composer
411 410
      * @param array $projects A list of projects to update.
@@ -455,11 +454,12 @@  discard block
 block discarded – undo
455 454
     /**
456 455
      * Generate command string to call `composer COMMAND` to install one project.
457 456
      *
458
-     * @param string $command The path to composer
459 457
      * @param array $composerArgs The arguments to pass to composer
460 458
      * @param string $projectWithVersion The project:version to install
461 459
      * @param array $env Environment to set prior to exec
462 460
      * @param string $installLocation Location to install the project
461
+     * @param string $composerCommand
462
+     * @param string $execPath
463 463
      * @return CommandToExec
464 464
      */
465 465
     public function buildGlobalCommand($composerCommand, $execPath, $composerArgs, $projectWithVersion, $env, $installLocation)
Please login to merge, or discard this patch.
src/CommandToExec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function getCommandString()
30 30
     {
31
-        $escapedArgs = array_map(function ($item) {
31
+        $escapedArgs = array_map(function($item) {
32 32
             return escapeshellarg($item);
33 33
         }, $this->arguments);
34 34
         return $this->execPath . ' ' . implode(' ', $escapedArgs);
Please login to merge, or discard this patch.