@@ -152,6 +152,10 @@ |
||
| 152 | 152 | return false; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $key |
|
| 157 | + * @param string $column |
|
| 158 | + */ |
|
| 155 | 159 | private function getColumnValue($key, $column) |
| 156 | 160 | { |
| 157 | 161 | $value = $this->connection->fetchColumn( |
@@ -187,6 +187,10 @@ discard block |
||
| 187 | 187 | $this->initialized = true; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string|null $directory |
|
| 192 | + * @param boolean $create |
|
| 193 | + */ |
|
| 190 | 194 | protected function ensureDirectoryExists($directory, $create) |
| 191 | 195 | { |
| 192 | 196 | $pwd = $this->sftp->pwd(); |
@@ -201,6 +205,9 @@ discard block |
||
| 201 | 205 | } |
| 202 | 206 | } |
| 203 | 207 | |
| 208 | + /** |
|
| 209 | + * @param string $key |
|
| 210 | + */ |
|
| 204 | 211 | protected function computePath($key) |
| 205 | 212 | { |
| 206 | 213 | return $this->directory.'/'.ltrim($key, '/'); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * |
| 85 | 85 | * @param string $key |
| 86 | 86 | * |
| 87 | - * @return string|bool if cannot read content |
|
| 87 | + * @return string if cannot read content |
|
| 88 | 88 | */ |
| 89 | 89 | public function read($key) |
| 90 | 90 | { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * |
| 157 | 157 | * @param string $key |
| 158 | 158 | * |
| 159 | - * @return int|bool An UNIX like timestamp or false |
|
| 159 | + * @return string|false An UNIX like timestamp or false |
|
| 160 | 160 | */ |
| 161 | 161 | public function mtime($key) |
| 162 | 162 | { |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * Returns the stat of a file in the zip archive |
| 136 | 136 | * (name, index, crc, mtime, compression size, compression method, filesize). |
| 137 | 137 | * |
| 138 | - * @param $key |
|
| 138 | + * @param string $key |
|
| 139 | 139 | * |
| 140 | 140 | * @return array|bool |
| 141 | 141 | */ |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | /** |
| 214 | 214 | * @param string $path |
| 215 | 215 | * |
| 216 | - * @return mixed |
|
| 216 | + * @return boolean |
|
| 217 | 217 | */ |
| 218 | 218 | public function unlink($path) |
| 219 | 219 | { |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | /** |
| 469 | - * @param string|resource $content |
|
| 469 | + * @param string $content |
|
| 470 | 470 | * |
| 471 | 471 | * @return string |
| 472 | 472 | */ |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | /** |
| 485 | 485 | * @param string $key |
| 486 | 486 | * |
| 487 | - * @return array |
|
| 487 | + * @return string[] |
|
| 488 | 488 | * @throws \InvalidArgumentException |
| 489 | 489 | */ |
| 490 | 490 | private function tokenizeKey($key) |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | |
| 509 | 509 | /** |
| 510 | 510 | * @param string $containerName |
| 511 | - * @param null $prefix |
|
| 511 | + * @param string $prefix |
|
| 512 | 512 | * |
| 513 | 513 | * @return array |
| 514 | 514 | */ |