@@ -351,6 +351,11 @@ discard block |
||
| 351 | 351 | } |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | + /** |
|
| 355 | + * @param string $key |
|
| 356 | + * |
|
| 357 | + * @return string |
|
| 358 | + */ |
|
| 354 | 359 | protected function computePath($key) |
| 355 | 360 | { |
| 356 | 361 | if (empty($this->options['directory'])) { |
@@ -364,7 +369,7 @@ discard block |
||
| 364 | 369 | * @param string $path |
| 365 | 370 | * @param array $options |
| 366 | 371 | * |
| 367 | - * @return bool|\Google_Service_Storage_StorageObject |
|
| 372 | + * @return string |
|
| 368 | 373 | */ |
| 369 | 374 | private function getObjectData($path, $options = array()) |
| 370 | 375 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** @var \Gaufrette\Adapter\GoogleCloudStorage $adapter */ |
| 41 | 41 | $adapter = $this->filesystem->getAdapter(); |
| 42 | 42 | $oldBucket = $adapter->getOptions(); |
| 43 | - $adapter->setBucket('Gaufrette-' . mt_rand()); |
|
| 43 | + $adapter->setBucket('Gaufrette-'.mt_rand()); |
|
| 44 | 44 | |
| 45 | 45 | $adapter->read('foo'); |
| 46 | 46 | $adapter->setBucket($oldBucket); |
@@ -351,6 +351,11 @@ discard block |
||
| 351 | 351 | } |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | + /** |
|
| 355 | + * @param string $key |
|
| 356 | + * |
|
| 357 | + * @return string |
|
| 358 | + */ |
|
| 354 | 359 | protected function computePath($key) |
| 355 | 360 | { |
| 356 | 361 | if (empty($this->options['directory'])) { |
@@ -364,7 +369,7 @@ discard block |
||
| 364 | 369 | * @param string $path |
| 365 | 370 | * @param array $options |
| 366 | 371 | * |
| 367 | - * @return bool|\Google_Service_Storage_StorageObject |
|
| 372 | + * @return string |
|
| 368 | 373 | */ |
| 369 | 374 | private function getObjectData($path, $options = array()) |
| 370 | 375 | { |