Completed
Pull Request — master (#16)
by Andreas
03:04
created
lib/Mongo/MongoDB.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
 
131 131
         $collections = $this->db->listCollections($options);
132 132
 
133
-        $getCollectionName = function (CollectionInfo $collectionInfo) {
133
+        $getCollectionName = function(CollectionInfo $collectionInfo) {
134 134
             return $collectionInfo->getName();
135 135
         };
136 136
 
137
-        return array_map($getCollectionName, (array)$collections);
137
+        return array_map($getCollectionName, (array) $collections);
138 138
     }
139 139
 
140 140
     /**
@@ -279,13 +279,13 @@  discard block
 block discarded – undo
279 279
         if ($document_or_id instanceof \MongoId) {
280 280
             $id = $document_or_id;
281 281
         } elseif (is_object($document_or_id)) {
282
-            if (! isset($document_or_id->_id)) {
282
+            if (!isset($document_or_id->_id)) {
283 283
                 return null;
284 284
             }
285 285
 
286 286
             $id = $document_or_id->_id;
287 287
         } elseif (is_array($document_or_id)) {
288
-            if (! isset($document_or_id['_id'])) {
288
+            if (!isset($document_or_id['_id'])) {
289 289
                 return null;
290 290
             }
291 291
 
Please login to merge, or discard this patch.