Completed
Push — master ( 13b38a...f07239 )
by Joao Gilberto
02:35
created
src/Query.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function join($table, $filter)
60 60
     {
61
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
61
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
62 62
         return $this;
63 63
     }
64 64
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function leftJoin($table, $filter)
74 74
     {
75
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
75
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
76 76
         return $this;
77 77
     }
78 78
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function where($filter, array $params = [])
88 88
     {
89
-        $this->where[] = [ 'filter' => $filter, 'params' => $params  ];
89
+        $this->where[] = ['filter' => $filter, 'params' => $params];
90 90
         return $this;
91 91
     }
92 92
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             return null;
158 158
         }
159 159
         
160
-        return [ implode(' AND ', $where), $params ];
160
+        return [implode(' AND ', $where), $params];
161 161
     }
162 162
 
163 163
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $sql .= ' FOR UPDATE ';
189 189
         }
190 190
 
191
-        return [ 'sql' => $sql, 'params' => $params ];
191
+        return ['sql' => $sql, 'params' => $params];
192 192
     }
193 193
 
194 194
     /**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             . implode(', ', $fields)
235 235
             . ' WHERE ' . $where[0];
236 236
 
237
-        return [ 'sql' => $sql, 'params' => $where[1] ];
237
+        return ['sql' => $sql, 'params' => $where[1]];
238 238
     }
239 239
 
240 240
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $sql = 'DELETE FROM ' . $this->table
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
 }
Please login to merge, or discard this patch.