@@ -353,7 +353,7 @@ |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | /** |
356 | - * @param array|string $pattern |
|
356 | + * @param string[] $pattern |
|
357 | 357 | * |
358 | 358 | * @return $this |
359 | 359 | */ |
@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use AspectMock\Test as test; |
|
4 | - |
|
5 | 3 | class HgTest extends \Codeception\TestCase\Test |
6 | 4 | { |
7 | 5 | /** |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param string $cmd |
153 | 153 | * |
154 | - * @return bool|string |
|
154 | + * @return string|false |
|
155 | 155 | */ |
156 | 156 | protected function findExecutable($cmd) |
157 | 157 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | - * @return bool|string |
|
183 | + * @return string|false |
|
184 | 184 | */ |
185 | 185 | protected function findProjectBin() |
186 | 186 | { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | protected function findProjectBin() |
90 | 90 | { |
91 | 91 | $cwd = getcwd(); |
92 | - $candidates = [ __DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin' ]; |
|
92 | + $candidates = [__DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin']; |
|
93 | 93 | |
94 | 94 | // If this project is inside a vendor directory, give highest priority |
95 | 95 | // to that directory. |
@@ -79,7 +79,7 @@ |
||
79 | 79 | * |
80 | 80 | * @covers ::args |
81 | 81 | * |
82 | - * @param string $expected |
|
82 | + * @param string $expectedLinux |
|
83 | 83 | * @param array $args |
84 | 84 | */ |
85 | 85 | public function testArgs($expectedLinux, $expectedWindows, $args) |
@@ -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 |