@@ -362,7 +362,7 @@ |
||
| 362 | 362 | * @param InflectionInterface $task |
| 363 | 363 | * @param array $args |
| 364 | 364 | * |
| 365 | - * @return \Robo\Collection\CompletionWrapper|\Robo\Task\Simulator |
|
| 365 | + * @return TaskInterface |
|
| 366 | 366 | */ |
| 367 | 367 | protected function fixTask($task, $args) |
| 368 | 368 | { |
@@ -1,9 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Robo\Collection; |
| 3 | 3 | |
| 4 | -use Guzzle\Inflection\InflectorInterface; |
|
| 5 | 4 | use Robo\Config; |
| 6 | -use Robo\Common\Timer; |
|
| 7 | 5 | use Psr\Log\LogLevel; |
| 8 | 6 | use Robo\Contract\InflectionInterface; |
| 9 | 7 | use Robo\Contract\TaskInterface; |
@@ -14,13 +12,10 @@ discard block |
||
| 14 | 12 | use Robo\Task\Simulator; |
| 15 | 13 | use Robo\Collection\CompletionWrapper; |
| 16 | 14 | use Robo\Collection\Temporary; |
| 17 | -use Robo\Contract\ConfigAwareInterface; |
|
| 18 | -use Robo\Common\ConfigAwareTrait; |
|
| 19 | 15 | use ReflectionClass; |
| 20 | 16 | use Robo\Task\BaseTask; |
| 21 | 17 | use Robo\Contract\BuilderAwareInterface; |
| 22 | 18 | use Robo\Contract\CommandInterface; |
| 23 | -use Robo\Exception\TaskException; |
|
| 24 | 19 | |
| 25 | 20 | /** |
| 26 | 21 | * Creates a collection, and adds tasks to it. The collection builder |
@@ -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 | * |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * |
| 143 | 143 | * @param string $text Message to print. |
| 144 | 144 | * @param array $context Extra context data for use by the logger. |
| 145 | - * @param \Psr\Log\LogLevel|string $level The log level to print the information at. Default is NOTICE. |
|
| 145 | + * @param string $level The log level to print the information at. Default is NOTICE. |
|
| 146 | 146 | * |
| 147 | 147 | * @return $this |
| 148 | 148 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * @param string $resource File or folder. |
| 45 | 45 | * @param string $type "file", "dir", "fileAndDir" |
| 46 | 46 | * |
| 47 | - * @return bool |
|
| 47 | + * @return boolean|null |
|
| 48 | 48 | */ |
| 49 | 49 | protected function checkResource($resource, $type) |
| 50 | 50 | { |
@@ -90,25 +90,25 @@ |
||
| 90 | 90 | $this->checkResources($targets); |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - /** |
|
| 94 | - * Wrapper method around phps is_dir() |
|
| 95 | - * |
|
| 96 | - * @param string $directory |
|
| 97 | - * |
|
| 98 | - * @return bool |
|
| 99 | - */ |
|
| 93 | + /** |
|
| 94 | + * Wrapper method around phps is_dir() |
|
| 95 | + * |
|
| 96 | + * @param string $directory |
|
| 97 | + * |
|
| 98 | + * @return bool |
|
| 99 | + */ |
|
| 100 | 100 | protected function isDir($directory) |
| 101 | 101 | { |
| 102 | 102 | return is_dir($directory); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - /** |
|
| 106 | - * Wrapper method around phps file_exists() |
|
| 107 | - * |
|
| 108 | - * @param string $file |
|
| 109 | - * |
|
| 110 | - * @return bool |
|
| 111 | - */ |
|
| 105 | + /** |
|
| 106 | + * Wrapper method around phps file_exists() |
|
| 107 | + * |
|
| 108 | + * @param string $file |
|
| 109 | + * |
|
| 110 | + * @return bool |
|
| 111 | + */ |
|
| 112 | 112 | protected function isFile($file) |
| 113 | 113 | { |
| 114 | 114 | return file_exists($file); |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | - * @param $inProgress |
|
| 170 | + * @param boolean $inProgress |
|
| 171 | 171 | */ |
| 172 | 172 | protected function showTaskProgress($inProgress) |
| 173 | 173 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | - * @param array|string|Traversable $src one or more source values |
|
| 122 | + * @param string $src one or more source values |
|
| 123 | 123 | * |
| 124 | 124 | * @return $this |
| 125 | 125 | */ |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @param array|string $exts one or more extensions |
|
| 146 | + * @param string $exts one or more extensions |
|
| 147 | 147 | * |
| 148 | 148 | * @return $this |
| 149 | 149 | */ |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | - * @param array|string $exclude one or more exclusions |
|
| 157 | + * @param string[] $exclude one or more exclusions |
|
| 158 | 158 | * |
| 159 | 159 | * @return $this |
| 160 | 160 | */ |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | - * @param array|string|Traversable $path one or more skip-doc-path values |
|
| 170 | + * @param \SplDoublyLinkedList $path one or more skip-doc-path values |
|
| 171 | 171 | * |
| 172 | 172 | * @return $this |
| 173 | 173 | */ |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @param array|string $charset one or more charsets |
|
| 196 | + * @param string[] $charset one or more charsets |
|
| 197 | 197 | * |
| 198 | 198 | * @return $this |
| 199 | 199 | */ |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | trait loadTasks |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * @param string|\Robo\Contract\CommandInterface $command |
|
| 7 | + * @param string $command |
|
| 8 | 8 | * |
| 9 | 9 | * @return Exec |
| 10 | 10 | */ |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @param string|\Robo\Contract\CommandInterface $run |
|
| 127 | + * @param string $run |
|
| 128 | 128 | * |
| 129 | 129 | * @return $this |
| 130 | 130 | */ |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use Robo\Result; |
| 5 | 5 | use Robo\Task\StackBasedTask; |
| 6 | 6 | use Symfony\Component\Filesystem\Filesystem as sfFilesystem; |
| 7 | -use Symfony\Component\Filesystem\Exception\IOExceptionInterface; |
|
| 8 | 7 | use Symfony\Component\Filesystem\Exception\IOException; |
| 9 | 8 | use Robo\Contract\BuilderAwareInterface; |
| 10 | 9 | use Robo\Common\BuilderAwareTrait; |
@@ -256,7 +256,7 @@ |
||
| 256 | 256 | /** |
| 257 | 257 | * Returns an ssh command string running $command on the remote. |
| 258 | 258 | * |
| 259 | - * @param string|CommandInterface $command |
|
| 259 | + * @param string $command |
|
| 260 | 260 | * |
| 261 | 261 | * @return string |
| 262 | 262 | */ |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Robo\Task\Remote; |
| 4 | 4 | |
| 5 | -use Robo\Result; |
|
| 6 | 5 | use Robo\Contract\CommandInterface; |
| 7 | 6 | use Robo\Exception\TaskException; |
| 8 | 7 | use Robo\Task\BaseTask; |