@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | if (isset($this->metadata[$key])) { |
171 | 171 | return $this->metadata[$key]; |
172 | 172 | } else { |
173 | - $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1,'_id' => 0]]); |
|
173 | + $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1, '_id' => 0]]); |
|
174 | 174 | if ($meta === null) { |
175 | 175 | return array(); |
176 | 176 | } |
@@ -209,11 +209,11 @@ discard block |
||
209 | 209 | |
210 | 210 | public function size($key) |
211 | 211 | { |
212 | - if(!$this->exists($key)) { |
|
212 | + if (!$this->exists($key)) { |
|
213 | 213 | return false; |
214 | 214 | } |
215 | - $size = $this->bucket->findOne(['filename' => $key], ['projection' => ['length' => 1,'_id' => 0]]); |
|
216 | - if(!isset($size['length'])) { |
|
215 | + $size = $this->bucket->findOne(['filename' => $key], ['projection' => ['length' => 1, '_id' => 0]]); |
|
216 | + if (!isset($size['length'])) { |
|
217 | 217 | return false; |
218 | 218 | } |
219 | 219 | return $size['length']; |