Completed
Pull Request — master (#13)
by Andreas
02:58
created
lib/Alcaeus/MongoDbAdapter/Helper/WriteConcern.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     protected function setWriteConcernFromParameters($wstring, $wtimeout = 0)
57 57
     {
58
-        if (! is_string($wstring) && ! is_int($wstring)) {
58
+        if (!is_string($wstring) && !is_int($wstring)) {
59 59
             trigger_error("w for WriteConcern must be a string or integer", E_WARNING);
60 60
             return false;
61 61
         }
Please login to merge, or discard this patch.
lib/Mongo/MongoCollection.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function aggregate(array $pipeline, array $op = [])
123 123
     {
124
-        if (! TypeConverter::isNumericArray($pipeline)) {
124
+        if (!TypeConverter::isNumericArray($pipeline)) {
125 125
             $pipeline = [];
126 126
             $options = [];
127 127
 
128 128
             $i = 0;
129 129
             foreach (func_get_args() as $operator) {
130 130
                 $i++;
131
-                if (! is_array($operator)) {
131
+                if (!is_array($operator)) {
132 132
                     trigger_error("Argument $i is not an array", E_WARNING);
133 133
                     return;
134 134
                 }
@@ -164,14 +164,14 @@  discard block
 block discarded – undo
164 164
         ];
165 165
 
166 166
         // Convert cursor option
167
-        if (! isset($options['cursor']) || $options['cursor'] === true || $options['cursor'] === []) {
167
+        if (!isset($options['cursor']) || $options['cursor'] === true || $options['cursor'] === []) {
168 168
             // Cursor option needs to be an object convert bools and empty arrays since those won't be handled by TypeConverter
169 169
             $options['cursor'] = new \stdClass;
170 170
         }
171 171
 
172 172
         $command += $options;
173 173
 
174
-        $cursor = new MongoCommandCursor($this->db->getConnection(), (string)$this, $command);
174
+        $cursor = new MongoCommandCursor($this->db->getConnection(), (string) $this, $command);
175 175
         $cursor->setReadPreference($this->getReadPreference());
176 176
 
177 177
         return $cursor;
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      * @throws MongoCursorException
307 307
      * @return boolean
308 308
      */
309
-    public function update(array $criteria , array $newobj, array $options = array())
309
+    public function update(array $criteria, array $newobj, array $options = array())
310 310
     {
311 311
         $multiple = ($options['multiple']) ? $options['multiple'] : false;
312 312
 //        $multiple = $options['multiple'] ?? false;
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
      */
375 375
     public function find(array $query = array(), array $fields = array())
376 376
     {
377
-        $cursor = new MongoCursor($this->db->getConnection(), (string)$this, $query, $fields);
377
+        $cursor = new MongoCursor($this->db->getConnection(), (string) $this, $query, $fields);
378 378
         $cursor->setReadPreference($this->getReadPreference());
379 379
 
380 380
         return $cursor;
Please login to merge, or discard this patch.