@@ -23,7 +23,6 @@ discard block |
||
23 | 23 | protected $resource = array(); |
24 | 24 | |
25 | 25 | /** |
26 | - * @param Google\Cloud\Storage\StorageClient $service Authenticated storage client class |
|
27 | 26 | * @param string $bucketName Name of the bucket |
28 | 27 | * @param array $options Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists) |
29 | 28 | */ |
@@ -60,6 +59,11 @@ discard block |
||
60 | 59 | $this->options = array_replace($this->options, $options); |
61 | 60 | } |
62 | 61 | |
62 | + /** |
|
63 | + * @param string $key |
|
64 | + * |
|
65 | + * @return string |
|
66 | + */ |
|
63 | 67 | protected function computePath($key) |
64 | 68 | { |
65 | 69 | if (strlen($this->options['directory'])) |
@@ -85,6 +89,9 @@ discard block |
||
85 | 89 | return true; |
86 | 90 | } |
87 | 91 | |
92 | + /** |
|
93 | + * @param string $name |
|
94 | + */ |
|
88 | 95 | public function setBucket($name) |
89 | 96 | { |
90 | 97 | $this->bucketValidated = null; |
@@ -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 | } |