@@ -113,7 +113,7 @@ |
||
113 | 113 | |
114 | 114 | $unionStatement = $this->isUnionAll ? 'UNION ALL' : 'UNION'; |
115 | 115 | |
116 | - $sql = '(' . implode(') ' . $unionStatement . ' (', $selectsSql) . ')'; |
|
116 | + $sql = '('.implode(') '.$unionStatement.' (', $selectsSql).')'; |
|
117 | 117 | |
118 | 118 | if (!empty($this->order)) { |
119 | 119 | $order = NodeFactory::toSql($this->order, $platform, $parameters, ',', false, $indent + 2, $conditionsMode, $extrapolateParameters); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | if (isset($desc['SELECT'])) { |
24 | 24 | $select = new Select(); |
25 | 25 | |
26 | - $columns = array_map(function ($item) { |
|
26 | + $columns = array_map(function($item) { |
|
27 | 27 | return NodeFactory::toObject($item); |
28 | 28 | }, $desc['SELECT']); |
29 | 29 | $columns = NodeFactory::simplify($columns); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | // UNION and UNION DISTINCT have similar behavior |
97 | 97 | if (isset($desc['UNION']) || isset($desc['UNION ALL']) || isset($desc['UNION DISTINCT'])) { |
98 | 98 | $isUnionAll = isset($desc['UNION ALL']); |
99 | - $unionStatement = $desc['UNION'] ?? ($desc['UNION ALL'] ?? $desc['UNION DISTINCT']); |
|
99 | + $unionStatement = $desc['UNION'] ?? ($desc['UNION ALL'] ?? $desc['UNION DISTINCT']); |
|
100 | 100 | |
101 | 101 | /** @var Select[] $selects */ |
102 | 102 | $selects = array_map([self::class, 'toObject'], $unionStatement); |