@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | throw ExceptionConverter::toLegacy($e); |
143 | 143 | } |
144 | 144 | |
145 | - $getCollectionInfo = function (CollectionInfo $collectionInfo) { |
|
145 | + $getCollectionInfo = function(CollectionInfo $collectionInfo) { |
|
146 | 146 | // @todo do away with __debugInfo once https://jira.mongodb.org/browse/PHPLIB-226 is fixed |
147 | 147 | $info = $collectionInfo->__debugInfo(); |
148 | 148 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'info' => isset($info['info']) ? (array) $info['info'] : null, |
155 | 155 | 'idIndex' => isset($info['idIndex']) ? (array) $info['idIndex'] : null, |
156 | 156 | ], |
157 | - function ($item) { return $item !== null; } |
|
157 | + function($item) { return $item !== null; } |
|
158 | 158 | ); |
159 | 159 | }; |
160 | 160 | |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | throw ExceptionConverter::toLegacy($e); |
189 | 189 | } |
190 | 190 | |
191 | - $getCollectionName = function (CollectionInfo $collectionInfo) { |
|
191 | + $getCollectionName = function(CollectionInfo $collectionInfo) { |
|
192 | 192 | return $collectionInfo->getName(); |
193 | 193 | }; |
194 | 194 | |
@@ -357,13 +357,13 @@ discard block |
||
357 | 357 | if ($document_or_id instanceof \MongoId) { |
358 | 358 | $id = $document_or_id; |
359 | 359 | } elseif (is_object($document_or_id)) { |
360 | - if (! isset($document_or_id->_id)) { |
|
360 | + if ( ! isset($document_or_id->_id)) { |
|
361 | 361 | $id = $document_or_id; |
362 | 362 | } else { |
363 | 363 | $id = $document_or_id->_id; |
364 | 364 | } |
365 | 365 | } elseif (is_array($document_or_id)) { |
366 | - if (! isset($document_or_id['_id'])) { |
|
366 | + if ( ! isset($document_or_id['_id'])) { |
|
367 | 367 | return null; |
368 | 368 | } |
369 | 369 | |
@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | */ |
552 | 552 | private function getSystemCollectionFilterClosure($includeSystemCollections = false) |
553 | 553 | { |
554 | - return function (CollectionInfo $collectionInfo) use ($includeSystemCollections) { |
|
554 | + return function(CollectionInfo $collectionInfo) use ($includeSystemCollections) { |
|
555 | 555 | return $includeSystemCollections || ! preg_match('#^system\.#', $collectionInfo->getName()); |
556 | 556 | }; |
557 | 557 | } |