Completed
Push — 2.0 ( 37cf04...b813be )
by
unknown
26s
created
src/SQLParser/Query/Union.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/SQLParser/Query/StatementFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.