Completed
Push — master ( d1e32c...51573a )
by Alessandro
01:38
created
src/Builder.php 1 patch
Spacing   +4 added lines, -4 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
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function sort(array $fields)
109 109
     {
110
-        $this->options['sort'] = $fields;
110
+        $this->options[ 'sort' ] = $fields;
111 111
     }
112 112
 
113 113
     /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function setMaxResults(int $limit)
117 117
     {
118
-        $this->options['limit'] = $limit;
118
+        $this->options[ 'limit' ] = $limit;
119 119
     }
120 120
 
121 121
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function select(...$projection)
125 125
     {
126
-        $this->options['projection'] = array_fill_keys($projection, 1);
126
+        $this->options[ 'projection' ] = array_fill_keys($projection, 1);
127 127
     }
128 128
 
129 129
     /**
Please login to merge, or discard this patch.