Completed
Push — master ( debdfd...7461bf )
by Joao Gilberto
02:41
created
src/Query.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function join($table, $filter)
63 63
     {
64
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
64
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
65 65
         return $this;
66 66
     }
67 67
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function leftJoin($table, $filter)
77 77
     {
78
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
78
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
79 79
         return $this;
80 80
     }
81 81
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function where($filter, array $params = [])
91 91
     {
92
-        $this->where[] = [ 'filter' => $filter, 'params' => $params  ];
92
+        $this->where[] = ['filter' => $filter, 'params' => $params];
93 93
         return $this;
94 94
     }
95 95
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             return null;
175 175
         }
176 176
         
177
-        return [ implode(' AND ', $where), $params ];
177
+        return [implode(' AND ', $where), $params];
178 178
     }
179 179
 
180 180
     /**
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             $sql .= ' FOR UPDATE ';
206 206
         } 
207 207
         
208
-        return [ 'sql' => $sql, 'params' => $params ];
208
+        return ['sql' => $sql, 'params' => $params];
209 209
     }
210 210
 
211 211
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             . implode(', ', $fields)
252 252
             . ' WHERE ' . $where[0];
253 253
 
254
-        return [ 'sql' => $sql, 'params' => $where[1] ];
254
+        return ['sql' => $sql, 'params' => $where[1]];
255 255
     }
256 256
 
257 257
     /**
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $sql = 'DELETE FROM ' . $this->table
269 269
             . ' WHERE ' . $where[0];
270 270
 
271
-        return [ 'sql' => $sql, 'params' => $where[1] ];
271
+        return ['sql' => $sql, 'params' => $where[1]];
272 272
     }
273 273
 
274 274
 }
Please login to merge, or discard this patch.