Skip to content

Commit 1d4376c

Browse files
committed
Merge pull request #557
2 parents 9420a3b + 3778aef commit 1d4376c

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/ChangeStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function next()
115115
* free any reference to Watch. This will also free the only
116116
* reference to an implicit session, since any such reference
117117
* belongs to Watch. */
118-
if ((string)$this->getCursorId() === '0') {
118+
if ((string) $this->getCursorId() === '0') {
119119
$this->resumeCallable = null;
120120
}
121121
} catch (RuntimeException $e) {
@@ -138,7 +138,7 @@ public function rewind()
138138
$this->resumeToken = $this->extractResumeToken($this->csIt->current());
139139
}
140140
// As with next(), free the callable once we know it will never be used.
141-
if ((string)$this->getCursorId() === '0') {
141+
if ((string) $this->getCursorId() === '0') {
142142
$this->resumeCallable = null;
143143
}
144144
} catch (RuntimeException $e) {

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ public function mapReduce(JavascriptInterface $map, JavascriptInterface $reduce,
949949
$options['typeMap'] = $this->typeMap;
950950
}
951951

952-
if (! isset($options['writeConcern']) && \MongoDB\server_supports_feature($server, self::$wireVersionForWritableCommandWriteConcern)) {
952+
if ( ! isset($options['writeConcern']) && \MongoDB\server_supports_feature($server, self::$wireVersionForWritableCommandWriteConcern)) {
953953
$options['writeConcern'] = $this->writeConcern;
954954
}
955955

src/Exception/UnsupportedException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function arrayFiltersNotSupported()
2929
return new static('Array filters are not supported by the server executing this operation');
3030
}
3131

32-
/**
32+
/**
3333
* Thrown when collations are not supported by a server.
3434
*
3535
* @return self
@@ -39,7 +39,7 @@ public static function collationNotSupported()
3939
return new static('Collations are not supported by the server executing this operation');
4040
}
4141

42-
/**
42+
/**
4343
* Thrown when explain is not supported by a server.
4444
*
4545
* @return self

src/Operation/BulkWrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class BulkWrite implements Executable
9494
*
9595
* This is not supported for server versions < 3.6 and will result in an
9696
* exception at execution time if used.
97-
*
97+
*
9898
* Supported options for the bulk write operation:
9999
*
100100
* * bypassDocumentValidation (boolean): If true, allows the write to

src/Operation/CountDocuments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private function createCommandDocument()
180180
$pipeline[] = ['$limit' => $this->options['limit']];
181181
}
182182

183-
$pipeline[] = ['$group' => [ '_id' => null, 'n' => ['$sum' => 1]]];
183+
$pipeline[] = ['$group' => ['_id' => null, 'n' => ['$sum' => 1]]];
184184

185185
$cmd = [
186186
'aggregate' => $this->collectionName,

src/Operation/Find.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,17 @@ private function createCommandDocument()
327327
unset($options['maxAwaitTimeMS']);
328328

329329
$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'],
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'],
341341
];
342342

343343
foreach ($modifierFallback as $modifier) {

0 commit comments

Comments
 (0)