@@ -26,7 +26,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |