@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @see \Robo\Collection\CollectionInterface::addCode |
| 153 | 153 | * |
| 154 | 154 | * @param callable $code |
| 155 | - * @param int|string $name |
|
| 155 | + * @param integer $name |
|
| 156 | 156 | * @return $this |
| 157 | 157 | */ |
| 158 | 158 | public function addCode(callable $code, $name = self::UNNAMEDTASK) |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | * @param InflectionInterface $task |
| 385 | 385 | * @param array $args |
| 386 | 386 | * |
| 387 | - * @return \Robo\Collection\CompletionWrapper|\Robo\Task\Simulator |
|
| 387 | + * @return TaskInterface |
|
| 388 | 388 | */ |
| 389 | 389 | protected function fixTask($task, $args) |
| 390 | 390 | { |
@@ -146,15 +146,15 @@ |
||
| 146 | 146 | return $this; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - /** |
|
| 150 | - * Add arbitrary code to execute as a task. |
|
| 151 | - * |
|
| 152 | - * @see \Robo\Collection\CollectionInterface::addCode |
|
| 153 | - * |
|
| 154 | - * @param callable $code |
|
| 155 | - * @param int|string $name |
|
| 156 | - * @return $this |
|
| 157 | - */ |
|
| 149 | + /** |
|
| 150 | + * Add arbitrary code to execute as a task. |
|
| 151 | + * |
|
| 152 | + * @see \Robo\Collection\CollectionInterface::addCode |
|
| 153 | + * |
|
| 154 | + * @param callable $code |
|
| 155 | + * @param int|string $name |
|
| 156 | + * @return $this |
|
| 157 | + */ |
|
| 158 | 158 | public function addCode(callable $code, $name = self::UNNAMEDTASK) |
| 159 | 159 | { |
| 160 | 160 | $this->getCollection()->addCode($code, $name); |