Completed
Pull Request — master (#671)
by Antonio
02:59
created
src/Runner.php 2 patches
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@  discard block
 block discarded – undo
68 68
         $this->dir = getcwd();
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $errorType
73
+     */
71 74
     protected function errorCondtion($msg, $errorType)
72 75
     {
73 76
         $this->errorConditions[$msg] = $errorType;
@@ -115,7 +118,7 @@  discard block
 block discarded – undo
115 118
     }
116 119
 
117 120
     /**
118
-     * @param array $argv
121
+     * @param string[] $argv
119 122
      * @param null|string $appName
120 123
      * @param null|string $appVersion
121 124
      * @param null|\Symfony\Component\Console\Output\OutputInterface $output
@@ -138,7 +141,7 @@  discard block
 block discarded – undo
138 141
      * @param null|\Symfony\Component\Console\Input\InputInterface $input
139 142
      * @param null|\Symfony\Component\Console\Output\OutputInterface $output
140 143
      * @param null|\Robo\Application $app
141
-     * @param array[] $commandFiles
144
+     * @param null|string $commandFiles
142 145
      * @param null|ClassLoader $classLoader
143 146
      *
144 147
      * @return int
@@ -229,9 +232,9 @@  discard block
 block discarded – undo
229 232
     }
230 233
 
231 234
     /**
232
-     * @param $relativeNamespace
235
+     * @param string $relativeNamespace
233 236
      *
234
-     * @return array|string[]
237
+     * @return string[]
235 238
      */
236 239
     protected function discoverCommandClasses($relativeNamespace)
237 240
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function __construct($roboClass = null, $roboFile = null)
64 64
     {
65 65
         // set the const as class properties to allow overwriting in child classes
66
-        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS ;
66
+        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS;
67 67
         $this->roboFile  = $roboFile ? $roboFile : self::ROBOFILE;
68 68
         $this->dir = getcwd();
69 69
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     {
240 240
         /** @var \Robo\ClassDiscovery\RelativeNamespaceDiscovery $discovery */
241 241
         $discovery = Robo::service('relativeNamespaceDiscovery');
242
-        $discovery->setRelativeNamespace($relativeNamespace.'\Commands');
242
+        $discovery->setRelativeNamespace($relativeNamespace . '\Commands');
243 243
         return $discovery->getClasses();
244 244
     }
245 245
 
@@ -412,9 +412,9 @@  discard block
 block discarded – undo
412 412
 
413 413
         if (substr($argv[$pos], 0, 12) == '--load-from=') {
414 414
             $this->dir = substr($argv[$pos], 12);
415
-        } elseif (isset($argv[$pos +1])) {
416
-            $this->dir = $argv[$pos +1];
417
-            unset($argv[$pos +1]);
415
+        } elseif (isset($argv[$pos + 1])) {
416
+            $this->dir = $argv[$pos + 1];
417
+            unset($argv[$pos + 1]);
418 418
         }
419 419
         unset($argv[$pos]);
420 420
         // Make adjustments if '--load-from' points at a file.
Please login to merge, or discard this patch.