Completed
Pull Request — master (#10)
by Andreas
02:41
created
lib/Alcaeus/MongoDbAdapter/AbstractCursor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             \MongoClient::RP_SECONDARY_PREFERRED,
217 217
             \MongoClient::RP_NEAREST
218 218
         ];
219
-        if (! in_array($readPreference, $availableReadPreferences)) {
219
+        if (!in_array($readPreference, $availableReadPreferences)) {
220 220
             trigger_error("The value '$readPreference' is not valid as read preference type", E_WARNING);
221 221
             return $this;
222 222
         }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             }
358 358
 
359 359
             $iterationInfo += [
360
-                'id' => (string)$this->cursor->getId(),
360
+                'id' => (string) $this->cursor->getId(),
361 361
                 'at' => null, // @todo Complete info for cursor that is iterating
362 362
                 'numReturned' => null, // @todo Complete info for cursor that is iterating
363 363
                 'server' => null, // @todo Complete info for cursor that is iterating
Please login to merge, or discard this patch.
lib/Mongo/MongoCursor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Mongo/MongoCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,14 +105,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.