Completed
Pull Request — master (#924)
by Greg
02:28
created
src/GlobalOptionsEventListener.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      *
131 131
      * @param string $value
132 132
      *
133
-     * @return array
133
+     * @return boolean[]
134 134
      */
135 135
     protected function splitConfigKeyValue($value)
136 136
     {
Please login to merge, or discard this patch.
src/Runner.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     }
137 137
 
138 138
     /**
139
-     * @param array $argv
139
+     * @param string[] $argv
140 140
      * @param null|string $appName
141 141
      * @param null|string $appVersion
142 142
      * @param null|\Symfony\Component\Console\Output\OutputInterface $output
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * @param null|\Symfony\Component\Console\Input\InputInterface $input
176 176
      * @param null|\Symfony\Component\Console\Output\OutputInterface $output
177 177
      * @param null|\Robo\Application $app
178
-     * @param array[] $commandFiles
178
+     * @param null|string $commandFiles
179 179
      * @param null|ClassLoader $classLoader
180 180
      *
181 181
      * @return int
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
     }
536 536
 
537 537
     /**
538
-     * @param $selfUpdateRepository
538
+     * @param null|string $selfUpdateRepository
539 539
      *
540 540
      * @return $this
541 541
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function __construct($roboClass = null, $roboFile = null)
81 81
     {
82 82
         // set the const as class properties to allow overwriting in child classes
83
-        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS ;
83
+        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS;
84 84
         $this->roboFile  = $roboFile ? $roboFile : self::ROBOFILE;
85 85
         $this->dir = getcwd();
86 86
     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     {
280 280
         /** @var \Robo\ClassDiscovery\RelativeNamespaceDiscovery $discovery */
281 281
         $discovery = Robo::service('relativeNamespaceDiscovery');
282
-        $discovery->setRelativeNamespace($relativeNamespace.'\Commands')
282
+        $discovery->setRelativeNamespace($relativeNamespace . '\Commands')
283 283
             ->setSearchPattern('/.*Commands?\.php$/');
284 284
         return $discovery->getClasses();
285 285
     }
@@ -460,9 +460,9 @@  discard block
 block discarded – undo
460 460
 
461 461
         if (substr($argv[$pos], 0, 12) == '--load-from=') {
462 462
             $this->dir = substr($argv[$pos], 12);
463
-        } elseif (isset($argv[$pos +1])) {
464
-            $this->dir = $argv[$pos +1];
465
-            unset($argv[$pos +1]);
463
+        } elseif (isset($argv[$pos + 1])) {
464
+            $this->dir = $argv[$pos + 1];
465
+            unset($argv[$pos + 1]);
466 466
         }
467 467
         unset($argv[$pos]);
468 468
         // Make adjustments if '--load-from' points at a file.
Please login to merge, or discard this patch.
src/Task/Base/loadTasks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 trait loadTasks
5 5
 {
6 6
     /**
7
-     * @param string|\Robo\Contract\CommandInterface $command
7
+     * @param string $command
8 8
      *
9 9
      * @return \Robo\Task\Base\Exec|\Robo\Collection\CollectionBuilder
10 10
      */
Please login to merge, or discard this patch.
src/Task/Development/loadTasks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @param string|array $url
78
+     * @param string[] $url
79 79
      *
80 80
      * @return \Robo\Task\Development\OpenBrowser|\Robo\Collection\CollectionBuilder
81 81
      */
Please login to merge, or discard this patch.
src/Task/Filesystem/loadTasks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     }
15 15
 
16 16
     /**
17
-     * @param string|string[] $dirs
17
+     * @param string $dirs
18 18
      *
19 19
      * @return \Robo\Task\Filesystem\DeleteDir|\Robo\Collection\CollectionBuilder
20 20
      */
Please login to merge, or discard this patch.
src/Task/Remote/Ssh.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-     * @param string|string[]|CommandInterface $command
189
+     * @param string $command
190 190
      *
191 191
      * @return $this
192 192
      */
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * Returns an ssh command string running $command on the remote.
257 257
      *
258
-     * @param string|CommandInterface $command
258
+     * @param string $command
259 259
      *
260 260
      * @return string
261 261
      */
Please login to merge, or discard this patch.
src/Task/Assets/loadTasks.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
         return $this->task(ImageMinify::class, $input);
24 24
     }
25 25
 
26
-   /**
27
-    * @param array $input
28
-    *
29
-    * @return \Robo\Task\Assets\Less|\Robo\Collection\CollectionBuilder
30
-    */
26
+    /**
27
+     * @param array $input
28
+     *
29
+     * @return \Robo\Task\Assets\Less|\Robo\Collection\CollectionBuilder
30
+     */
31 31
     protected function taskLess($input)
32 32
     {
33 33
         return $this->task(Less::class, $input);
Please login to merge, or discard this patch.
src/Collection/CollectionBuilder.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -168,16 +168,16 @@
 block discarded – undo
168 168
         return $this;
169 169
     }
170 170
 
171
-  /**
172
-   * Add arbitrary code to execute as a task.
173
-   *
174
-   * @see \Robo\Collection\CollectionInterface::addCode
175
-   *
176
-   * @param callable $code
177
-   * @param int|string $name
178
-   *
179
-   * @return $this
180
-   */
171
+    /**
172
+     * Add arbitrary code to execute as a task.
173
+     *
174
+     * @see \Robo\Collection\CollectionInterface::addCode
175
+     *
176
+     * @param callable $code
177
+     * @param int|string $name
178
+     *
179
+     * @return $this
180
+     */
181 181
     public function addCode(callable $code, $name = \Robo\Collection\CollectionInterface::UNNAMEDTASK)
182 182
     {
183 183
         $this->getCollection()->addCode($code, $name);
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
     'debug' => true,
7 7
     'cacheDir' => '/tmp',
8 8
     'includePaths' => [
9
-        __DIR__.'/../src',
10
-        __DIR__.'/../vendor/symfony/process',
11
-        __DIR__.'/../vendor/symfony/console',
12
-        __DIR__.'/../vendor/henrikbjorn/lurker/src',
9
+        __DIR__ . '/../src',
10
+        __DIR__ . '/../vendor/symfony/process',
11
+        __DIR__ . '/../vendor/symfony/console',
12
+        __DIR__ . '/../vendor/henrikbjorn/lurker/src',
13 13
     ]
14 14
 ]);
Please login to merge, or discard this patch.