@@ -75,7 +75,7 @@ |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @param string|array $url |
|
78 | + * @param string[] $url |
|
79 | 79 | * |
80 | 80 | * @return OpenBrowser |
81 | 81 | */ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * |
28 | 28 | * @param \Robo\Result $result |
29 | 29 | * |
30 | - * @return bool |
|
30 | + * @return null|boolean |
|
31 | 31 | */ |
32 | 32 | public function printResult(Result $result) |
33 | 33 | { |
@@ -24,6 +24,10 @@ |
||
24 | 24 | $this->process = $process; |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param \League\Container\ContainerInterface $container |
|
29 | + * @param Process $process |
|
30 | + */ |
|
27 | 31 | public static function create($container, $process) |
28 | 32 | { |
29 | 33 | $processExecutor = new self($process); |
@@ -91,6 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Create a config object and load it from the provided paths. |
94 | + * @param string[] $paths |
|
94 | 95 | */ |
95 | 96 | public static function createConfiguration($paths) |
96 | 97 | { |
@@ -101,6 +102,7 @@ discard block |
||
101 | 102 | |
102 | 103 | /** |
103 | 104 | * Use a simple config loader to load configuration values from specified paths |
105 | + * @param Config\Config $config |
|
104 | 106 | */ |
105 | 107 | public static function loadConfiguration($paths, $config = null) |
106 | 108 | { |
@@ -304,7 +306,7 @@ discard block |
||
304 | 306 | * @param string $id |
305 | 307 | * The ID of the service to retrieve. |
306 | 308 | * |
307 | - * @return mixed |
|
309 | + * @return \Symfony\Component\Console\Output\OutputInterface |
|
308 | 310 | * The specified service. |
309 | 311 | */ |
310 | 312 | public static function service($id) |
@@ -128,7 +128,6 @@ |
||
128 | 128 | /** |
129 | 129 | * Evaluate one configuration item. |
130 | 130 | * |
131 | - * @param array $processed |
|
132 | 131 | * @param array $config |
133 | 132 | * @return array |
134 | 133 | */ |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * @param string|\Robo\Contract\CommandInterface $run |
|
129 | + * @param string $run |
|
130 | 130 | * |
131 | 131 | * @return $this |
132 | 132 | */ |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * inherited from ExecTrait. |
156 | 156 | * |
157 | 157 | * @param array $env |
158 | - * @return type |
|
158 | + * @return Run |
|
159 | 159 | */ |
160 | 160 | public function envVars(array $env) |
161 | 161 | { |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | protected $capturedOutput; |
12 | 12 | protected $logger; |
13 | 13 | |
14 | + /** |
|
15 | + * @param \League\Container\Container $container |
|
16 | + */ |
|
14 | 17 | public function initSeeInOutputTrait($container, $input = null) |
15 | 18 | { |
16 | 19 | $this->capturedOutput = ''; |
@@ -65,6 +68,7 @@ discard block |
||
65 | 68 | /** |
66 | 69 | * Make our output comparisons more platform-agnostic by converting |
67 | 70 | * CRLF (Windows) or raw CR (confused output) to a LF (unix/Mac). |
71 | + * @param string $output |
|
68 | 72 | */ |
69 | 73 | protected function simplify($output) |
70 | 74 | { |
@@ -207,7 +207,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -76,6 +76,10 @@ discard block |
||
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 |
||
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; |