@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | |
39 | 39 | public function join($table, $filter) |
40 | 40 | { |
41 | - $this->join[] = [ 'table'=>$table, 'filter'=>$filter]; |
|
41 | + $this->join[] = ['table'=>$table, 'filter'=>$filter]; |
|
42 | 42 | return $this; |
43 | 43 | } |
44 | 44 | |
45 | 45 | public function where($filter, array $params = []) |
46 | 46 | { |
47 | - $this->where[] = [ 'filter' => $filter, 'params' => $params ]; |
|
47 | + $this->where[] = ['filter' => $filter, 'params' => $params]; |
|
48 | 48 | return $this; |
49 | 49 | } |
50 | 50 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | return null; |
107 | 107 | } |
108 | 108 | |
109 | - return [ implode(' AND ', $where), $params ]; |
|
109 | + return [implode(' AND ', $where), $params]; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | public function getSelect() |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $sql .= ' ORDER BY ' . implode(', ', $this->orderBy); |
131 | 131 | } |
132 | 132 | |
133 | - return [ 'sql' => $sql, 'params' => $params ]; |
|
133 | + return ['sql' => $sql, 'params' => $params]; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | public function getInsert() |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | . implode(', ', $fields) |
169 | 169 | . ' WHERE ' . $where[0]; |
170 | 170 | |
171 | - return [ 'sql' => $sql, 'params' => $where[1] ]; |
|
171 | + return ['sql' => $sql, 'params' => $where[1]]; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $query->table($this->mapper->getTable()) |
109 | 109 | ->fields(array_keys($array)); |
110 | 110 | |
111 | - if (empty($array[$this->mapper->getPrimaryKey()]) || count($this->get($array[$this->mapper->getPrimaryKey()])) === 0) { |
|
111 | + if (empty($array[$this->mapper->getPrimaryKey()]) || count($this->get($array[$this->mapper->getPrimaryKey()])) === 0) { |
|
112 | 112 | $array[$this->mapper->getPrimaryKey()] = $this->insert($query, $array); |
113 | 113 | BinderObject::bindObject($array, $instance); |
114 | 114 | } else { |