@@ -346,6 +346,11 @@ discard block |
||
346 | 346 | } |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param string $key |
|
351 | + * |
|
352 | + * @return string |
|
353 | + */ |
|
349 | 354 | protected function computePath($key) |
350 | 355 | { |
351 | 356 | if (empty($this->options['directory'])) { |
@@ -359,7 +364,7 @@ discard block |
||
359 | 364 | * @param string $path |
360 | 365 | * @param array $options |
361 | 366 | * |
362 | - * @return bool|\Google_Service_Storage_StorageObject |
|
367 | + * @return string |
|
363 | 368 | */ |
364 | 369 | private function getObjectData($path, $options = array()) |
365 | 370 | { |
@@ -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); |