@@ -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 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Robo\Contract\ProgressIndicatorAwareInterface; |
7 | 7 | use Robo\Contract\VerbosityThresholdInterface; |
8 | 8 | use Robo\Common\ProgressIndicatorAwareTrait; |
9 | - |
|
10 | 9 | use Psr\Log\LogLevel; |
11 | 10 | use Psr\Log\LoggerAwareInterface; |
12 | 11 | use Psr\Log\LoggerAwareTrait; |
@@ -247,7 +247,7 @@ |
||
247 | 247 | $this->process = $process; |
248 | 248 | |
249 | 249 | if (!$output_callback) { |
250 | - $output_callback = function ($type, $buffer) { |
|
250 | + $output_callback = function($type, $buffer) { |
|
251 | 251 | $progressWasVisible = $this->hideTaskProgress(); |
252 | 252 | $this->writeMessage($buffer); |
253 | 253 | $this->showTaskProgress($progressWasVisible); |
@@ -140,15 +140,15 @@ |
||
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | |
143 | - /** |
|
144 | - * Add arbitrary code to execute as a task. |
|
145 | - * |
|
146 | - * @see \Robo\Collection\CollectionInterface::addCode |
|
147 | - * |
|
148 | - * @param callable $code |
|
149 | - * @param int|string $name |
|
150 | - * @return $this |
|
151 | - */ |
|
143 | + /** |
|
144 | + * Add arbitrary code to execute as a task. |
|
145 | + * |
|
146 | + * @see \Robo\Collection\CollectionInterface::addCode |
|
147 | + * |
|
148 | + * @param callable $code |
|
149 | + * @param int|string $name |
|
150 | + * @return $this |
|
151 | + */ |
|
152 | 152 | public function addCode(callable $code, $name = \Robo\Collection\CollectionInterface::UNNAMEDTASK) |
153 | 153 | { |
154 | 154 | $this->getCollection()->addCode($code, $name); |
@@ -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; |
@@ -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); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Psr\Log\LoggerAwareTrait; |
6 | 6 | use Psr\Log\LoggerAwareInterface; |
7 | - |
|
8 | 7 | use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface; |
9 | 8 | use Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait; |
10 | 9 | use Consolidation\OutputFormatters\StructuredData\PropertyList; |
@@ -1,9 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | use Robo\Robo; |
3 | 3 | |
4 | -use Robo\Config\ConfigProcessor; |
|
5 | -use Robo\Config\YamlConfigLoader; |
|
6 | - |
|
7 | 4 | /** |
8 | 5 | * This test must run first. :( |
9 | 6 | */ |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | use Robo\Robo; |
3 | - |
|
4 | 3 | use Robo\Config\ConfigProcessor; |
5 | 4 | use Robo\Config\YamlConfigLoader; |
6 | 5 |
@@ -1,9 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | use Robo\Robo; |
3 | 3 | |
4 | -use Robo\Config\ConfigProcessor; |
|
5 | -use Robo\Config\YamlConfigLoader; |
|
6 | - |
|
7 | 4 | class RunnerTest extends \Codeception\TestCase\Test |
8 | 5 | { |
9 | 6 | /** |
@@ -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 | */ |