@@ -119,25 +119,25 @@ |
||
| 119 | 119 | */ |
| 120 | 120 | public function build() |
| 121 | 121 | { |
| 122 | - $ret = 'DELETE ' . OptionsArray::build($this->options); |
|
| 122 | + $ret = 'DELETE '.OptionsArray::build($this->options); |
|
| 123 | 123 | |
| 124 | 124 | if ($this->columns != NULL && count($this->columns) > 0) { |
| 125 | - $ret .= ' ' . ExpressionArray::build($this->columns); |
|
| 125 | + $ret .= ' '.ExpressionArray::build($this->columns); |
|
| 126 | 126 | } |
| 127 | 127 | if ($this->from != NULL && count($this->from) > 0) { |
| 128 | - $ret .= ' FROM ' . ExpressionArray::build($this->from); |
|
| 128 | + $ret .= ' FROM '.ExpressionArray::build($this->from); |
|
| 129 | 129 | } |
| 130 | 130 | if ($this->using != NULL && count($this->using) > 0) { |
| 131 | - $ret .= ' USING ' . ExpressionArray::build($this->using); |
|
| 131 | + $ret .= ' USING '.ExpressionArray::build($this->using); |
|
| 132 | 132 | } |
| 133 | 133 | if ($this->where != NULL && count($this->where) > 0) { |
| 134 | - $ret .= ' WHERE ' . Condition::build($this->where); |
|
| 134 | + $ret .= ' WHERE '.Condition::build($this->where); |
|
| 135 | 135 | } |
| 136 | 136 | if ($this->order != NULL && count($this->order) > 0) { |
| 137 | - $ret .= ' ORDER BY ' . ExpressionArray::build($this->order); |
|
| 137 | + $ret .= ' ORDER BY '.ExpressionArray::build($this->order); |
|
| 138 | 138 | } |
| 139 | 139 | if ($this->limit != NULL && count($this->limit) > 0) { |
| 140 | - $ret .= ' LIMIT ' . Limit::build($this->limit); |
|
| 140 | + $ret .= ' LIMIT '.Limit::build($this->limit); |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | return $ret; |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | ++$list->idx; // Skip 'FROM' |
| 227 | 227 | $this->from = ExpressionArray::parse($parser, $list); |
| 228 | 228 | $state = 2; |
| 229 | - } elseif ($token->type === Token::TYPE_KEYWORD) { |
|
| 229 | + } elseif ($token->type === Token::TYPE_KEYWORD) { |
|
| 230 | 230 | $parser->error(__('Unexpected keyword.'), $token); |
| 231 | 231 | break; |
| 232 | 232 | } else { |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | ++$list->idx; // Skip 'ORDER BY' |
| 279 | 279 | $this->order = OrderKeyword::parse($parser, $list); |
| 280 | 280 | $state = 5; |
| 281 | - } elseif ($token->type === Token::TYPE_KEYWORD |
|
| 281 | + } elseif ($token->type === Token::TYPE_KEYWORD |
|
| 282 | 282 | && $token->value === 'LIMIT' |
| 283 | 283 | ) { |
| 284 | 284 | ++$list->idx; // Skip 'LIMIT' |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | ++$list->idx; // Skip 'ORDER BY' |
| 299 | 299 | $this->order = OrderKeyword::parse($parser, $list); |
| 300 | 300 | $state = 5; |
| 301 | - } elseif ($token->type === Token::TYPE_KEYWORD |
|
| 301 | + } elseif ($token->type === Token::TYPE_KEYWORD |
|
| 302 | 302 | && $token->value === 'LIMIT' |
| 303 | 303 | ) { |
| 304 | 304 | ++$list->idx; // Skip 'LIMIT' |