@@ -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) |
@@ -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; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @param TaskInterface $task |
| 27 | 27 | * The task to add to our collection. |
| 28 | - * @param int|string $name |
|
| 28 | + * @param integer $name |
|
| 29 | 29 | * An optional name for the task -- missing or UNNAMEDTASK for unnamed tasks. |
| 30 | 30 | * Names are used for positioning before and after tasks. |
| 31 | 31 | * |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * Add arbitrary code to execute as a task. |
| 38 | 38 | * |
| 39 | 39 | * @param callable $code Code to execute as a task |
| 40 | - * @param int|string $name |
|
| 40 | + * @param integer $name |
|
| 41 | 41 | * An optional name for the task -- missing or UNNAMEDTASK for unnamed tasks. |
| 42 | 42 | * Names are used for positioning before and after tasks. |
| 43 | 43 | * |
@@ -109,9 +109,9 @@ discard block |
||
| 109 | 109 | * |
| 110 | 110 | * @param string $name |
| 111 | 111 | * The name of the task to insert before. The named task MUST exist. |
| 112 | - * @param callable|TaskInterface $task |
|
| 112 | + * @param callable $task |
|
| 113 | 113 | * The task to add. |
| 114 | - * @param int|string $nameOfTaskToAdd |
|
| 114 | + * @param integer $nameOfTaskToAdd |
|
| 115 | 115 | * The name of the task to add. If not provided, will be associated |
| 116 | 116 | * with the named task it was added before. |
| 117 | 117 | * |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @param string $name |
| 126 | 126 | * The name of the task to insert before. The named task MUST exist. |
| 127 | - * @param callable|TaskInterface $task |
|
| 127 | + * @param callable $task |
|
| 128 | 128 | * The task to add. |
| 129 | - * @param int|string $nameOfTaskToAdd |
|
| 129 | + * @param integer $nameOfTaskToAdd |
|
| 130 | 130 | * The name of the task to add. If not provided, will be associated |
| 131 | 131 | * with the named task it was added after. |
| 132 | 132 | * |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @param string $text Message to print. |
| 144 | 144 | * @param array $context Extra context data for use by the logger. Note |
| 145 | 145 | * that the data from the collection state is merged with the provided context. |
| 146 | - * @param \Psr\Log\LogLevel|string $level The log level to print the information at. Default is NOTICE. |
|
| 146 | + * @param string $level The log level to print the information at. Default is NOTICE. |
|
| 147 | 147 | * |
| 148 | 148 | * @return $this |
| 149 | 149 | */ |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * the input string contains no '=' character, then the value will be 'true'. |
| 84 | 84 | * |
| 85 | 85 | * @param string $value |
| 86 | - * @return array |
|
| 86 | + * @return boolean[] |
|
| 87 | 87 | */ |
| 88 | 88 | protected function splitConfigKeyValue($value) |
| 89 | 89 | { |
@@ -380,7 +380,7 @@ |
||
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | /** |
| 383 | - * @param $command |
|
| 383 | + * @param string $command |
|
| 384 | 384 | * |
| 385 | 385 | * @return mixed |
| 386 | 386 | */ |