@@ -377,7 +377,7 @@ |
||
377 | 377 | */ |
378 | 378 | protected function convertCursorType() |
379 | 379 | { |
380 | - if (! $this->tailable) { |
|
380 | + if (!$this->tailable) { |
|
381 | 381 | return null; |
382 | 382 | } |
383 | 383 |
@@ -105,14 +105,14 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function aggregate(array $pipeline, array $op = [] /* , array $pipelineOperators, ... */) |
107 | 107 | { |
108 | - if (! TypeConverter::isNumericArray($pipeline)) { |
|
108 | + if (!TypeConverter::isNumericArray($pipeline)) { |
|
109 | 109 | $pipeline = []; |
110 | 110 | $options = []; |
111 | 111 | |
112 | 112 | $i = 0; |
113 | 113 | foreach (func_get_args() as $operator) { |
114 | 114 | $i++; |
115 | - if (! is_array($operator)) { |
|
115 | + if (!is_array($operator)) { |
|
116 | 116 | trigger_error("Argument $i is not an array", E_WARNING); |
117 | 117 | return; |
118 | 118 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | ]; |
149 | 149 | |
150 | 150 | // Convert cursor option |
151 | - if (! isset($options['cursor']) || $options['cursor'] === true || $options['cursor'] === []) { |
|
151 | + if (!isset($options['cursor']) || $options['cursor'] === true || $options['cursor'] === []) { |
|
152 | 152 | // Cursor option needs to be an object convert bools and empty arrays since those won't be handled by TypeConverter |
153 | 153 | $options['cursor'] = new \stdClass; |
154 | 154 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * @throws MongoCursorException |
285 | 285 | * @return boolean |
286 | 286 | */ |
287 | - public function update(array $criteria , array $newobj, array $options = array()) |
|
287 | + public function update(array $criteria, array $newobj, array $options = array()) |
|
288 | 288 | { |
289 | 289 | $multiple = ($options['multiple']) ? $options['multiple'] : false; |
290 | 290 | // $multiple = $options['multiple'] ?? false; |
@@ -220,7 +220,7 @@ |
||
220 | 220 | \MongoClient::RP_SECONDARY_PREFERRED, |
221 | 221 | \MongoClient::RP_NEAREST |
222 | 222 | ]; |
223 | - if (! in_array($readPreference, $availableReadPreferences)) { |
|
223 | + if (!in_array($readPreference, $availableReadPreferences)) { |
|
224 | 224 | trigger_error("The value '$readPreference' is not valid as read preference type", E_WARNING); |
225 | 225 | return $this; |
226 | 226 | } |