@@ -195,23 +195,23 @@ discard block |
||
| 195 | 195 | $result = ''; |
| 196 | 196 | $result .= $this->stringEscape($this->operation); |
| 197 | 197 | |
| 198 | - $result .= ' ' . $this->selectFieldsToString($this->fields); |
|
| 198 | + $result .= ' '.$this->selectFieldsToString($this->fields); |
|
| 199 | 199 | |
| 200 | 200 | $result .= ' FROM'; |
| 201 | - $result .= ' `{{' . $this->stringEscape($this->table) . '}}`'; |
|
| 202 | - $result .= !empty($this->alias) ? ' AS `' . $this->stringEscape($this->alias) . '`' : ''; |
|
| 201 | + $result .= ' `{{'.$this->stringEscape($this->table).'}}`'; |
|
| 202 | + $result .= !empty($this->alias) ? ' AS `'.$this->stringEscape($this->alias).'`' : ''; |
|
| 203 | 203 | |
| 204 | 204 | // TODO - fields should be escaped !! |
| 205 | - $result .= !empty($this->where) ? ' WHERE ' . implode(' AND ', $this->where) : ''; |
|
| 205 | + $result .= !empty($this->where) ? ' WHERE '.implode(' AND ', $this->where) : ''; |
|
| 206 | 206 | |
| 207 | 207 | // TODO - fields should be escaped !! |
| 208 | - $result .= !empty($this->group) ? ' GROUP BY ' . implode(',', $this->group) : ''; |
|
| 208 | + $result .= !empty($this->group) ? ' GROUP BY '.implode(',', $this->group) : ''; |
|
| 209 | 209 | |
| 210 | 210 | // TODO - fields should be escaped !! |
| 211 | - $result .= !empty($this->order) ? ' ORDER BY ' . implode(',', $this->order) : ''; |
|
| 211 | + $result .= !empty($this->order) ? ' ORDER BY '.implode(',', $this->order) : ''; |
|
| 212 | 212 | |
| 213 | 213 | // TODO - fields should be escaped !! |
| 214 | - $result .= !empty($this->limit) ? ' LIMIT ' . implode(',', $this->limit) : ''; |
|
| 214 | + $result .= !empty($this->limit) ? ' LIMIT '.implode(',', $this->limit) : ''; |
|
| 215 | 215 | |
| 216 | 216 | // TODO - protect from double escape! |
| 217 | 217 | |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | */ |
| 250 | 250 | protected function processField($fieldName) { |
| 251 | 251 | if (is_bool($fieldName)) { |
| 252 | - $result = (string)intval($fieldName); |
|
| 252 | + $result = (string) intval($fieldName); |
|
| 253 | 253 | } elseif (is_null($fieldName)) { |
| 254 | 254 | $result = 'NULL'; |
| 255 | 255 | } elseif ($fieldName === '*') { |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | * @return string |
| 268 | 268 | */ |
| 269 | 269 | protected function processFieldDefault($fieldName) { |
| 270 | - $result = (string)$fieldName; |
|
| 270 | + $result = (string) $fieldName; |
|
| 271 | 271 | if ( |
| 272 | 272 | $result != '' |
| 273 | 273 | && |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | !is_numeric($fieldName) |
| 282 | 282 | ) { |
| 283 | 283 | // Other should be formatted |
| 284 | - $result = '`' . $this->stringEscape($result) . '`'; |
|
| 284 | + $result = '`'.$this->stringEscape($result).'`'; |
|
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | return $result; |