@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | // Let's add the ORDER BY if any |
| 143 | 143 | if (isset($parsedSql['0']['ORDER'])) { |
| 144 | 144 | $orderByBuilder = new OrderByBuilder(); |
| 145 | - $processedSql .= " " . $orderByBuilder->build($parsedSql['0']['ORDER']); |
|
| 145 | + $processedSql .= " ".$orderByBuilder->build($parsedSql['0']['ORDER']); |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | return [$processedSql, $sqlCount ?? $processedSqlCount, $columnDescriptors]; |
@@ -155,8 +155,8 @@ discard block |
||
| 155 | 155 | { |
| 156 | 156 | $selectBuilder = new SelectStatementBuilder(); |
| 157 | 157 | |
| 158 | - return implode(' UNION ', array_map(function ($clause) use ($selectBuilder) { |
|
| 159 | - return '(' . $selectBuilder->build($clause) . ')'; |
|
| 158 | + return implode(' UNION ', array_map(function($clause) use ($selectBuilder) { |
|
| 159 | + return '('.$selectBuilder->build($clause).')'; |
|
| 160 | 160 | }, $parsed['UNION'])); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | $alias = AbstractQueryFactory::getColumnAlias($tableName, $columnName); |
| 239 | 239 | $astColumn = [ |
| 240 | 240 | 'expr_type' => 'colref', |
| 241 | - 'base_expr' => $connection->quoteIdentifier($tableName) . '.' . $connection->quoteIdentifier($columnName), |
|
| 241 | + 'base_expr' => $connection->quoteIdentifier($tableName).'.'.$connection->quoteIdentifier($columnName), |
|
| 242 | 242 | 'no_quotes' => [ |
| 243 | 243 | 'delim' => '.', |
| 244 | 244 | 'parts' => [ |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | return $this->generateWrappedSqlCount($parsedSql); |
| 327 | 327 | } |
| 328 | 328 | |
| 329 | - $countSubExpr = array_map(function (array $item) { |
|
| 329 | + $countSubExpr = array_map(function(array $item) { |
|
| 330 | 330 | unset($item['alias']); |
| 331 | 331 | return $item; |
| 332 | 332 | }, $parsedSql['SELECT']); |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | $item['delim'] = ','; |
| 404 | 404 | $innerColumns[] = $item; |
| 405 | 405 | } |
| 406 | - $innerColumns[count($innerColumns)-1]['delim'] = false; |
|
| 406 | + $innerColumns[count($innerColumns) - 1]['delim'] = false; |
|
| 407 | 407 | $parsedSql['SELECT'] = $innerColumns; |
| 408 | 408 | |
| 409 | 409 | $parsedSql = [ |