@@ -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 | */ |
@@ -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; |
@@ -206,7 +206,7 @@ |
||
206 | 206 | /** |
207 | 207 | * @param string $filename |
208 | 208 | * |
209 | - * @return bool|string |
|
209 | + * @return string|false |
|
210 | 210 | */ |
211 | 211 | protected static function archiveType($filename) |
212 | 212 | { |
@@ -274,6 +274,6 @@ |
||
274 | 274 | */ |
275 | 275 | protected static function getTmpDir() |
276 | 276 | { |
277 | - return getcwd().'/tmp'.rand().time(); |
|
277 | + return getcwd() . '/tmp' . rand() . time(); |
|
278 | 278 | } |
279 | 279 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | /** |
7 | 7 | * Executes shell command |
8 | 8 | * |
9 | - * @param string|\Robo\Contract\CommandInterface $command |
|
9 | + * @param string $command |
|
10 | 10 | * |
11 | 11 | * @return \Robo\Result |
12 | 12 | */ |
@@ -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 | */ |