@@ -86,8 +86,7 @@ discard block |
||
86 | 86 | foreach ($columns as $alias => $name) { |
87 | 87 | if (is_string($alias) and $name !== $alias) { |
88 | 88 | $this->columns[] = "{$name} AS {$alias}"; |
89 | - } |
|
90 | - else { |
|
89 | + } else { |
|
91 | 90 | $this->columns[] = $name; |
92 | 91 | } |
93 | 92 | } |
@@ -177,8 +176,7 @@ discard block |
||
177 | 176 | public function group (string $column) { |
178 | 177 | if (!strlen($this->_group)) { |
179 | 178 | $this->_group = " GROUP BY {$column}"; |
180 | - } |
|
181 | - else { |
|
179 | + } else { |
|
182 | 180 | $this->_group .= ", {$column}"; |
183 | 181 | } |
184 | 182 | return $this; |
@@ -221,8 +219,7 @@ discard block |
||
221 | 219 | public function limit (int $limit, int $offset = 0) { |
222 | 220 | if ($limit == 0) { |
223 | 221 | $this->_limit = ''; |
224 | - } |
|
225 | - else { |
|
222 | + } else { |
|
226 | 223 | $this->_limit = " LIMIT {$limit}"; |
227 | 224 | if ($offset > 1) { |
228 | 225 | $this->_limit .= " OFFSET {$offset}"; |