@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | throw ExceptionConverter::toLegacy($e); |
139 | 139 | } |
140 | 140 | |
141 | - $getCollectionInfo = function (CollectionInfo $collectionInfo) { |
|
141 | + $getCollectionInfo = function(CollectionInfo $collectionInfo) { |
|
142 | 142 | return [ |
143 | 143 | 'name' => $collectionInfo->getName(), |
144 | 144 | 'options' => $collectionInfo->getOptions(), |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | throw ExceptionConverter::toLegacy($e); |
176 | 176 | } |
177 | 177 | |
178 | - $getCollectionName = function (CollectionInfo $collectionInfo) { |
|
178 | + $getCollectionName = function(CollectionInfo $collectionInfo) { |
|
179 | 179 | return $collectionInfo->getName(); |
180 | 180 | }; |
181 | 181 | |
@@ -344,13 +344,13 @@ discard block |
||
344 | 344 | if ($document_or_id instanceof \MongoId) { |
345 | 345 | $id = $document_or_id; |
346 | 346 | } elseif (is_object($document_or_id)) { |
347 | - if (! isset($document_or_id->_id)) { |
|
347 | + if ( ! isset($document_or_id->_id)) { |
|
348 | 348 | $id = $document_or_id; |
349 | 349 | } else { |
350 | 350 | $id = $document_or_id->_id; |
351 | 351 | } |
352 | 352 | } elseif (is_array($document_or_id)) { |
353 | - if (! isset($document_or_id['_id'])) { |
|
353 | + if ( ! isset($document_or_id['_id'])) { |
|
354 | 354 | return null; |
355 | 355 | } |
356 | 356 | |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | * @return Closure |
542 | 542 | */ |
543 | 543 | private function getSystemCollectionFilterClosure($includeSystemCollections = false) { |
544 | - return function (CollectionInfo $collectionInfo) use ($includeSystemCollections) { |
|
544 | + return function(CollectionInfo $collectionInfo) use ($includeSystemCollections) { |
|
545 | 545 | return $includeSystemCollections || ! preg_match('#^system\.#', $collectionInfo->getName()); |
546 | 546 | }; |
547 | 547 | } |
@@ -540,7 +540,8 @@ |
||
540 | 540 | * @param bool $includeSystemCollections |
541 | 541 | * @return Closure |
542 | 542 | */ |
543 | - private function getSystemCollectionFilterClosure($includeSystemCollections = false) { |
|
543 | + private function getSystemCollectionFilterClosure($includeSystemCollections = false) |
|
544 | + { |
|
544 | 545 | return function (CollectionInfo $collectionInfo) use ($includeSystemCollections) { |
545 | 546 | return $includeSystemCollections || ! preg_match('#^system\.#', $collectionInfo->getName()); |
546 | 547 | }; |