Completed
Pull Request — master (#603)
by
unknown
01:48
created
src/Gaufrette/Adapter/GridFS.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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
             if ($meta === null) {
175 175
                 return array();
176 176
             }
@@ -209,11 +209,11 @@  discard block
 block discarded – undo
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'];
Please login to merge, or discard this patch.