@@ -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( |
@@ -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 | { |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | } |
459 | 459 | |
460 | 460 | /** |
461 | - * @param string|resource $content |
|
461 | + * @param string $content |
|
462 | 462 | * |
463 | 463 | * @return string |
464 | 464 | */ |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | /** |
477 | 477 | * @param string $key |
478 | 478 | * |
479 | - * @return array |
|
479 | + * @return string[] |
|
480 | 480 | * @throws \InvalidArgumentException |
481 | 481 | */ |
482 | 482 | private function tokenizeKey($key) |
@@ -307,6 +307,9 @@ discard block |
||
307 | 307 | return true; |
308 | 308 | } |
309 | 309 | |
310 | + /** |
|
311 | + * @param string $key |
|
312 | + */ |
|
310 | 313 | protected function getOptions($key, array $options = []) |
311 | 314 | { |
312 | 315 | $options['ACL'] = $this->options['acl']; |
@@ -322,6 +325,9 @@ discard block |
||
322 | 325 | return $options; |
323 | 326 | } |
324 | 327 | |
328 | + /** |
|
329 | + * @return string |
|
330 | + */ |
|
325 | 331 | protected function computePath($key) |
326 | 332 | { |
327 | 333 | if (empty($this->options['directory'])) { |
@@ -241,6 +241,7 @@ |
||
241 | 241 | |
242 | 242 | /** |
243 | 243 | * {@inheritdoc} |
244 | + * @param string $key |
|
244 | 245 | */ |
245 | 246 | public function createFile($key) |
246 | 247 | { |
@@ -355,6 +355,11 @@ discard block |
||
355 | 355 | } |
356 | 356 | } |
357 | 357 | |
358 | + /** |
|
359 | + * @param string $key |
|
360 | + * |
|
361 | + * @return string |
|
362 | + */ |
|
358 | 363 | protected function computePath($key) |
359 | 364 | { |
360 | 365 | if (empty($this->options['directory'])) { |
@@ -368,7 +373,7 @@ discard block |
||
368 | 373 | * @param string $path |
369 | 374 | * @param array $options |
370 | 375 | * |
371 | - * @return bool|\Google_Service_Storage_StorageObject |
|
376 | + * @return string |
|
372 | 377 | */ |
373 | 378 | private function getObjectData($path, $options = []) |
374 | 379 | { |
@@ -156,7 +156,7 @@ |
||
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 | { |