Passed
Pull Request — 5.1 (#282)
by
unknown
03:41
created
src/QueryFactory/FindObjectsFromRawSqlQueryFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         // Let's add the ORDER BY if any
140 140
         if (isset($parsedSql['0']['ORDER'])) {
141 141
             $orderByBuilder = new OrderByBuilder();
142
-            $processedSql .= " " . $orderByBuilder->build($parsedSql['0']['ORDER']);
142
+            $processedSql .= " ".$orderByBuilder->build($parsedSql['0']['ORDER']);
143 143
         }
144 144
 
145 145
         return [$processedSql, $sqlCount ?? $processedSqlCount, $columnDescriptors];
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
      */
151 151
     private function buildUnion(array $parsed): string
152 152
     {
153
-        return implode(' UNION ', array_map(function ($clause) {
153
+        return implode(' UNION ', array_map(function($clause) {
154 154
             $select_builder = new SelectStatementBuilder();
155
-            return '(' . $select_builder->build($clause) . ')';
155
+            return '('.$select_builder->build($clause).')';
156 156
         }, $parsed['UNION']));
157 157
     }
158 158
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                 $alias = AbstractQueryFactory::getColumnAlias($tableName, $columnName);
235 235
                 $astColumn = [
236 236
                     'expr_type' => 'colref',
237
-                    'base_expr' => $connection->quoteIdentifier($tableName) . '.' . $connection->quoteIdentifier($columnName),
237
+                    'base_expr' => $connection->quoteIdentifier($tableName).'.'.$connection->quoteIdentifier($columnName),
238 238
                     'no_quotes' => [
239 239
                         'delim' => '.',
240 240
                         'parts' => [
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                 return $this->generateWrappedSqlCount($parsedSql);
323 323
             }
324 324
 
325
-            $countSubExpr = array_map(function (array $item) {
325
+            $countSubExpr = array_map(function(array $item) {
326 326
                 unset($item['alias']);
327 327
                 return $item;
328 328
             }, $parsedSql['SELECT']);
Please login to merge, or discard this patch.