@@ -11,9 +11,6 @@ |
||
| 11 | 11 | use Robo\Exception\TaskException; |
| 12 | 12 | use Robo\Exception\TaskExitException; |
| 13 | 13 | use Robo\Contract\CommandInterface; |
| 14 | - |
|
| 15 | - |
|
| 16 | -use Robo\Common\ProgressIndicatorAwareTrait; |
|
| 17 | 14 | use Robo\Contract\InflectionInterface; |
| 18 | 15 | |
| 19 | 16 | /** |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | $collection = $this; |
| 109 | 109 | $completionRegistrationTask = new CallableTask( |
| 110 | - function () use ($collection, $completionTask) { |
|
| 110 | + function() use ($collection, $completionTask) { |
|
| 111 | 111 | |
| 112 | 112 | $collection->registerCompletion($completionTask); |
| 113 | 113 | }, |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $context += ['name' => 'Progress']; |
| 151 | 151 | $context += TaskInfo::getTaskContext($this); |
| 152 | 152 | return $this->addCode( |
| 153 | - function () use ($level, $text, $context) { |
|
| 153 | + function() use ($level, $text, $context) { |
|
| 154 | 154 | $this->printTaskOutput($level, $text, $context); |
| 155 | 155 | } |
| 156 | 156 | ); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | { |
| 161 | 161 | $collection = $this; |
| 162 | 162 | $rollbackRegistrationTask = new CallableTask( |
| 163 | - function () use ($collection, $rollbackTask) { |
|
| 163 | + function() use ($collection, $rollbackTask) { |
|
| 164 | 164 | $collection->registerRollback($rollbackTask); |
| 165 | 165 | }, |
| 166 | 166 | $this |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | if ($task instanceof StackBasedTask) { |
| 203 | 203 | $task->stopOnFail(false); |
| 204 | 204 | } |
| 205 | - $ignoreErrorsInTask = function () use ($task) { |
|
| 205 | + $ignoreErrorsInTask = function() use ($task) { |
|
| 206 | 206 | $data = []; |
| 207 | 207 | try { |
| 208 | 208 | $result = $this->runSubtask($task); |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * |
| 194 | 194 | * @param string $method |
| 195 | 195 | * @param string $name |
| 196 | - * @param callable|TaskInterface $task |
|
| 196 | + * @param callable $task |
|
| 197 | 197 | * @param string $nameOfTaskToAdd |
| 198 | 198 | * |
| 199 | 199 | * @return $this |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | /** |
| 263 | 263 | * Return the list of task names added to this collection. |
| 264 | 264 | * |
| 265 | - * @return array |
|
| 265 | + * @return integer[] |
|
| 266 | 266 | */ |
| 267 | 267 | public function taskNames() |
| 268 | 268 | { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | } |
| 336 | 336 | |
| 337 | 337 | /** |
| 338 | - * @param int|string $name |
|
| 338 | + * @param string $name |
|
| 339 | 339 | * @param \Robo\Collection\Element $taskGroup |
| 340 | 340 | * |
| 341 | 341 | * @return $this |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | } |
| 622 | 622 | |
| 623 | 623 | /** |
| 624 | - * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task |
|
| 624 | + * @param TaskInterface $task |
|
| 625 | 625 | * |
| 626 | 626 | * @return \Robo\Result |
| 627 | 627 | */ |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | |
| 639 | 639 | /** |
| 640 | 640 | * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task |
| 641 | - * @param $parentCollection |
|
| 641 | + * @param CollectionInterface $parentCollection |
|
| 642 | 642 | */ |
| 643 | 643 | protected function setParentCollectionForTask($task, $parentCollection) |
| 644 | 644 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Robo\Collection; |
| 4 | 4 | |
| 5 | -use Robo\Contract\TaskInterface; |
|
| 6 | - |
|
| 7 | 5 | /** |
| 8 | 6 | * The temporary collection keeps track of the global collection of |
| 9 | 7 | * temporary cleanup tasks in instances where temporary-generating |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | if (!static::$collection) { |
| 38 | 38 | static::$collection = \Robo\Robo::getContainer()->get('collection'); |
| 39 | - register_shutdown_function(function () { |
|
| 39 | + register_shutdown_function(function() { |
|
| 40 | 40 | static::complete(); |
| 41 | 41 | }); |
| 42 | 42 | } |
@@ -2,13 +2,10 @@ |
||
| 2 | 2 | namespace Robo\Log; |
| 3 | 3 | |
| 4 | 4 | use Robo\Result; |
| 5 | -use Robo\TaskInfo; |
|
| 6 | 5 | use Robo\Contract\PrintedInterface; |
| 7 | 6 | use Robo\Contract\ProgressIndicatorAwareInterface; |
| 8 | 7 | use Robo\Common\ProgressIndicatorAwareTrait; |
| 9 | - |
|
| 10 | 8 | use Psr\Log\LogLevel; |
| 11 | -use Psr\Log\LoggerInterface; |
|
| 12 | 9 | use Psr\Log\LoggerAwareInterface; |
| 13 | 10 | use Psr\Log\LoggerAwareTrait; |
| 14 | 11 | use Consolidation\Log\ConsoleLogLevel; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Robo; |
| 3 | 3 | |
| 4 | 4 | use Robo\Contract\TaskInterface; |
| 5 | -use Robo\Contract\LogResultInterface; |
|
| 6 | 5 | use Robo\Exception\TaskExitException; |
| 7 | 6 | |
| 8 | 7 | class Result extends ResultData |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | |
| 131 | 131 | public function cloneTask() |
| 132 | 132 | { |
| 133 | - $reflect = new \ReflectionClass(get_class($this->task)); |
|
| 133 | + $reflect = new \ReflectionClass(get_class($this->task)); |
|
| 134 | 134 | return $reflect->newInstanceArgs(func_get_args()); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @param string|array $url |
|
| 70 | + * @param string[] $url |
|
| 71 | 71 | * @return OpenBrowser |
| 72 | 72 | */ |
| 73 | 73 | protected function taskOpenBrowser($url) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Robo\Task\Development; |
| 3 | 3 | |
| 4 | 4 | use Robo\Contract\ProgressIndicatorAwareInterface; |
| 5 | -use Robo\Common\ProgressIndicatorAwareTrait; |
|
| 6 | 5 | use Robo\Contract\PrintedInterface; |
| 7 | 6 | use Robo\Result; |
| 8 | 7 | use Robo\Task\BaseTask; |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | { |
| 100 | 100 | // run() will call advanceProgressIndicator() once for each |
| 101 | 101 | // file, one after calling stopBuffering, and again after compression. |
| 102 | - return count($this->files)+2; |
|
| 102 | + return count($this->files) + 2; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | public function run() |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Robo\Task\File; |
| 4 | 4 | |
| 5 | -use Robo\Collection\Collection; |
|
| 6 | 5 | use Robo\Contract\CompletionInterface; |
| 7 | 6 | |
| 8 | 7 | /** |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Robo\Task\Filesystem; |
| 3 | 3 | |
| 4 | -use Robo\Collection\Temporary; |
|
| 5 | - |
|
| 6 | 4 | trait loadTasks |
| 7 | 5 | { |
| 8 | 6 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @param string|string[] $dirs |
|
| 19 | + * @param string $dirs |
|
| 20 | 20 | * |
| 21 | 21 | * @return \Robo\Task\Filesystem\DeleteDir |
| 22 | 22 | */ |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Robo\Contract\TaskInterface; |
| 7 | 7 | use Robo\Contract\SimulatedInterface; |
| 8 | 8 | use Robo\Log\RoboLogLevel; |
| 9 | -use Psr\Log\LogLevel; |
|
| 10 | 9 | use Robo\Contract\CommandInterface; |
| 11 | 10 | |
| 12 | 11 | class Simulator extends BaseTask implements CommandInterface |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | return $this->shortenParameter(var_export($item, true)); |
| 97 | 97 | } |
| 98 | 98 | if (is_object($item)) { |
| 99 | - return '[' . get_class($item). ' object]'; |
|
| 99 | + return '[' . get_class($item) . ' object]'; |
|
| 100 | 100 | } |
| 101 | 101 | if (is_string($item)) { |
| 102 | 102 | return $this->shortenParameter("'$item'"); |