@@ -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 | */ |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | protected $run = ''; |
48 | 48 | |
49 | 49 | /** |
50 | - * @param string|\Robo\Result $cidOrResult |
|
50 | + * @param string $cidOrResult |
|
51 | 51 | */ |
52 | 52 | public function __construct($cidOrResult) |
53 | 53 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @param string|\Robo\Contract\CommandInterface $command |
|
76 | + * @param string $command |
|
77 | 77 | * |
78 | 78 | * @return $this |
79 | 79 | */ |
@@ -88,6 +88,6 @@ |
||
88 | 88 | */ |
89 | 89 | public function getCommand() |
90 | 90 | { |
91 | - return $this->command . ' ' . $this->arguments . ' ' . $this->cid.' '.$this->run; |
|
91 | + return $this->command . ' ' . $this->arguments . ' ' . $this->cid . ' ' . $this->run; |
|
92 | 92 | } |
93 | 93 | } |
@@ -198,7 +198,7 @@ |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
201 | - * @param array $dirs |
|
201 | + * @param string[] $dirs |
|
202 | 202 | * |
203 | 203 | * @return array|\Robo\Result |
204 | 204 | * |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function dirPermissions($permission) |
129 | 129 | { |
130 | - $this->chmod = (int) $permission; |
|
130 | + $this->chmod = (int)$permission; |
|
131 | 131 | |
132 | 132 | return $this; |
133 | 133 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | { |
177 | 177 | if (!$this->fs->isAbsolutePath($dir)) { |
178 | 178 | // attach the relative path to current working directory |
179 | - $dir = getcwd().'/'.$dir; |
|
179 | + $dir = getcwd() . '/' . $dir; |
|
180 | 180 | } |
181 | 181 | $this->parentDir = $dir; |
182 | 182 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | } catch (\InvalidArgumentException $e) { |
231 | 231 | // if finder cannot handle it, try with in()->name() |
232 | 232 | if (strpos($dir, '/') === false) { |
233 | - $dir = './'.$dir; |
|
233 | + $dir = './' . $dir; |
|
234 | 234 | } |
235 | 235 | $parts = explode('/', $dir); |
236 | 236 | $new_dir = implode('/', array_slice($parts, 0, -1)); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | */ |
261 | 261 | protected function getTarget($file, $to) |
262 | 262 | { |
263 | - $target = $to.'/'.basename($file); |
|
263 | + $target = $to . '/' . basename($file); |
|
264 | 264 | if ($this->parents !== array(0, 0)) { |
265 | 265 | // if the parent is set, create additional directories inside target |
266 | 266 | // get relative path to parentDir |
@@ -268,10 +268,10 @@ discard block |
||
268 | 268 | // get top parents and bottom parents |
269 | 269 | $parts = explode('/', rtrim($rel_path, '/')); |
270 | 270 | $prefix_dir = ''; |
271 | - $prefix_dir .= ($this->parents[0] > 0 ? implode('/', array_slice($parts, 0, $this->parents[0])).'/' : ''); |
|
271 | + $prefix_dir .= ($this->parents[0] > 0 ? implode('/', array_slice($parts, 0, $this->parents[0])) . '/' : ''); |
|
272 | 272 | $prefix_dir .= ($this->parents[1] > 0 ? implode('/', array_slice($parts, (0 - $this->parents[1]), $this->parents[1])) : ''); |
273 | 273 | $prefix_dir = rtrim($prefix_dir, '/'); |
274 | - $target = $to.'/'.$prefix_dir.'/'.basename($file); |
|
274 | + $target = $to . '/' . $prefix_dir . '/' . basename($file); |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | return $target; |
@@ -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 | */ |
@@ -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 | */ |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * Tag or Tags to filter. |
50 | 50 | * |
51 | - * @param string|array $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|array |
128 | + * @param string[] $files |
|
128 | 129 | * |
129 | 130 | * @return $this |
130 | 131 | */ |
@@ -137,6 +138,7 @@ discard block |
||
137 | 138 | * Test directory or directories to run. |
138 | 139 | * |
139 | 140 | * @param string|array A single directory or a list of directories. |
141 | + * @param string $directories |
|
140 | 142 | * |
141 | 143 | * @return $this |
142 | 144 | */ |
@@ -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 |
@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | */ |
38 | 38 | protected $verbose_levels = ['v', 'vv', 'vvv']; |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $pathToPhpspec |
|
42 | + */ |
|
40 | 43 | public function __construct($pathToPhpspec = null) |
41 | 44 | { |
42 | 45 | $this->command = $pathToPhpspec; |
@@ -94,6 +97,9 @@ discard block |
||
94 | 97 | return $this; |
95 | 98 | } |
96 | 99 | |
100 | + /** |
|
101 | + * @param string $formater |
|
102 | + */ |
|
97 | 103 | public function format($formater) |
98 | 104 | { |
99 | 105 | if (!in_array($formater, $this->formaters)) { |
@@ -35,6 +35,9 @@ |
||
35 | 35 | */ |
36 | 36 | protected $files = ''; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $pathToPhpUnit |
|
40 | + */ |
|
38 | 41 | public function __construct($pathToPhpUnit = null) |
39 | 42 | { |
40 | 43 | $this->command = $pathToPhpUnit; |
@@ -4,10 +4,10 @@ discard block |
||
4 | 4 | trait loadTasks |
5 | 5 | { |
6 | 6 | /** |
7 | - * @param string $input |
|
8 | - * |
|
7 | + * @param string $input |
|
8 | + * |
|
9 | 9 | * @return \Robo\Task\Assets\Minify |
10 | - */ |
|
10 | + */ |
|
11 | 11 | protected function taskMinify($input) |
12 | 12 | { |
13 | 13 | return $this->task(Minify::class, $input); |
@@ -23,11 +23,11 @@ discard block |
||
23 | 23 | return $this->task(ImageMinify::class, $input); |
24 | 24 | } |
25 | 25 | |
26 | - /** |
|
27 | - * @param array $input |
|
28 | - * |
|
29 | - * @return \Robo\Task\Assets\Less |
|
30 | - */ |
|
26 | + /** |
|
27 | + * @param array $input |
|
28 | + * |
|
29 | + * @return \Robo\Task\Assets\Less |
|
30 | + */ |
|
31 | 31 | protected function taskLess($input) |
32 | 32 | { |
33 | 33 | return $this->task(Less::class, $input); |