Completed
Pull Request — master (#893)
by Greg
05:57
created
src/Task/Docker/Run.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @param string|\Robo\Contract\CommandInterface $run
127
+     * @param string $run
128 128
      *
129 129
      * @return $this
130 130
      */
Please login to merge, or discard this patch.
src/Collection/Collection.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param string $method
214 214
      * @param string $name
215
-     * @param callable|\Robo\Contract\TaskInterface $task
215
+     * @param callable $task
216 216
      * @param string $nameOfTaskToAdd
217 217
      *
218 218
      * @return $this
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     /**
284 284
      * Return the list of task names added to this collection.
285 285
      *
286
-     * @return string[]
286
+     * @return integer[]
287 287
      */
288 288
     public function taskNames()
289 289
     {
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     }
357 357
 
358 358
     /**
359
-     * @param int|string $name
359
+     * @param string $name
360 360
      * @param \Robo\Collection\Element $taskGroup
361 361
      *
362 362
      * @return $this
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
     }
649 649
 
650 650
     /**
651
-     * @param \Robo\Contract\TaskInterface|\Robo\Collection\NestedCollectionInterface|\Robo\Contract\WrappedTaskInterface $task
651
+     * @param TaskInterface $task
652 652
      *
653 653
      * @return \Robo\Result
654 654
      */
Please login to merge, or discard this patch.
src/Common/ResourceExistenceChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @param string $type
49 49
      *   Allowed values: "file", "dir", "fileAndDir".
50 50
      *
51
-     * @return bool
51
+     * @return boolean|null
52 52
      */
53 53
     protected function checkResource($resource, $type)
54 54
     {
Please login to merge, or discard this patch.
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/Robo.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,6 +163,10 @@  discard block
 block discarded – undo
163 163
         return $container;
164 164
     }
165 165
 
166
+    /**
167
+     * @param Application $app
168
+     * @param Container $container
169
+     */
166 170
     public static function configureApplication($app, $container)
167 171
     {
168 172
         // Set the application dispatcher
@@ -350,7 +354,7 @@  discard block
 block discarded – undo
350 354
      * @param string $id
351 355
      *   The ID of the service to retrieve.
352 356
      *
353
-     * @return mixed
357
+     * @return \Symfony\Component\Console\Output\OutputInterface
354 358
      *   The specified service.
355 359
      */
356 360
     public static function service($id)
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/ApiGen/ApiGen.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-     * @param array|string|\Traversable $src
168
+     * @param string $src
169 169
      *   One or more source values.
170 170
      *
171 171
      * @return $this
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-     * @param array|string $exts
193
+     * @param string $exts
194 194
      *   One or more extensions.
195 195
      *
196 196
      * @return $this
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
     /**
205
-     * @param array|string $exclude
205
+     * @param string[] $exclude
206 206
      *   One or more exclusions.
207 207
      *
208 208
      * @return $this
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     }
217 217
 
218 218
     /**
219
-     * @param array|string|\Traversable $path
219
+     * @param \SplDoublyLinkedList $path
220 220
      *   One or more skip-doc-path values.
221 221
      *
222 222
      * @return $this
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-     * @param array|string $charset
247
+     * @param string[] $charset
248 248
      *   One or more charsets.
249 249
      *
250 250
      * @return $this
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.