@@ -158,7 +158,7 @@ |
||
158 | 158 | */ |
159 | 159 | public function isDirectory($key) |
160 | 160 | { |
161 | - if ($this->exists($key . '/')) |
|
161 | + if ($this->exists($key.'/')) |
|
162 | 162 | { |
163 | 163 | return true; |
164 | 164 | } |
@@ -24,7 +24,6 @@ discard block |
||
24 | 24 | protected $resources = array(); |
25 | 25 | |
26 | 26 | /** |
27 | - * @param Google\Cloud\Storage\StorageClient $service Authenticated storage client class |
|
28 | 27 | * @param string $bucketName Name of the bucket |
29 | 28 | * @param array $options Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists) |
30 | 29 | */ |
@@ -61,6 +60,11 @@ discard block |
||
61 | 60 | $this->options = array_replace($this->options, $options); |
62 | 61 | } |
63 | 62 | |
63 | + /** |
|
64 | + * @param string $key |
|
65 | + * |
|
66 | + * @return string |
|
67 | + */ |
|
64 | 68 | protected function computePath($key) |
65 | 69 | { |
66 | 70 | if (strlen($this->options['directory'])) |
@@ -86,6 +90,9 @@ discard block |
||
86 | 90 | return true; |
87 | 91 | } |
88 | 92 | |
93 | + /** |
|
94 | + * @param string $name |
|
95 | + */ |
|
89 | 96 | public function setBucket($name) |
90 | 97 | { |
91 | 98 | $this->bucketValidated = null; |
@@ -288,6 +295,7 @@ discard block |
||
288 | 295 | |
289 | 296 | /** |
290 | 297 | * {@inheritdoc} |
298 | + * @param string $resourceName |
|
291 | 299 | */ |
292 | 300 | public function getResourceByName($key, $resourceName) |
293 | 301 | { |