@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | return $query->state()->compiled = 'UPDATE ' |
| 176 | 176 | . $this->quoteIdentifier($query, $query->statements['tables'][0]['table']) |
| 177 | - . ' SET ' . implode(', ', $values) |
|
| 177 | + . ' SET '.implode(', ', $values) |
|
| 178 | 178 | . $this->compileWhere($query); |
| 179 | 179 | } |
| 180 | 180 | |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | if ($from['alias'] === null) { |
| 441 | 441 | $sql[$from['table']] = $this->quoteIdentifier($query, $databasePrefix.$from['table']); |
| 442 | 442 | } else { |
| 443 | - $sql[$from['alias']] = $this->quoteIdentifier($query, $databasePrefix.$from['table']) . ' ' . $this->quoteIdentifier($query, $from['alias']); |
|
| 443 | + $sql[$from['alias']] = $this->quoteIdentifier($query, $databasePrefix.$from['table']).' '.$this->quoteIdentifier($query, $from['alias']); |
|
| 444 | 444 | } |
| 445 | 445 | } |
| 446 | 446 | } |
@@ -467,12 +467,12 @@ discard block |
||
| 467 | 467 | |
| 468 | 468 | if ($join['alias'] === null) { |
| 469 | 469 | $sql[$join['table']] = $join['type'] |
| 470 | - . ' JOIN ' . $this->quoteIdentifier($query, $databasePrefix.$join['table']) |
|
| 471 | - . ' ON ' . $this->compileCompilableClauses($query, $join['on']); |
|
| 470 | + . ' JOIN '.$this->quoteIdentifier($query, $databasePrefix.$join['table']) |
|
| 471 | + . ' ON '.$this->compileCompilableClauses($query, $join['on']); |
|
| 472 | 472 | } else { |
| 473 | 473 | $sql[$join['alias']] = $join['type'] |
| 474 | - . ' JOIN ' . $this->quoteIdentifier($query, $databasePrefix.$join['table']).' '.$this->quoteIdentifier($query, $join['alias']) |
|
| 475 | - . ' ON ' . $this->compileCompilableClauses($query, $join['on']); |
|
| 474 | + . ' JOIN '.$this->quoteIdentifier($query, $databasePrefix.$join['table']).' '.$this->quoteIdentifier($query, $join['alias']) |
|
| 475 | + . ' ON '.$this->compileCompilableClauses($query, $join['on']); |
|
| 476 | 476 | } |
| 477 | 477 | } |
| 478 | 478 | |
@@ -639,7 +639,7 @@ discard block |
||
| 639 | 639 | if (is_array($value)) { |
| 640 | 640 | return $this->compileIntoExpression($query, $value, $column, 'REGEXP', $converted); |
| 641 | 641 | } |
| 642 | - return $this->quoteIdentifier($query, $column).' REGEXP '.$this->compileExpressionValue($query, (string)$value, $converted ? false : null); |
|
| 642 | + return $this->quoteIdentifier($query, $column).' REGEXP '.$this->compileExpressionValue($query, (string) $value, $converted ? false : null); |
|
| 643 | 643 | |
| 644 | 644 | // LIKE |
| 645 | 645 | case ':like': |
@@ -712,7 +712,7 @@ discard block |
||
| 712 | 712 | |
| 713 | 713 | // Unsupported operator |
| 714 | 714 | default: |
| 715 | - throw new UnexpectedValueException("Unsupported operator '" . $operator . "' in WHERE clause"); |
|
| 715 | + throw new UnexpectedValueException("Unsupported operator '".$operator."' in WHERE clause"); |
|
| 716 | 716 | } |
| 717 | 717 | } |
| 718 | 718 | |
@@ -774,7 +774,7 @@ discard block |
||
| 774 | 774 | $sql = '('.$this->compileSelect($query).')'; |
| 775 | 775 | |
| 776 | 776 | if ($alias) { |
| 777 | - $sql = $sql . ' as ' . $this->quoteIdentifier($clause, $alias); |
|
| 777 | + $sql = $sql.' as '.$this->quoteIdentifier($clause, $alias); |
|
| 778 | 778 | } |
| 779 | 779 | |
| 780 | 780 | $this->addQueryBindings($clause, $query); |
@@ -926,12 +926,12 @@ discard block |
||
| 926 | 926 | if ($lock !== null && !$query->statements['aggregate']) { |
| 927 | 927 | // Lock for update |
| 928 | 928 | if ($lock === LockMode::PESSIMISTIC_WRITE) { |
| 929 | - return ' ' . $this->platform()->grammar()->getWriteLockSQL(); |
|
| 929 | + return ' '.$this->platform()->grammar()->getWriteLockSQL(); |
|
| 930 | 930 | } |
| 931 | 931 | |
| 932 | 932 | // Shared Lock: other process can read the row but not update it. |
| 933 | 933 | if ($lock === LockMode::PESSIMISTIC_READ) { |
| 934 | - return ' ' . $this->platform()->grammar()->getReadLockSQL(); |
|
| 934 | + return ' '.$this->platform()->grammar()->getReadLockSQL(); |
|
| 935 | 935 | } |
| 936 | 936 | } |
| 937 | 937 | |