Completed
Push — master ( d5db9d...d34cc7 )
by Greg
02:44
created
src/Runner.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         $this->dir = getcwd();
53 53
     }
54 54
 
55
+    /**
56
+     * @param string $errorType
57
+     */
55 58
     protected function errorCondtion($msg, $errorType)
56 59
     {
57 60
         $this->errorConditions[$msg] = $errorType;
@@ -100,7 +103,7 @@  discard block
 block discarded – undo
100 103
     }
101 104
 
102 105
     /**
103
-     * @param array $argv
106
+     * @param string[] $argv
104 107
      * @param null|string $appName
105 108
      * @param null|string $appVersion
106 109
      * @param null|\Symfony\Component\Console\Output\OutputInterface $output
@@ -123,7 +126,7 @@  discard block
 block discarded – undo
123 126
      * @param null|\Symfony\Component\Console\Input\InputInterface $input
124 127
      * @param null|\Symfony\Component\Console\Output\OutputInterface $output
125 128
      * @param null|\Robo\Application $app
126
-     * @param array[] $commandFiles
129
+     * @param null|string $commandFiles
127 130
      *
128 131
      * @return int
129 132
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function __construct($roboClass = null, $roboFile = null)
48 48
     {
49 49
         // set the const as class properties to allow overwriting in child classes
50
-        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS ;
50
+        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS;
51 51
         $this->roboFile  = $roboFile ? $roboFile : self::ROBOFILE;
52 52
         $this->dir = getcwd();
53 53
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         require_once $roboFilePath;
93 93
 
94 94
         if (!class_exists($this->roboClass)) {
95
-            $output->writeln("<error>Class ".$this->roboClass." was not loaded</error>");
95
+            $output->writeln("<error>Class " . $this->roboClass . " was not loaded</error>");
96 96
             $this->errorCondtion("Class {$this->roboClass} was not loaded.", 'red');
97 97
             return false;
98 98
         }
@@ -372,9 +372,9 @@  discard block
 block discarded – undo
372 372
 
373 373
         if (substr($argv[$pos], 0, 12) == '--load-from=') {
374 374
             $this->dir = substr($argv[$pos], 12);
375
-        } elseif (isset($argv[$pos +1])) {
376
-            $this->dir = $argv[$pos +1];
377
-            unset($argv[$pos +1]);
375
+        } elseif (isset($argv[$pos + 1])) {
376
+            $this->dir = $argv[$pos + 1];
377
+            unset($argv[$pos + 1]);
378 378
         }
379 379
         unset($argv[$pos]);
380 380
         // Make adjustments if '--load-from' points at a file.
Please login to merge, or discard this patch.