Completed
Push — master ( 60322b...4b6618 )
by Alessandro
02:23
created
src/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $this->collection = $collection;
27 27
         $this->queryType = Query::TYPE_FIND;
28 28
         $this->expression = new Expression();
29
-        $this->options = [];
29
+        $this->options = [ ];
30 30
     }
31 31
 
32 32
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $this->setQueryOption('projection', array_fill_keys($projection, 1));
143 143
 
144 144
         if (!in_array('_id', $projection)) {
145
-            $this->options['projection']['_id'] = -1;
145
+            $this->options[ 'projection' ][ '_id' ] = -1;
146 146
         }
147 147
 
148 148
         return $this;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function setQueryOption(string $option, $value)
158 158
     {
159
-        $this->options[$option] = $value;
159
+        $this->options[ $option ] = $value;
160 160
 
161 161
         return $this;
162 162
     }
Please login to merge, or discard this patch.