@@ -43,7 +43,7 @@ |
||
43 | 43 | protected $command; |
44 | 44 | |
45 | 45 | /** |
46 | - * @param string|\Robo\Contract\CommandInterface $command |
|
46 | + * @param string $command |
|
47 | 47 | */ |
48 | 48 | public function __construct($command) |
49 | 49 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Robo\Task\Base; |
4 | 4 | |
5 | -use Robo\Common\ExecTrait; |
|
6 | 5 | use Robo\Contract\CommandInterface; |
7 | 6 | use Robo\Contract\PrintedInterface; |
8 | 7 | use Robo\Contract\SimulatedInterface; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Robo\Exception\TaskException; |
6 | 6 | use Robo\Task\BaseTask; |
7 | 7 | use Robo\Contract\CommandInterface; |
8 | -use Symfony\Component\Process\Process; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * Executes Codeception tests |
@@ -83,7 +83,6 @@ |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Path to the bootstrap file. |
86 | - |
|
87 | 86 | * @param string $file |
88 | 87 | * |
89 | 88 | * @return $this |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * Tag or Tags to filter. |
50 | 50 | * |
51 | - * @param string|string[] $tags |
|
51 | + * @param string $tags |
|
52 | 52 | * |
53 | 53 | * @return $this |
54 | 54 | */ |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | * Test file or test files to run. |
126 | 126 | * |
127 | 127 | * @param string|string[] |
128 | + * @param string[] $files |
|
128 | 129 | * |
129 | 130 | * @return $this |
130 | 131 | */ |
@@ -138,6 +139,7 @@ discard block |
||
138 | 139 | * |
139 | 140 | * @param string|string[] |
140 | 141 | * A single directory or a list of directories. |
142 | + * @param string $directories |
|
141 | 143 | * |
142 | 144 | * @return $this |
143 | 145 | */ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function __construct($url) |
37 | 37 | { |
38 | - $this->urls = (array) $url; |
|
38 | + $this->urls = (array)$url; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -189,7 +189,7 @@ |
||
189 | 189 | */ |
190 | 190 | public function cloneTask() |
191 | 191 | { |
192 | - $reflect = new \ReflectionClass(get_class($this->task)); |
|
192 | + $reflect = new \ReflectionClass(get_class($this->task)); |
|
193 | 193 | return $reflect->newInstanceArgs(func_get_args()); |
194 | 194 | } |
195 | 195 |
@@ -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); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if (!is_array($args)) { |
72 | 72 | $args = func_get_args(); |
73 | 73 | } |
74 | - $args = array_map(function ($arg) { |
|
74 | + $args = array_map(function($arg) { |
|
75 | 75 | if (preg_match('/^\w+$/', trim($arg)) === 1) { |
76 | 76 | $this->operation = $arg; |
77 | 77 | return null; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * @param array|string|\Traversable $src |
|
168 | + * @param string $src |
|
169 | 169 | * One or more source values. |
170 | 170 | * |
171 | 171 | * @return $this |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
193 | - * @param array|string $exts |
|
193 | + * @param string $exts |
|
194 | 194 | * One or more extensions. |
195 | 195 | * |
196 | 196 | * @return $this |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
205 | - * @param array|string $exclude |
|
205 | + * @param string[] $exclude |
|
206 | 206 | * One or more exclusions. |
207 | 207 | * |
208 | 208 | * @return $this |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
219 | - * @param array|string|\Traversable $path |
|
219 | + * @param \SplDoublyLinkedList $path |
|
220 | 220 | * One or more skip-doc-path values. |
221 | 221 | * |
222 | 222 | * @return $this |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | /** |
247 | - * @param array|string $charset |
|
247 | + * @param string[] $charset |
|
248 | 248 | * One or more charsets. |
249 | 249 | * |
250 | 250 | * @return $this |
@@ -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; |
@@ -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 | { |