|
@@ -170,7 +170,7 @@ discard block |
|
|
block discarded – undo |
|
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
|
|
|
175
|
175
|
if ($meta === null || !isset($meta['metadata'])) { |
|
176
|
176
|
return array(); |
|
@@ -215,7 +215,7 @@ discard block |
|
|
block discarded – undo |
|
215
|
215
|
if (!$this->exists($key)) { |
|
216
|
216
|
return false; |
|
217
|
217
|
} |
|
218
|
|
- $size = $this->bucket->findOne(['filename' => $key], ['projection' => ['length' => 1,'_id' => 0]]); |
|
|
218
|
+ $size = $this->bucket->findOne(['filename' => $key], ['projection' => ['length' => 1, '_id' => 0]]); |
|
219
|
219
|
if (!isset($size['length'])) { |
|
220
|
220
|
return false; |
|
221
|
221
|
} |
Please login to merge, or discard this patch.