Completed
Pull Request — master (#580)
by Greg
03:16
created
src/Collection/Collection.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      *
208 208
      * @param string $method
209 209
      * @param string $name
210
-     * @param callable|TaskInterface $task
210
+     * @param callable $task
211 211
      * @param string $nameOfTaskToAdd
212 212
      *
213 213
      * @return $this
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     /**
277 277
      * Return the list of task names added to this collection.
278 278
      *
279
-     * @return array
279
+     * @return integer[]
280 280
      */
281 281
     public function taskNames()
282 282
     {
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     }
350 350
 
351 351
     /**
352
-     * @param int|string $name
352
+     * @param string $name
353 353
      * @param \Robo\Collection\Element $taskGroup
354 354
      *
355 355
      * @return $this
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
     }
636 636
 
637 637
     /**
638
-     * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task
638
+     * @param TaskInterface $task
639 639
      *
640 640
      * @return \Robo\Result
641 641
      */
@@ -689,6 +689,7 @@  discard block
 block discarded – undo
689 689
      * runs. Use this time to provide more settings for the task, e.g. from
690 690
      * the collection's shared state, which is populated with the results
691 691
      * of previous test runs.
692
+     * @param \Closure $callback
692 693
      */
693 694
     public function defer($task, $callback)
694 695
     {
@@ -711,7 +712,7 @@  discard block
 block discarded – undo
711 712
 
712 713
     /**
713 714
      * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task
714
-     * @param $parentCollection
715
+     * @param CollectionInterface $parentCollection
715 716
      */
716 717
     protected function setParentCollectionForTask($task, $parentCollection)
717 718
     {
Please login to merge, or discard this patch.
src/Collection/CollectionBuilder.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -76,6 +76,10 @@  discard block
 block discarded – undo
76 76
         $this->resetState();
77 77
     }
78 78
 
79
+    /**
80
+     * @param \League\Container\ContainerInterface $container
81
+     * @param BuilderAwareInterface $commandFile
82
+     */
79 83
     public static function create($container, $commandFile)
80 84
     {
81 85
         $builder = new self($commandFile);
@@ -284,6 +288,9 @@  discard block
 block discarded – undo
284 288
         return $this->callCollectionStateFuntion(__FUNCTION__, func_get_args());
285 289
     }
286 290
 
291
+    /**
292
+     * @param string $functionName
293
+     */
287 294
     protected function callCollectionStateFuntion($functionName, $args)
288 295
     {
289 296
         $currentTask = ($this->currentTask instanceof WrappedTaskInterface) ? $this->currentTask->original() : $this->currentTask;
Please login to merge, or discard this patch.