We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9420a3b commit 3778aefCopy full SHA for 3778aef
src/ChangeStream.php
@@ -115,7 +115,7 @@ public function next()
115
* free any reference to Watch. This will also free the only
116
* reference to an implicit session, since any such reference
117
* belongs to Watch. */
118
- if ((string)$this->getCursorId() === '0') {
+ if ((string) $this->getCursorId() === '0') {
119
$this->resumeCallable = null;
120
}
121
} catch (RuntimeException $e) {
@@ -138,7 +138,7 @@ public function rewind()
138
$this->resumeToken = $this->extractResumeToken($this->csIt->current());
139
140
// As with next(), free the callable once we know it will never be used.
141
142
143
144
src/Collection.php
@@ -949,7 +949,7 @@ public function mapReduce(JavascriptInterface $map, JavascriptInterface $reduce,
949
$options['typeMap'] = $this->typeMap;
950
951
952
- if (! isset($options['writeConcern']) && \MongoDB\server_supports_feature($server, self::$wireVersionForWritableCommandWriteConcern)) {
+ if ( ! isset($options['writeConcern']) && \MongoDB\server_supports_feature($server, self::$wireVersionForWritableCommandWriteConcern)) {
953
$options['writeConcern'] = $this->writeConcern;
954
955
src/Exception/UnsupportedException.php
@@ -29,7 +29,7 @@ public static function arrayFiltersNotSupported()
29
return new static('Array filters are not supported by the server executing this operation');
30
31
32
- /**
+ /**
33
* Thrown when collations are not supported by a server.
34
*
35
* @return self
@@ -39,7 +39,7 @@ public static function collationNotSupported()
39
return new static('Collations are not supported by the server executing this operation');
40
41
42
43
* Thrown when explain is not supported by a server.
44
45
src/Operation/BulkWrite.php
@@ -94,7 +94,7 @@ class BulkWrite implements Executable
94
95
* This is not supported for server versions < 3.6 and will result in an
96
* exception at execution time if used.
97
- *
+ *
98
* Supported options for the bulk write operation:
99
100
* * bypassDocumentValidation (boolean): If true, allows the write to
src/Operation/CountDocuments.php
@@ -180,7 +180,7 @@ private function createCommandDocument()
180
$pipeline[] = ['$limit' => $this->options['limit']];
181
182
183
- $pipeline[] = ['$group' => [ '_id' => null, 'n' => ['$sum' => 1]]];
+ $pipeline[] = ['$group' => ['_id' => null, 'n' => ['$sum' => 1]]];
184
185
$cmd = [
186
'aggregate' => $this->collectionName,
src/Operation/Find.php
@@ -327,17 +327,17 @@ private function createCommandDocument()
327
unset($options['maxAwaitTimeMS']);
328
329
$modifierFallback = [
330
- ['allowPartialResults' , 'partial'],
331
- ['comment' , '$comment'],
332
- ['hint' , '$hint'],
333
- ['maxScan' , '$maxScan'],
334
- ['max' , '$max'],
335
- ['maxTimeMS' , '$maxTimeMS'],
336
- ['min' , '$min'],
337
- ['returnKey' , '$returnKey'],
338
- ['showRecordId' , '$showDiskLoc'],
339
- ['sort' , '$orderby'],
340
- ['snapshot' , '$snapshot'],
+ ['allowPartialResults', 'partial'],
+ ['comment', '$comment'],
+ ['hint', '$hint'],
+ ['maxScan', '$maxScan'],
+ ['max', '$max'],
+ ['maxTimeMS', '$maxTimeMS'],
+ ['min', '$min'],
+ ['returnKey', '$returnKey'],
+ ['showRecordId', '$showDiskLoc'],
+ ['sort', '$orderby'],
+ ['snapshot', '$snapshot'],
341
];
342
343
foreach ($modifierFallback as $modifier) {
0 commit comments