@@ -173,8 +173,7 @@ discard block |
||
173 | 173 | public function group (string $column) { |
174 | 174 | if (!strlen($this->_group)) { |
175 | 175 | $this->_group = " GROUP BY {$column}"; |
176 | - } |
|
177 | - else { |
|
176 | + } else { |
|
178 | 177 | $this->_group .= ", {$column}"; |
179 | 178 | } |
180 | 179 | return $this; |
@@ -189,8 +188,7 @@ discard block |
||
189 | 188 | public function having (string $condition) { |
190 | 189 | if (!strlen($this->_having)) { |
191 | 190 | $this->_having = " HAVING {$condition}"; |
192 | - } |
|
193 | - else { |
|
191 | + } else { |
|
194 | 192 | $this->_having .= " AND {$condition}"; |
195 | 193 | } |
196 | 194 | return $this; |
@@ -222,8 +220,7 @@ discard block |
||
222 | 220 | public function limit (int $limit, int $offset = 0) { |
223 | 221 | if ($limit == 0) { |
224 | 222 | $this->_limit = ''; |
225 | - } |
|
226 | - else { |
|
223 | + } else { |
|
227 | 224 | $this->_limit = " LIMIT {$limit}"; |
228 | 225 | if ($offset > 1) { |
229 | 226 | $this->_limit .= " OFFSET {$offset}"; |
@@ -314,8 +311,7 @@ discard block |
||
314 | 311 | public function where (string $condition) { |
315 | 312 | if (!strlen($this->_where)) { |
316 | 313 | $this->_where = " WHERE {$condition}"; |
317 | - } |
|
318 | - else { |
|
314 | + } else { |
|
319 | 315 | $this->_where .= " AND {$condition}"; |
320 | 316 | } |
321 | 317 | return $this; |