Completed
Pull Request — master (#7413)
by Michael
14:14
created
lib/Doctrine/ORM/Persisters/SqlExpressionVisitor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,13 +74,13 @@
 block discarded – undo
74 74
 
75 75
         switch ($expr->getType()) {
76 76
             case CompositeExpression::TYPE_AND:
77
-                return '(' . implode(' AND ', $expressionList) . ')';
77
+                return '('.implode(' AND ', $expressionList).')';
78 78
 
79 79
             case CompositeExpression::TYPE_OR:
80
-                return '(' . implode(' OR ', $expressionList) . ')';
80
+                return '('.implode(' OR ', $expressionList).')';
81 81
 
82 82
             default:
83
-                throw new RuntimeException('Unknown composite ' . $expr->getType());
83
+                throw new RuntimeException('Unknown composite '.$expr->getType());
84 84
         }
85 85
     }
86 86
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Lexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 
163 163
             // Recognize identifiers, aliased or qualified names
164 164
             case ctype_alpha($value[0]) || $value[0] === '_' || $value[0] === '\\':
165
-                $name = 'Doctrine\ORM\Query\Lexer::T_' . strtoupper($value);
165
+                $name = 'Doctrine\ORM\Query\Lexer::T_'.strtoupper($value);
166 166
 
167 167
                 if (defined($name)) {
168 168
                     $type = constant($name);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function add($arg)
65 65
     {
66
-        if ($arg !== null && (! $arg instanceof self || $arg->count() > 0)) {
66
+        if ($arg !== null && ( ! $arg instanceof self || $arg->count() > 0)) {
67 67
             // If we decide to keep Expr\Base instances, we can use this check
68
-            if (! is_string($arg)) {
68
+            if ( ! is_string($arg)) {
69 69
                 $class = get_class($arg);
70 70
 
71
-                if (! in_array($class, $this->allowedClasses, true)) {
71
+                if ( ! in_array($class, $this->allowedClasses, true)) {
72 72
                     throw new InvalidArgumentException(
73 73
                         sprintf("Expression of type '%s' not allowed in this context.", $class)
74 74
                     );
@@ -98,6 +98,6 @@  discard block
 block discarded – undo
98 98
             return (string) $this->parts[0];
99 99
         }
100 100
 
101
-        return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator;
101
+        return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator;
102 102
     }
103 103
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/SqlWalker.php 1 patch
Spacing   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -272,10 +272,10 @@  discard block
 block discarded – undo
272 272
      */
273 273
     public function getSQLTableAlias($tableName, $dqlAlias = '')
274 274
     {
275
-        $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';
275
+        $tableName .= $dqlAlias ? '@['.$dqlAlias.']' : '';
276 276
 
277
-        if (! isset($this->tableAliasMap[$tableName])) {
278
-            $this->tableAliasMap[$tableName] = 't' . $this->tableAliasCounter++;
277
+        if ( ! isset($this->tableAliasMap[$tableName])) {
278
+            $this->tableAliasMap[$tableName] = 't'.$this->tableAliasCounter++;
279 279
         }
280 280
 
281 281
         return $this->tableAliasMap[$tableName];
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      */
294 294
     public function setSQLTableAlias($tableName, $alias, $dqlAlias = '')
295 295
     {
296
-        $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';
296
+        $tableName .= $dqlAlias ? '@['.$dqlAlias.']' : '';
297 297
 
298 298
         $this->tableAliasMap[$tableName] = $alias;
299 299
 
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      */
308 308
     public function getSQLColumnAlias()
309 309
     {
310
-        return $this->platform->getSQLResultCasing('c' . $this->aliasCounter++);
310
+        return $this->platform->getSQLResultCasing('c'.$this->aliasCounter++);
311 311
     }
312 312
 
313 313
     /**
@@ -334,14 +334,14 @@  discard block
 block discarded – undo
334 334
 
335 335
             // If this is a joined association we must use left joins to preserve the correct result.
336 336
             $sql .= isset($this->queryComponents[$dqlAlias]['relation']) ? ' LEFT ' : ' INNER ';
337
-            $sql .= 'JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
337
+            $sql .= 'JOIN '.$tableName.' '.$tableAlias.' ON ';
338 338
 
339 339
             $sqlParts = [];
340 340
 
341 341
             foreach ($class->getIdentifierColumns($this->em) as $column) {
342 342
                 $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());
343 343
 
344
-                $sqlParts[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
344
+                $sqlParts[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
345 345
             }
346 346
 
347 347
             $filterSql = $this->generateFilterConditionSQL($parentClass, $tableAlias);
@@ -365,14 +365,14 @@  discard block
 block discarded – undo
365 365
             $tableName  = $subClass->table->getQuotedQualifiedName($this->platform);
366 366
             $tableAlias = $this->getSQLTableAlias($subClass->getTableName(), $dqlAlias);
367 367
 
368
-            $sql .= ' LEFT JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
368
+            $sql .= ' LEFT JOIN '.$tableName.' '.$tableAlias.' ON ';
369 369
 
370 370
             $sqlParts = [];
371 371
 
372 372
             foreach ($subClass->getIdentifierColumns($this->em) as $column) {
373 373
                 $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());
374 374
 
375
-                $sqlParts[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
375
+                $sqlParts[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
376 376
             }
377 377
 
378 378
             $sql .= implode(' AND ', $sqlParts);
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
             $qComp       = $this->queryComponents[$dqlAlias];
394 394
             $association = $qComp['relation'];
395 395
 
396
-            if (! ($association instanceof ToManyAssociationMetadata)) {
396
+            if ( ! ($association instanceof ToManyAssociationMetadata)) {
397 397
                 continue;
398 398
             }
399 399
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
                 $property      = $qComp['metadata']->getProperty($fieldName);
402 402
                 $tableName     = $property->getTableName();
403 403
                 $columnName    = $this->platform->quoteIdentifier($property->getColumnName());
404
-                $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias) . '.' . $columnName;
404
+                $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias).'.'.$columnName;
405 405
 
406 406
                 // OrderByClause should replace an ordered relation. see - DDC-2475
407 407
                 if (isset($this->orderedColumnsMap[$orderedColumn])) {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
                 }
410 410
 
411 411
                 $this->orderedColumnsMap[$orderedColumn] = $orientation;
412
-                $orderedColumns[]                        = $orderedColumn . ' ' . $orientation;
412
+                $orderedColumns[]                        = $orderedColumn.' '.$orientation;
413 413
             }
414 414
         }
415 415
 
@@ -449,19 +449,19 @@  discard block
 block discarded – undo
449 449
             $discrColumnType  = $discrColumn->getType();
450 450
             $quotedColumnName = $this->platform->quoteIdentifier($discrColumn->getColumnName());
451 451
             $sqlTableAlias    = $this->useSqlTableAliases
452
-                ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias) . '.'
452
+                ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias).'.'
453 453
                 : '';
454 454
 
455 455
             $sqlParts[] = sprintf(
456 456
                 '%s IN (%s)',
457
-                $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . $quotedColumnName, $this->platform),
457
+                $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.$quotedColumnName, $this->platform),
458 458
                 implode(', ', $values)
459 459
             );
460 460
         }
461 461
 
462 462
         $sql = implode(' AND ', $sqlParts);
463 463
 
464
-        return isset($sqlParts[1]) ? '(' . $sql . ')' : $sql;
464
+        return isset($sqlParts[1]) ? '('.$sql.')' : $sql;
465 465
     }
466 466
 
467 467
     /**
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      */
475 475
     private function generateFilterConditionSQL(ClassMetadata $targetEntity, $targetTableAlias)
476 476
     {
477
-        if (! $this->em->hasFilters()) {
477
+        if ( ! $this->em->hasFilters()) {
478 478
             return '';
479 479
         }
480 480
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
             $filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias);
508 508
 
509 509
             if ($filterExpr !== '') {
510
-                $filterClauses[] = '(' . $filterExpr . ')';
510
+                $filterClauses[] = '('.$filterExpr.')';
511 511
             }
512 512
         }
513 513
 
@@ -538,11 +538,11 @@  discard block
 block discarded – undo
538 538
             $sql .= $this->walkOrderByClause($AST->orderByClause);
539 539
         }
540 540
 
541
-        if (! $AST->orderByClause) {
541
+        if ( ! $AST->orderByClause) {
542 542
             $orderBySql = $this->generateOrderedCollectionOrderByItems();
543 543
 
544 544
             if ($orderBySql) {
545
-                $sql .= ' ORDER BY ' . $orderBySql;
545
+                $sql .= ' ORDER BY '.$orderBySql;
546 546
             }
547 547
         }
548 548
 
@@ -555,11 +555,11 @@  discard block
 block discarded – undo
555 555
         }
556 556
 
557 557
         if ($lockMode === LockMode::PESSIMISTIC_READ) {
558
-            return $sql . ' ' . $this->platform->getReadLockSQL();
558
+            return $sql.' '.$this->platform->getReadLockSQL();
559 559
         }
560 560
 
561 561
         if ($lockMode === LockMode::PESSIMISTIC_WRITE) {
562
-            return $sql . ' ' . $this->platform->getWriteLockSQL();
562
+            return $sql.' '.$this->platform->getWriteLockSQL();
563 563
         }
564 564
 
565 565
         if ($lockMode !== LockMode::OPTIMISTIC) {
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
         }
568 568
 
569 569
         foreach ($this->selectedClasses as $selectedClass) {
570
-            if (! $selectedClass['class']->isVersioned()) {
570
+            if ( ! $selectedClass['class']->isVersioned()) {
571 571
                 throw OptimisticLockException::lockFailed($selectedClass['class']->getClassName());
572 572
             }
573 573
         }
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
         foreach ($class->getIdentifierColumns($this->em) as $column) {
617 617
             $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());
618 618
 
619
-            $sqlParts[] = $tableAlias . '.' . $quotedColumnName;
619
+            $sqlParts[] = $tableAlias.'.'.$quotedColumnName;
620 620
         }
621 621
 
622 622
         return implode(', ', $sqlParts);
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     {
635 635
         $class = $this->queryComponents[$identificationVariable]['metadata'];
636 636
 
637
-        if (! $fieldName) {
637
+        if ( ! $fieldName) {
638 638
             return $this->getSQLTableAlias($class->getTableName(), $identificationVariable);
639 639
         }
640 640
 
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
                 $property  = $class->getProperty($fieldName);
664 664
 
665 665
                 if ($this->useSqlTableAliases) {
666
-                    $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName) . '.';
666
+                    $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName).'.';
667 667
                 }
668 668
 
669 669
                 $sql .= $this->platform->quoteIdentifier($property->getColumnName());
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
                 $class       = $this->queryComponents[$dqlAlias]['metadata'];
678 678
                 $association = $class->getProperty($fieldName);
679 679
 
680
-                if (! $association->isOwningSide()) {
680
+                if ( ! $association->isOwningSide()) {
681 681
                     throw QueryException::associationPathInverseSideNotSupported($pathExpr);
682 682
                 }
683 683
 
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
                 $joinColumn = reset($joinColumns);
692 692
 
693 693
                 if ($this->useSqlTableAliases) {
694
-                    $sql .= $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias) . '.';
694
+                    $sql .= $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias).'.';
695 695
                 }
696 696
 
697 697
                 $sql .= $this->platform->quoteIdentifier($joinColumn->getColumnName());
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
      */
710 710
     public function walkSelectClause($selectClause)
711 711
     {
712
-        $sql                  = 'SELECT ' . ($selectClause->isDistinct ? 'DISTINCT ' : '');
712
+        $sql                  = 'SELECT '.($selectClause->isDistinct ? 'DISTINCT ' : '');
713 713
         $sqlSelectExpressions = array_filter(array_map([$this, 'walkSelectExpression'], $selectClause->selectExpressions));
714 714
 
715 715
         if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) === true && $selectClause->isDistinct) {
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 
753 753
                 $sqlSelectExpressions[] = sprintf(
754 754
                     '%s AS %s',
755
-                    $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . '.' . $quotedColumnName, $this->platform),
755
+                    $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.'.'.$quotedColumnName, $this->platform),
756 756
                     $sqlColumnAlias
757 757
                 );
758 758
 
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
 
763 763
             // Add foreign key columns of class and also parent classes
764 764
             foreach ($class->getDeclaredPropertiesIterator() as $association) {
765
-                if (! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())
765
+                if ( ! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())
766 766
                     || ( ! $addMetaColumns && ! $association->isPrimaryKey())) {
767 767
                     continue;
768 768
                 }
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
                     $columnAlias          = $this->getSQLColumnAlias();
778 778
                     $sqlTableAlias        = $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias);
779 779
 
780
-                    if (! $joinColumn->getType()) {
780
+                    if ( ! $joinColumn->getType()) {
781 781
                         $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
782 782
                     }
783 783
 
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
             }
794 794
 
795 795
             // Add foreign key columns to SQL, if necessary
796
-            if (! $addMetaColumns) {
796
+            if ( ! $addMetaColumns) {
797 797
                 continue;
798 798
             }
799 799
 
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
                         continue;
808 808
                     }
809 809
 
810
-                    if (! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())) {
810
+                    if ( ! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())) {
811 811
                         continue;
812 812
                     }
813 813
 
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
                         $columnAlias          = $this->getSQLColumnAlias();
822 822
                         $sqlTableAlias        = $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias);
823 823
 
824
-                        if (! $joinColumn->getType()) {
824
+                        if ( ! $joinColumn->getType()) {
825 825
                             $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
826 826
                         }
827 827
 
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
             }
839 839
         }
840 840
 
841
-        return $sql . implode(', ', $sqlSelectExpressions);
841
+        return $sql.implode(', ', $sqlSelectExpressions);
842 842
     }
843 843
 
844 844
     /**
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
             $sqlParts[] = $this->walkIdentificationVariableDeclaration($identificationVariableDecl);
854 854
         }
855 855
 
856
-        return ' FROM ' . implode(', ', $sqlParts);
856
+        return ' FROM '.implode(', ', $sqlParts);
857 857
     }
858 858
 
859 859
     /**
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
         $tableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
929 929
 
930 930
         $sql = $this->platform->appendLockHint(
931
-            $tableName . ' ' . $tableAlias,
931
+            $tableName.' '.$tableAlias,
932 932
             $this->query->getHint(Query::HINT_LOCK_MODE)
933 933
         );
934 934
 
@@ -938,11 +938,11 @@  discard block
 block discarded – undo
938 938
 
939 939
         $classTableInheritanceJoins = $this->generateClassTableInheritanceJoins($class, $dqlAlias);
940 940
 
941
-        if (! $buildNestedJoins) {
942
-            return $sql . $classTableInheritanceJoins;
941
+        if ( ! $buildNestedJoins) {
942
+            return $sql.$classTableInheritanceJoins;
943 943
         }
944 944
 
945
-        return $classTableInheritanceJoins === '' ? $sql : '(' . $sql . $classTableInheritanceJoins . ')';
945
+        return $classTableInheritanceJoins === '' ? $sql : '('.$sql.$classTableInheritanceJoins.')';
946 946
     }
947 947
 
948 948
     /**
@@ -978,7 +978,7 @@  discard block
 block discarded – undo
978 978
             : $association;
979 979
 
980 980
         if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) === true &&
981
-            (! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) {
981
+            ( ! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) {
982 982
             if ($association instanceof ToManyAssociationMetadata) {
983 983
                 throw QueryException::iterateWithFetchJoinNotAllowed($owningAssociation);
984 984
             }
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
             }
1033 1033
 
1034 1034
             $targetTableJoin = [
1035
-                'table' => $targetTableName . ' ' . $targetTableAlias,
1035
+                'table' => $targetTableName.' '.$targetTableAlias,
1036 1036
                 'condition' => implode(' AND ', $conditions),
1037 1037
             ];
1038 1038
         } elseif ($owningAssociation instanceof ManyToManyAssociationMetadata) {
@@ -1059,7 +1059,7 @@  discard block
 block discarded – undo
1059 1059
                 );
1060 1060
             }
1061 1061
 
1062
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' ON ' . implode(' AND ', $conditions);
1062
+            $sql .= $joinTableName.' '.$joinTableAlias.' ON '.implode(' AND ', $conditions);
1063 1063
 
1064 1064
             // Join target table
1065 1065
             $sql .= $joinType === AST\Join::JOIN_TYPE_LEFT || $joinType === AST\Join::JOIN_TYPE_LEFTOUTER ? ' LEFT JOIN ' : ' INNER JOIN ';
@@ -1097,7 +1097,7 @@  discard block
 block discarded – undo
1097 1097
             }
1098 1098
 
1099 1099
             $targetTableJoin = [
1100
-                'table' => $targetTableName . ' ' . $targetTableAlias,
1100
+                'table' => $targetTableName.' '.$targetTableAlias,
1101 1101
                 'condition' => implode(' AND ', $conditions),
1102 1102
             ];
1103 1103
         } else {
@@ -1105,23 +1105,23 @@  discard block
 block discarded – undo
1105 1105
         }
1106 1106
 
1107 1107
         // Handle WITH clause
1108
-        $withCondition = $condExpr === null ? '' : ('(' . $this->walkConditionalExpression($condExpr) . ')');
1108
+        $withCondition = $condExpr === null ? '' : ('('.$this->walkConditionalExpression($condExpr).')');
1109 1109
 
1110 1110
         if ($targetClass->inheritanceType === InheritanceType::JOINED) {
1111 1111
             $ctiJoins = $this->generateClassTableInheritanceJoins($targetClass, $joinedDqlAlias);
1112 1112
 
1113 1113
             // If we have WITH condition, we need to build nested joins for target class table and cti joins
1114 1114
             if ($withCondition) {
1115
-                $sql .= '(' . $targetTableJoin['table'] . $ctiJoins . ') ON ' . $targetTableJoin['condition'];
1115
+                $sql .= '('.$targetTableJoin['table'].$ctiJoins.') ON '.$targetTableJoin['condition'];
1116 1116
             } else {
1117
-                $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'] . $ctiJoins;
1117
+                $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'].$ctiJoins;
1118 1118
             }
1119 1119
         } else {
1120
-            $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'];
1120
+            $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'];
1121 1121
         }
1122 1122
 
1123 1123
         if ($withCondition) {
1124
-            $sql .= ' AND ' . $withCondition;
1124
+            $sql .= ' AND '.$withCondition;
1125 1125
         }
1126 1126
 
1127 1127
         // Apply the indexes
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
             $orderByItems = array_merge($orderByItems, (array) $collectionOrderByItems);
1156 1156
         }
1157 1157
 
1158
-        return ' ORDER BY ' . implode(', ', $orderByItems);
1158
+        return ' ORDER BY '.implode(', ', $orderByItems);
1159 1159
     }
1160 1160
 
1161 1161
     /**
@@ -1172,10 +1172,10 @@  discard block
 block discarded – undo
1172 1172
         $this->orderedColumnsMap[$sql] = $type;
1173 1173
 
1174 1174
         if ($expr instanceof AST\Subselect) {
1175
-            return '(' . $sql . ') ' . $type;
1175
+            return '('.$sql.') '.$type;
1176 1176
         }
1177 1177
 
1178
-        return $sql . ' ' . $type;
1178
+        return $sql.' '.$type;
1179 1179
     }
1180 1180
 
1181 1181
     /**
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
      */
1184 1184
     public function walkHavingClause($havingClause)
1185 1185
     {
1186
-        return ' HAVING ' . $this->walkConditionalExpression($havingClause->conditionalExpression);
1186
+        return ' HAVING '.$this->walkConditionalExpression($havingClause->conditionalExpression);
1187 1187
     }
1188 1188
 
1189 1189
     /**
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
                 $conditions = [];
1207 1207
 
1208 1208
                 if ($join->conditionalExpression) {
1209
-                    $conditions[] = '(' . $this->walkConditionalExpression($join->conditionalExpression) . ')';
1209
+                    $conditions[] = '('.$this->walkConditionalExpression($join->conditionalExpression).')';
1210 1210
                 }
1211 1211
 
1212 1212
                 $isUnconditionalJoin = empty($conditions);
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
                 }
1232 1232
 
1233 1233
                 if ($conditions) {
1234
-                    $sql .= $condExprConjunction . implode(' AND ', $conditions);
1234
+                    $sql .= $condExprConjunction.implode(' AND ', $conditions);
1235 1235
                 }
1236 1236
 
1237 1237
                 break;
@@ -1261,7 +1261,7 @@  discard block
 block discarded – undo
1261 1261
             $scalarExpressions[] = $this->walkSimpleArithmeticExpression($scalarExpression);
1262 1262
         }
1263 1263
 
1264
-        return $sql . implode(', ', $scalarExpressions) . ')';
1264
+        return $sql.implode(', ', $scalarExpressions).')';
1265 1265
     }
1266 1266
 
1267 1267
     /**
@@ -1281,7 +1281,7 @@  discard block
 block discarded – undo
1281 1281
             ? $this->conn->quote($nullIfExpression->secondExpression)
1282 1282
             : $this->walkSimpleArithmeticExpression($nullIfExpression->secondExpression);
1283 1283
 
1284
-        return 'NULLIF(' . $firstExpression . ', ' . $secondExpression . ')';
1284
+        return 'NULLIF('.$firstExpression.', '.$secondExpression.')';
1285 1285
     }
1286 1286
 
1287 1287
     /**
@@ -1294,11 +1294,11 @@  discard block
 block discarded – undo
1294 1294
         $sql = 'CASE';
1295 1295
 
1296 1296
         foreach ($generalCaseExpression->whenClauses as $whenClause) {
1297
-            $sql .= ' WHEN ' . $this->walkConditionalExpression($whenClause->caseConditionExpression);
1298
-            $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);
1297
+            $sql .= ' WHEN '.$this->walkConditionalExpression($whenClause->caseConditionExpression);
1298
+            $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);
1299 1299
         }
1300 1300
 
1301
-        return $sql . ' ELSE ' . $this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression) . ' END';
1301
+        return $sql.' ELSE '.$this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression).' END';
1302 1302
     }
1303 1303
 
1304 1304
     /**
@@ -1310,14 +1310,14 @@  discard block
 block discarded – undo
1310 1310
      */
1311 1311
     public function walkSimpleCaseExpression($simpleCaseExpression)
1312 1312
     {
1313
-        $sql = 'CASE ' . $this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);
1313
+        $sql = 'CASE '.$this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);
1314 1314
 
1315 1315
         foreach ($simpleCaseExpression->simpleWhenClauses as $simpleWhenClause) {
1316
-            $sql .= ' WHEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);
1317
-            $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);
1316
+            $sql .= ' WHEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);
1317
+            $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);
1318 1318
         }
1319 1319
 
1320
-        return $sql . ' ELSE ' . $this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression) . ' END';
1320
+        return $sql.' ELSE '.$this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression).' END';
1321 1321
     }
1322 1322
 
1323 1323
     /**
@@ -1356,7 +1356,7 @@  discard block
 block discarded – undo
1356 1356
 
1357 1357
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1358 1358
 
1359
-                if (! $hidden) {
1359
+                if ( ! $hidden) {
1360 1360
                     $this->rsm->addScalarResult($columnAlias, $resultAlias, $property->getType());
1361 1361
                     $this->scalarFields[$dqlAlias][$fieldName] = $columnAlias;
1362 1362
                 }
@@ -1377,11 +1377,11 @@  discard block
 block discarded – undo
1377 1377
                 $columnAlias = $this->getSQLColumnAlias();
1378 1378
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1379 1379
 
1380
-                $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;
1380
+                $sql .= $expr->dispatch($this).' AS '.$columnAlias;
1381 1381
 
1382 1382
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1383 1383
 
1384
-                if (! $hidden) {
1384
+                if ( ! $hidden) {
1385 1385
                     // Conceptually we could resolve field type here by traverse through AST to retrieve field type,
1386 1386
                     // but this is not a feasible solution; assume 'string'.
1387 1387
                     $this->rsm->addScalarResult($columnAlias, $resultAlias, Type::getType('string'));
@@ -1392,11 +1392,11 @@  discard block
 block discarded – undo
1392 1392
                 $columnAlias = $this->getSQLColumnAlias();
1393 1393
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1394 1394
 
1395
-                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias;
1395
+                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias;
1396 1396
 
1397 1397
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1398 1398
 
1399
-                if (! $hidden) {
1399
+                if ( ! $hidden) {
1400 1400
                     // We cannot resolve field type here; assume 'string'.
1401 1401
                     $this->rsm->addScalarResult($columnAlias, $resultAlias, Type::getType('string'));
1402 1402
                 }
@@ -1420,7 +1420,7 @@  discard block
 block discarded – undo
1420 1420
                 $class       = $queryComp['metadata'];
1421 1421
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: null;
1422 1422
 
1423
-                if (! isset($this->selectedClasses[$dqlAlias])) {
1423
+                if ( ! isset($this->selectedClasses[$dqlAlias])) {
1424 1424
                     $this->selectedClasses[$dqlAlias] = [
1425 1425
                         'class'       => $class,
1426 1426
                         'dqlAlias'    => $dqlAlias,
@@ -1432,7 +1432,7 @@  discard block
 block discarded – undo
1432 1432
 
1433 1433
                 // Select all fields from the queried class
1434 1434
                 foreach ($class->getDeclaredPropertiesIterator() as $fieldName => $property) {
1435
-                    if (! ($property instanceof FieldMetadata)) {
1435
+                    if ( ! ($property instanceof FieldMetadata)) {
1436 1436
                         continue;
1437 1437
                     }
1438 1438
 
@@ -1467,7 +1467,7 @@  discard block
 block discarded – undo
1467 1467
                         $subClass = $this->em->getClassMetadata($subClassName);
1468 1468
 
1469 1469
                         foreach ($subClass->getDeclaredPropertiesIterator() as $fieldName => $property) {
1470
-                            if (! ($property instanceof FieldMetadata)) {
1470
+                            if ( ! ($property instanceof FieldMetadata)) {
1471 1471
                                 continue;
1472 1472
                             }
1473 1473
 
@@ -1506,7 +1506,7 @@  discard block
 block discarded – undo
1506 1506
      */
1507 1507
     public function walkQuantifiedExpression($qExpr)
1508 1508
     {
1509
-        return ' ' . strtoupper($qExpr->type) . '(' . $this->walkSubselect($qExpr->subselect) . ')';
1509
+        return ' '.strtoupper($qExpr->type).'('.$this->walkSubselect($qExpr->subselect).')';
1510 1510
     }
1511 1511
 
1512 1512
     /**
@@ -1546,7 +1546,7 @@  discard block
 block discarded – undo
1546 1546
             $sqlParts[] = $this->walkIdentificationVariableDeclaration($subselectIdVarDecl);
1547 1547
         }
1548 1548
 
1549
-        return ' FROM ' . implode(', ', $sqlParts);
1549
+        return ' FROM '.implode(', ', $sqlParts);
1550 1550
     }
1551 1551
 
1552 1552
     /**
@@ -1554,7 +1554,7 @@  discard block
 block discarded – undo
1554 1554
      */
1555 1555
     public function walkSimpleSelectClause($simpleSelectClause)
1556 1556
     {
1557
-        return 'SELECT' . ($simpleSelectClause->isDistinct ? ' DISTINCT' : '')
1557
+        return 'SELECT'.($simpleSelectClause->isDistinct ? ' DISTINCT' : '')
1558 1558
             . $this->walkSimpleSelectExpression($simpleSelectClause->simpleSelectExpression);
1559 1559
     }
1560 1560
 
@@ -1588,7 +1588,7 @@  discard block
 block discarded – undo
1588 1588
                     break;
1589 1589
 
1590 1590
                 case $e instanceof AST\Subselect:
1591
-                    $sqlSelectExpressions[] = '(' . $e->dispatch($this) . ') AS ' . $columnAlias;
1591
+                    $sqlSelectExpressions[] = '('.$e->dispatch($this).') AS '.$columnAlias;
1592 1592
                     break;
1593 1593
 
1594 1594
                 case $e instanceof AST\PathExpression:
@@ -1597,7 +1597,7 @@  discard block
 block discarded – undo
1597 1597
                     $class     = $qComp['metadata'];
1598 1598
                     $fieldType = $class->getProperty($e->field)->getType();
1599 1599
 
1600
-                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;
1600
+                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;
1601 1601
                     break;
1602 1602
 
1603 1603
                 case $e instanceof AST\Literal:
@@ -1611,11 +1611,11 @@  discard block
 block discarded – undo
1611 1611
                             break;
1612 1612
                     }
1613 1613
 
1614
-                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;
1614
+                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;
1615 1615
                     break;
1616 1616
 
1617 1617
                 default:
1618
-                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;
1618
+                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;
1619 1619
                     break;
1620 1620
             }
1621 1621
 
@@ -1648,10 +1648,10 @@  discard block
 block discarded – undo
1648 1648
             case $expr instanceof AST\Subselect:
1649 1649
                 $alias = $simpleSelectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1650 1650
 
1651
-                $columnAlias                        = 'sclr' . $this->aliasCounter++;
1651
+                $columnAlias                        = 'sclr'.$this->aliasCounter++;
1652 1652
                 $this->scalarResultAliasMap[$alias] = $columnAlias;
1653 1653
 
1654
-                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias;
1654
+                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias;
1655 1655
                 break;
1656 1656
 
1657 1657
             case $expr instanceof AST\Functions\FunctionNode:
@@ -1668,7 +1668,7 @@  discard block
 block discarded – undo
1668 1668
                 $columnAlias                        = $this->getSQLColumnAlias();
1669 1669
                 $this->scalarResultAliasMap[$alias] = $columnAlias;
1670 1670
 
1671
-                $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;
1671
+                $sql .= $expr->dispatch($this).' AS '.$columnAlias;
1672 1672
                 break;
1673 1673
 
1674 1674
             case $expr instanceof AST\ParenthesisExpression:
@@ -1688,8 +1688,8 @@  discard block
 block discarded – undo
1688 1688
      */
1689 1689
     public function walkAggregateExpression($aggExpression)
1690 1690
     {
1691
-        return $aggExpression->functionName . '(' . ($aggExpression->isDistinct ? 'DISTINCT ' : '')
1692
-            . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression) . ')';
1691
+        return $aggExpression->functionName.'('.($aggExpression->isDistinct ? 'DISTINCT ' : '')
1692
+            . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression).')';
1693 1693
     }
1694 1694
 
1695 1695
     /**
@@ -1703,7 +1703,7 @@  discard block
 block discarded – undo
1703 1703
             $sqlParts[] = $this->walkGroupByItem($groupByItem);
1704 1704
         }
1705 1705
 
1706
-        return ' GROUP BY ' . implode(', ', $sqlParts);
1706
+        return ' GROUP BY '.implode(', ', $sqlParts);
1707 1707
     }
1708 1708
 
1709 1709
     /**
@@ -1712,7 +1712,7 @@  discard block
 block discarded – undo
1712 1712
     public function walkGroupByItem($groupByItem)
1713 1713
     {
1714 1714
         // StateFieldPathExpression
1715
-        if (! is_string($groupByItem)) {
1715
+        if ( ! is_string($groupByItem)) {
1716 1716
             return $this->walkPathExpression($groupByItem);
1717 1717
         }
1718 1718
 
@@ -1766,7 +1766,7 @@  discard block
 block discarded – undo
1766 1766
     {
1767 1767
         $class     = $this->em->getClassMetadata($deleteClause->abstractSchemaName);
1768 1768
         $tableName = $class->getTableName();
1769
-        $sql       = 'DELETE FROM ' . $class->table->getQuotedQualifiedName($this->platform);
1769
+        $sql       = 'DELETE FROM '.$class->table->getQuotedQualifiedName($this->platform);
1770 1770
 
1771 1771
         $this->setSQLTableAlias($tableName, $tableName, $deleteClause->aliasIdentificationVariable);
1772 1772
 
@@ -1782,12 +1782,12 @@  discard block
 block discarded – undo
1782 1782
     {
1783 1783
         $class     = $this->em->getClassMetadata($updateClause->abstractSchemaName);
1784 1784
         $tableName = $class->getTableName();
1785
-        $sql       = 'UPDATE ' . $class->table->getQuotedQualifiedName($this->platform);
1785
+        $sql       = 'UPDATE '.$class->table->getQuotedQualifiedName($this->platform);
1786 1786
 
1787 1787
         $this->setSQLTableAlias($tableName, $tableName, $updateClause->aliasIdentificationVariable);
1788 1788
         $this->rootAliases[] = $updateClause->aliasIdentificationVariable;
1789 1789
 
1790
-        return $sql . ' SET ' . implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems));
1790
+        return $sql.' SET '.implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems));
1791 1791
     }
1792 1792
 
1793 1793
     /**
@@ -1798,7 +1798,7 @@  discard block
 block discarded – undo
1798 1798
         $useTableAliasesBefore    = $this->useSqlTableAliases;
1799 1799
         $this->useSqlTableAliases = false;
1800 1800
 
1801
-        $sql      = $this->walkPathExpression($updateItem->pathExpression) . ' = ';
1801
+        $sql      = $this->walkPathExpression($updateItem->pathExpression).' = ';
1802 1802
         $newValue = $updateItem->newValue;
1803 1803
 
1804 1804
         switch (true) {
@@ -1842,7 +1842,7 @@  discard block
 block discarded – undo
1842 1842
 
1843 1843
             if ($filterClauses) {
1844 1844
                 if ($condSql) {
1845
-                    $condSql = '(' . $condSql . ') AND ';
1845
+                    $condSql = '('.$condSql.') AND ';
1846 1846
                 }
1847 1847
 
1848 1848
                 $condSql .= implode(' AND ', $filterClauses);
@@ -1850,11 +1850,11 @@  discard block
 block discarded – undo
1850 1850
         }
1851 1851
 
1852 1852
         if ($condSql) {
1853
-            return ' WHERE ' . (! $discrSql ? $condSql : '(' . $condSql . ') AND ' . $discrSql);
1853
+            return ' WHERE '.( ! $discrSql ? $condSql : '('.$condSql.') AND '.$discrSql);
1854 1854
         }
1855 1855
 
1856 1856
         if ($discrSql) {
1857
-            return ' WHERE ' . $discrSql;
1857
+            return ' WHERE '.$discrSql;
1858 1858
         }
1859 1859
 
1860 1860
         return '';
@@ -1867,7 +1867,7 @@  discard block
 block discarded – undo
1867 1867
     {
1868 1868
         // Phase 2 AST optimization: Skip processing of ConditionalExpression
1869 1869
         // if only one ConditionalTerm is defined
1870
-        if (! ($condExpr instanceof AST\ConditionalExpression)) {
1870
+        if ( ! ($condExpr instanceof AST\ConditionalExpression)) {
1871 1871
             return $this->walkConditionalTerm($condExpr);
1872 1872
         }
1873 1873
 
@@ -1881,7 +1881,7 @@  discard block
 block discarded – undo
1881 1881
     {
1882 1882
         // Phase 2 AST optimization: Skip processing of ConditionalTerm
1883 1883
         // if only one ConditionalFactor is defined
1884
-        if (! ($condTerm instanceof AST\ConditionalTerm)) {
1884
+        if ( ! ($condTerm instanceof AST\ConditionalTerm)) {
1885 1885
             return $this->walkConditionalFactor($condTerm);
1886 1886
         }
1887 1887
 
@@ -1897,7 +1897,7 @@  discard block
 block discarded – undo
1897 1897
         // if only one ConditionalPrimary is defined
1898 1898
         return ! ($factor instanceof AST\ConditionalFactor)
1899 1899
             ? $this->walkConditionalPrimary($factor)
1900
-            : ($factor->not ? 'NOT ' : '') . $this->walkConditionalPrimary($factor->conditionalPrimary);
1900
+            : ($factor->not ? 'NOT ' : '').$this->walkConditionalPrimary($factor->conditionalPrimary);
1901 1901
     }
1902 1902
 
1903 1903
     /**
@@ -1912,7 +1912,7 @@  discard block
 block discarded – undo
1912 1912
         if ($primary->isConditionalExpression()) {
1913 1913
             $condExpr = $primary->conditionalExpression;
1914 1914
 
1915
-            return '(' . $this->walkConditionalExpression($condExpr) . ')';
1915
+            return '('.$this->walkConditionalExpression($condExpr).')';
1916 1916
         }
1917 1917
     }
1918 1918
 
@@ -1923,7 +1923,7 @@  discard block
 block discarded – undo
1923 1923
     {
1924 1924
         $sql = $existsExpr->not ? 'NOT ' : '';
1925 1925
 
1926
-        $sql .= 'EXISTS (' . $this->walkSubselect($existsExpr->subselect) . ')';
1926
+        $sql .= 'EXISTS ('.$this->walkSubselect($existsExpr->subselect).')';
1927 1927
 
1928 1928
         return $sql;
1929 1929
     }
@@ -1971,7 +1971,7 @@  discard block
 block discarded – undo
1971 1971
             $targetTableAlias = $this->getSQLTableAlias($targetClass->getTableName());
1972 1972
             $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
1973 1973
 
1974
-            $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE ';
1974
+            $sql .= $targetTableName.' '.$targetTableAlias.' WHERE ';
1975 1975
 
1976 1976
             $sqlParts = [];
1977 1977
 
@@ -1992,7 +1992,7 @@  discard block
 block discarded – undo
1992 1992
                     $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1993 1993
                 }
1994 1994
 
1995
-                $sqlParts[] = $targetTableAlias . '.' . $quotedTargetColumnName . ' = ' . $entitySql;
1995
+                $sqlParts[] = $targetTableAlias.'.'.$quotedTargetColumnName.' = '.$entitySql;
1996 1996
             }
1997 1997
 
1998 1998
             $sql .= implode(' AND ', $sqlParts);
@@ -2006,7 +2006,7 @@  discard block
 block discarded – undo
2006 2006
             $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
2007 2007
 
2008 2008
             // join to target table
2009
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' INNER JOIN ' . $targetTableName . ' ' . $targetTableAlias . ' ON ';
2009
+            $sql .= $joinTableName.' '.$joinTableAlias.' INNER JOIN '.$targetTableName.' '.$targetTableAlias.' ON ';
2010 2010
 
2011 2011
             // join conditions
2012 2012
             $joinSqlParts = [];
@@ -2055,13 +2055,13 @@  discard block
 block discarded – undo
2055 2055
                     $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
2056 2056
                 }
2057 2057
 
2058
-                $sqlParts[] = $targetTableAlias . '.' . $quotedTargetColumnName . ' = ' . $entitySql;
2058
+                $sqlParts[] = $targetTableAlias.'.'.$quotedTargetColumnName.' = '.$entitySql;
2059 2059
             }
2060 2060
 
2061 2061
             $sql .= implode(' AND ', $sqlParts);
2062 2062
         }
2063 2063
 
2064
-        return $sql . ')';
2064
+        return $sql.')';
2065 2065
     }
2066 2066
 
2067 2067
     /**
@@ -2072,7 +2072,7 @@  discard block
 block discarded – undo
2072 2072
         $sizeFunc                           = new AST\Functions\SizeFunction('size');
2073 2073
         $sizeFunc->collectionPathExpression = $emptyCollCompExpr->expression;
2074 2074
 
2075
-        return $sizeFunc->getSql($this) . ($emptyCollCompExpr->not ? ' > 0' : ' = 0');
2075
+        return $sizeFunc->getSql($this).($emptyCollCompExpr->not ? ' > 0' : ' = 0');
2076 2076
     }
2077 2077
 
2078 2078
     /**
@@ -2081,19 +2081,19 @@  discard block
 block discarded – undo
2081 2081
     public function walkNullComparisonExpression($nullCompExpr)
2082 2082
     {
2083 2083
         $expression = $nullCompExpr->expression;
2084
-        $comparison = ' IS' . ($nullCompExpr->not ? ' NOT' : '') . ' NULL';
2084
+        $comparison = ' IS'.($nullCompExpr->not ? ' NOT' : '').' NULL';
2085 2085
 
2086 2086
         // Handle ResultVariable
2087 2087
         if (is_string($expression) && isset($this->queryComponents[$expression]['resultVariable'])) {
2088
-            return $this->walkResultVariable($expression) . $comparison;
2088
+            return $this->walkResultVariable($expression).$comparison;
2089 2089
         }
2090 2090
 
2091 2091
         // Handle InputParameter mapping inclusion to ParserResult
2092 2092
         if ($expression instanceof AST\InputParameter) {
2093
-            return $this->walkInputParameter($expression) . $comparison;
2093
+            return $this->walkInputParameter($expression).$comparison;
2094 2094
         }
2095 2095
 
2096
-        return $expression->dispatch($this) . $comparison;
2096
+        return $expression->dispatch($this).$comparison;
2097 2097
     }
2098 2098
 
2099 2099
     /**
@@ -2101,7 +2101,7 @@  discard block
 block discarded – undo
2101 2101
      */
2102 2102
     public function walkInExpression($inExpr)
2103 2103
     {
2104
-        $sql = $this->walkArithmeticExpression($inExpr->expression) . ($inExpr->not ? ' NOT' : '') . ' IN (';
2104
+        $sql = $this->walkArithmeticExpression($inExpr->expression).($inExpr->not ? ' NOT' : '').' IN (';
2105 2105
 
2106 2106
         $sql .= $inExpr->subselect
2107 2107
             ? $this->walkSubselect($inExpr->subselect)
@@ -2126,12 +2126,12 @@  discard block
 block discarded – undo
2126 2126
         $discrColumnType  = $discrColumn->getType();
2127 2127
         $quotedColumnName = $this->platform->quoteIdentifier($discrColumn->getColumnName());
2128 2128
         $sqlTableAlias    = $this->useSqlTableAliases
2129
-            ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias) . '.'
2129
+            ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias).'.'
2130 2130
             : '';
2131 2131
 
2132 2132
         return sprintf(
2133 2133
             '%s %sIN %s',
2134
-            $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . $quotedColumnName, $this->platform),
2134
+            $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.$quotedColumnName, $this->platform),
2135 2135
             ($instanceOfExpr->not ? 'NOT ' : ''),
2136 2136
             $this->getChildDiscriminatorsFromClassMetadata($discrClass, $instanceOfExpr)
2137 2137
         );
@@ -2178,8 +2178,8 @@  discard block
 block discarded – undo
2178 2178
             $sql .= ' NOT';
2179 2179
         }
2180 2180
 
2181
-        return $sql . ' BETWEEN ' . $this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)
2182
-            . ' AND ' . $this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);
2181
+        return $sql.' BETWEEN '.$this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)
2182
+            . ' AND '.$this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);
2183 2183
     }
2184 2184
 
2185 2185
     /**
@@ -2192,7 +2192,7 @@  discard block
 block discarded – undo
2192 2192
             ? $this->walkResultVariable($stringExpr)
2193 2193
             : $stringExpr->dispatch($this);
2194 2194
 
2195
-        $sql = $leftExpr . ($likeExpr->not ? ' NOT' : '') . ' LIKE ';
2195
+        $sql = $leftExpr.($likeExpr->not ? ' NOT' : '').' LIKE ';
2196 2196
 
2197 2197
         if ($likeExpr->stringPattern instanceof AST\InputParameter) {
2198 2198
             $sql .= $this->walkInputParameter($likeExpr->stringPattern);
@@ -2205,7 +2205,7 @@  discard block
 block discarded – undo
2205 2205
         }
2206 2206
 
2207 2207
         if ($likeExpr->escapeChar) {
2208
-            $sql .= ' ESCAPE ' . $this->walkLiteral($likeExpr->escapeChar);
2208
+            $sql .= ' ESCAPE '.$this->walkLiteral($likeExpr->escapeChar);
2209 2209
         }
2210 2210
 
2211 2211
         return $sql;
@@ -2232,7 +2232,7 @@  discard block
 block discarded – undo
2232 2232
             ? $leftExpr->dispatch($this)
2233 2233
             : (is_numeric($leftExpr) ? $leftExpr : $this->conn->quote($leftExpr));
2234 2234
 
2235
-        $sql .= ' ' . $compExpr->operator . ' ';
2235
+        $sql .= ' '.$compExpr->operator.' ';
2236 2236
 
2237 2237
         $sql .= $rightExpr instanceof AST\Node
2238 2238
             ? $rightExpr->dispatch($this)
@@ -2268,7 +2268,7 @@  discard block
 block discarded – undo
2268 2268
     {
2269 2269
         return $arithmeticExpr->isSimpleArithmeticExpression()
2270 2270
             ? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
2271
-            : '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
2271
+            : '('.$this->walkSubselect($arithmeticExpr->subselect).')';
2272 2272
     }
2273 2273
 
2274 2274
     /**
@@ -2276,7 +2276,7 @@  discard block
 block discarded – undo
2276 2276
      */
2277 2277
     public function walkSimpleArithmeticExpression($simpleArithmeticExpr)
2278 2278
     {
2279
-        if (! ($simpleArithmeticExpr instanceof AST\SimpleArithmeticExpression)) {
2279
+        if ( ! ($simpleArithmeticExpr instanceof AST\SimpleArithmeticExpression)) {
2280 2280
             return $this->walkArithmeticTerm($simpleArithmeticExpr);
2281 2281
         }
2282 2282
 
@@ -2296,7 +2296,7 @@  discard block
 block discarded – undo
2296 2296
 
2297 2297
         // Phase 2 AST optimization: Skip processing of ArithmeticTerm
2298 2298
         // if only one ArithmeticFactor is defined
2299
-        if (! ($term instanceof AST\ArithmeticTerm)) {
2299
+        if ( ! ($term instanceof AST\ArithmeticTerm)) {
2300 2300
             return $this->walkArithmeticFactor($term);
2301 2301
         }
2302 2302
 
@@ -2316,13 +2316,13 @@  discard block
 block discarded – undo
2316 2316
 
2317 2317
         // Phase 2 AST optimization: Skip processing of ArithmeticFactor
2318 2318
         // if only one ArithmeticPrimary is defined
2319
-        if (! ($factor instanceof AST\ArithmeticFactor)) {
2319
+        if ( ! ($factor instanceof AST\ArithmeticFactor)) {
2320 2320
             return $this->walkArithmeticPrimary($factor);
2321 2321
         }
2322 2322
 
2323 2323
         $sign = $factor->isNegativeSigned() ? '-' : ($factor->isPositiveSigned() ? '+' : '');
2324 2324
 
2325
-        return $sign . $this->walkArithmeticPrimary($factor->arithmeticPrimary);
2325
+        return $sign.$this->walkArithmeticPrimary($factor->arithmeticPrimary);
2326 2326
     }
2327 2327
 
2328 2328
     /**
@@ -2335,7 +2335,7 @@  discard block
 block discarded – undo
2335 2335
     public function walkArithmeticPrimary($primary)
2336 2336
     {
2337 2337
         if ($primary instanceof AST\SimpleArithmeticExpression) {
2338
-            return '(' . $this->walkSimpleArithmeticExpression($primary) . ')';
2338
+            return '('.$this->walkSimpleArithmeticExpression($primary).')';
2339 2339
         }
2340 2340
 
2341 2341
         if ($primary instanceof AST\Node) {
@@ -2393,7 +2393,7 @@  discard block
 block discarded – undo
2393 2393
             $entityClassName = $entityClass->getClassName();
2394 2394
 
2395 2395
             if ($entityClassName !== $rootClass->getClassName()) {
2396
-                if (! $entityClass->getReflectionClass()->isSubclassOf($rootClass->getClassName())) {
2396
+                if ( ! $entityClass->getReflectionClass()->isSubclassOf($rootClass->getClassName())) {
2397 2397
                     throw QueryException::instanceOfUnrelatedClass($entityClassName, $rootClass->getClassName());
2398 2398
                 }
2399 2399
             }
@@ -2405,6 +2405,6 @@  discard block
 block discarded – undo
2405 2405
             $sqlParameterList[] = $this->conn->quote($discriminator);
2406 2406
         }
2407 2407
 
2408
-        return '(' . implode(', ', $sqlParameterList) . ')';
2408
+        return '('.implode(', ', $sqlParameterList).')';
2409 2409
     }
2410 2410
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Parser.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         }
398 398
 
399 399
         foreach ($this->queryComponents as $dqlAlias => $qComp) {
400
-            if (! isset($this->identVariableExpressions[$dqlAlias])) {
400
+            if ( ! isset($this->identVariableExpressions[$dqlAlias])) {
401 401
                 continue;
402 402
             }
403 403
 
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
         $tokenStr = substr($dql, (int) $token['position'], $length);
462 462
 
463 463
         // Building informative message
464
-        $message = 'line 0, col ' . $tokenPos . " near '" . $tokenStr . "': Error: " . $message;
464
+        $message = 'line 0, col '.$tokenPos." near '".$tokenStr."': Error: ".$message;
465 465
 
466 466
         throw QueryException::semanticalError(
467 467
             $message,
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
             $identVariable = $deferredItem['expression'];
565 565
 
566 566
             // Check if IdentificationVariable exists in queryComponents
567
-            if (! isset($this->queryComponents[$identVariable])) {
567
+            if ( ! isset($this->queryComponents[$identVariable])) {
568 568
                 $this->semanticalError(
569 569
                     sprintf("'%s' is not defined.", $identVariable),
570 570
                     $deferredItem['token']
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
             $qComp = $this->queryComponents[$identVariable];
575 575
 
576 576
             // Check if queryComponent points to an AbstractSchemaName or a ResultVariable
577
-            if (! isset($qComp['metadata'])) {
577
+            if ( ! isset($qComp['metadata'])) {
578 578
                 $this->semanticalError(
579 579
                     sprintf("'%s' does not point to a Class.", $identVariable),
580 580
                     $deferredItem['token']
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
             // If the namespace is not given then assumes the first FROM entity namespace
609 609
             if (strpos($className, '\\') === false && ! class_exists($className) && strpos($fromClassName, '\\') !== false) {
610 610
                 $namespace = substr($fromClassName, 0, strrpos($fromClassName, '\\'));
611
-                $fqcn      = $namespace . '\\' . $className;
611
+                $fqcn      = $namespace.'\\'.$className;
612 612
 
613 613
                 if (class_exists($fqcn)) {
614 614
                     $expression->className = $fqcn;
@@ -616,13 +616,13 @@  discard block
 block discarded – undo
616 616
                 }
617 617
             }
618 618
 
619
-            if (! class_exists($className)) {
619
+            if ( ! class_exists($className)) {
620 620
                 $this->semanticalError(sprintf('Class "%s" is not defined.', $className), $token);
621 621
             }
622 622
 
623 623
             $class = new ReflectionClass($className);
624 624
 
625
-            if (! $class->isInstantiable()) {
625
+            if ( ! $class->isInstantiable()) {
626 626
                 $this->semanticalError(sprintf('Class "%s" can not be instantiated.', $className), $token);
627 627
             }
628 628
 
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
             $resultVariable = $deferredItem['expression'];
680 680
 
681 681
             // Check if ResultVariable exists in queryComponents
682
-            if (! isset($this->queryComponents[$resultVariable])) {
682
+            if ( ! isset($this->queryComponents[$resultVariable])) {
683 683
                 $this->semanticalError(
684 684
                     sprintf("'%s' is not defined.", $resultVariable),
685 685
                     $deferredItem['token']
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
             $qComp = $this->queryComponents[$resultVariable];
690 690
 
691 691
             // Check if queryComponent points to an AbstractSchemaName or a ResultVariable
692
-            if (! isset($qComp['resultVariable'])) {
692
+            if ( ! isset($qComp['resultVariable'])) {
693 693
                 $this->semanticalError(
694 694
                     sprintf("'%s' does not point to a ResultVariable.", $resultVariable),
695 695
                     $deferredItem['token']
@@ -731,9 +731,9 @@  discard block
 block discarded – undo
731 731
             $property = $class->getProperty($field);
732 732
 
733 733
             // Check if field or association exists
734
-            if (! $property) {
734
+            if ( ! $property) {
735 735
                 $this->semanticalError(
736
-                    'Class ' . $class->getClassName() . ' has no field or association named ' . $field,
736
+                    'Class '.$class->getClassName().' has no field or association named '.$field,
737 737
                     $deferredItem['token']
738 738
                 );
739 739
             }
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
             // Validate if PathExpression is one of the expected types
750 750
             $expectedType = $pathExpression->expectedType;
751 751
 
752
-            if (! ($expectedType & $fieldType)) {
752
+            if ( ! ($expectedType & $fieldType)) {
753 753
                 // We need to recognize which was expected type(s)
754 754
                 $expectedStringTypes = [];
755 755
 
@@ -771,8 +771,8 @@  discard block
 block discarded – undo
771 771
                 // Build the error message
772 772
                 $semanticalError  = 'Invalid PathExpression. ';
773 773
                 $semanticalError .= count($expectedStringTypes) === 1
774
-                    ? 'Must be a ' . $expectedStringTypes[0] . '.'
775
-                    : implode(' or ', $expectedStringTypes) . ' expected.';
774
+                    ? 'Must be a '.$expectedStringTypes[0].'.'
775
+                    : implode(' or ', $expectedStringTypes).' expected.';
776 776
 
777 777
                 $this->semanticalError($semanticalError, $deferredItem['token']);
778 778
             }
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 
785 785
     private function processRootEntityAliasSelected()
786 786
     {
787
-        if (! $this->identVariableExpressions) {
787
+        if ( ! $this->identVariableExpressions) {
788 788
             return;
789 789
         }
790 790
 
@@ -941,7 +941,7 @@  discard block
 block discarded – undo
941 941
 
942 942
         [$namespaceAlias, $simpleClassName] = explode(':', $this->lexer->token['value']);
943 943
 
944
-        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
944
+        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName;
945 945
     }
946 946
 
947 947
     /**
@@ -1020,9 +1020,9 @@  discard block
 block discarded – undo
1020 1020
     {
1021 1021
         $identVariable = $this->IdentificationVariable();
1022 1022
 
1023
-        if (! isset($this->queryComponents[$identVariable])) {
1023
+        if ( ! isset($this->queryComponents[$identVariable])) {
1024 1024
             $this->semanticalError(
1025
-                'Identification Variable ' . $identVariable . ' used in join path expression but was not defined before.'
1025
+                'Identification Variable '.$identVariable.' used in join path expression but was not defined before.'
1026 1026
             );
1027 1027
         }
1028 1028
 
@@ -1036,8 +1036,8 @@  discard block
 block discarded – undo
1036 1036
         $class    = $qComp['metadata'];
1037 1037
         $property = $class->getProperty($field);
1038 1038
 
1039
-        if (! ($property !== null && $property instanceof AssociationMetadata)) {
1040
-            $this->semanticalError('Class ' . $class->getClassName() . ' has no association named ' . $field);
1039
+        if ( ! ($property !== null && $property instanceof AssociationMetadata)) {
1040
+            $this->semanticalError('Class '.$class->getClassName().' has no association named '.$field);
1041 1041
         }
1042 1042
 
1043 1043
         return new AST\JoinAssociationPathExpression($identVariable, $field);
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
             while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1068 1068
                 $this->match(Lexer::T_DOT);
1069 1069
                 $this->match(Lexer::T_IDENTIFIER);
1070
-                $field .= '.' . $this->lexer->token['value'];
1070
+                $field .= '.'.$this->lexer->token['value'];
1071 1071
             }
1072 1072
         }
1073 1073
 
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
         // Still need to decide between IdentificationVariable or ResultVariable
1450 1450
         $lookaheadValue = $this->lexer->lookahead['value'];
1451 1451
 
1452
-        if (! isset($this->queryComponents[$lookaheadValue])) {
1452
+        if ( ! isset($this->queryComponents[$lookaheadValue])) {
1453 1453
             $this->semanticalError('Cannot group by undefined identification or result variable.');
1454 1454
         }
1455 1455
 
@@ -1797,7 +1797,7 @@  discard block
 block discarded – undo
1797 1797
         while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1798 1798
             $this->match(Lexer::T_DOT);
1799 1799
             $this->match(Lexer::T_IDENTIFIER);
1800
-            $field .= '.' . $this->lexer->token['value'];
1800
+            $field .= '.'.$this->lexer->token['value'];
1801 1801
         }
1802 1802
 
1803 1803
         $partialFieldSet[] = $field;
@@ -1811,7 +1811,7 @@  discard block
 block discarded – undo
1811 1811
             while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1812 1812
                 $this->match(Lexer::T_DOT);
1813 1813
                 $this->match(Lexer::T_IDENTIFIER);
1814
-                $field .= '.' . $this->lexer->token['value'];
1814
+                $field .= '.'.$this->lexer->token['value'];
1815 1815
             }
1816 1816
 
1817 1817
             $partialFieldSet[] = $field;
@@ -2432,7 +2432,7 @@  discard block
 block discarded – undo
2432 2432
 
2433 2433
         // Phase 1 AST optimization: Prevent AST\ConditionalFactor
2434 2434
         // if only one AST\ConditionalPrimary is defined
2435
-        if (! $not) {
2435
+        if ( ! $not) {
2436 2436
             return $conditionalPrimary;
2437 2437
         }
2438 2438
 
@@ -2451,7 +2451,7 @@  discard block
 block discarded – undo
2451 2451
     {
2452 2452
         $condPrimary = new AST\ConditionalPrimary();
2453 2453
 
2454
-        if (! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
2454
+        if ( ! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
2455 2455
             $condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression();
2456 2456
 
2457 2457
             return $condPrimary;
@@ -2619,7 +2619,7 @@  discard block
 block discarded – undo
2619 2619
             $this->match(Lexer::T_OF);
2620 2620
         }
2621 2621
 
2622
-        $collMemberExpr      = new AST\CollectionMemberExpression(
2622
+        $collMemberExpr = new AST\CollectionMemberExpression(
2623 2623
             $entityExpr,
2624 2624
             $this->CollectionValuedPathExpression()
2625 2625
         );
@@ -2958,7 +2958,7 @@  discard block
 block discarded – undo
2958 2958
         $lookaheadType = $this->lexer->lookahead['type'];
2959 2959
         $isDistinct    = false;
2960 2960
 
2961
-        if (! in_array($lookaheadType, [Lexer::T_COUNT, Lexer::T_AVG, Lexer::T_MAX, Lexer::T_MIN, Lexer::T_SUM], true)) {
2961
+        if ( ! in_array($lookaheadType, [Lexer::T_COUNT, Lexer::T_AVG, Lexer::T_MAX, Lexer::T_MIN, Lexer::T_SUM], true)) {
2962 2962
             $this->syntaxError('One of: MAX, MIN, AVG, SUM, COUNT');
2963 2963
         }
2964 2964
 
@@ -2988,7 +2988,7 @@  discard block
 block discarded – undo
2988 2988
         $lookaheadType = $this->lexer->lookahead['type'];
2989 2989
         $value         = $this->lexer->lookahead['value'];
2990 2990
 
2991
-        if (! in_array($lookaheadType, [Lexer::T_ALL, Lexer::T_ANY, Lexer::T_SOME], true)) {
2991
+        if ( ! in_array($lookaheadType, [Lexer::T_ALL, Lexer::T_ANY, Lexer::T_SOME], true)) {
2992 2992
             $this->syntaxError('ALL, ANY or SOME');
2993 2993
         }
2994 2994
 
@@ -3226,7 +3226,7 @@  discard block
 block discarded – undo
3226 3226
                 $lookaheadValue = $this->lexer->lookahead['value'];
3227 3227
 
3228 3228
                 // Validate existing component
3229
-                if (! isset($this->queryComponents[$lookaheadValue])) {
3229
+                if ( ! isset($this->queryComponents[$lookaheadValue])) {
3230 3230
                     $this->semanticalError('Cannot add having condition on undefined result variable.');
3231 3231
                 }
3232 3232
 
@@ -3237,7 +3237,7 @@  discard block
 block discarded – undo
3237 3237
                 }
3238 3238
 
3239 3239
                 // Validating ResultVariable
3240
-                if (! isset($this->queryComponents[$lookaheadValue]['resultVariable'])) {
3240
+                if ( ! isset($this->queryComponents[$lookaheadValue]['resultVariable'])) {
3241 3241
                     $this->semanticalError('Cannot add having condition on a non result variable.');
3242 3242
                 }
3243 3243
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/FilterCollection.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function enable($name)
83 83
     {
84
-        if (! $this->has($name)) {
85
-            throw new InvalidArgumentException("Filter '" . $name . "' does not exist.");
84
+        if ( ! $this->has($name)) {
85
+            throw new InvalidArgumentException("Filter '".$name."' does not exist.");
86 86
         }
87 87
 
88
-        if (! $this->isEnabled($name)) {
88
+        if ( ! $this->isEnabled($name)) {
89 89
             $filterClass = $this->config->getFilterClassName($name);
90 90
 
91 91
             $this->enabledFilters[$name] = new $filterClass($this->em);
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function getFilter($name)
135 135
     {
136
-        if (! $this->isEnabled($name)) {
137
-            throw new InvalidArgumentException("Filter '" . $name . "' is not enabled.");
136
+        if ( ! $this->isEnabled($name)) {
137
+            throw new InvalidArgumentException("Filter '".$name."' is not enabled.");
138 138
         }
139 139
 
140 140
         return $this->enabledFilters[$name];
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         $filterHash = '';
188 188
 
189 189
         foreach ($this->enabledFilters as $name => $filter) {
190
-            $filterHash .= $name . $filter;
190
+            $filterHash .= $name.$filter;
191 191
         }
192 192
 
193 193
         return $filterHash;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Filter/SQLFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@
 block discarded – undo
83 83
      */
84 84
     final public function getParameter($name)
85 85
     {
86
-        if (! isset($this->parameters[$name])) {
87
-            throw new InvalidArgumentException("Parameter '" . $name . "' does not exist.");
86
+        if ( ! isset($this->parameters[$name])) {
87
+            throw new InvalidArgumentException("Parameter '".$name."' does not exist.");
88 88
         }
89 89
 
90 90
         return $this->em->getConnection()->quote($this->parameters[$name]['value'], $this->parameters[$name]['type']);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause()
58 58
         $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 'i0', $primaryDqlAlias);
59 59
 
60
-        $this->insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnNameList . ')'
61
-                . ' SELECT i0.' . implode(', i0.', array_keys($idColumns));
60
+        $this->insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnNameList.')'
61
+                . ' SELECT i0.'.implode(', i0.', array_keys($idColumns));
62 62
 
63 63
         $rangeDecl        = new AST\RangeVariableDeclaration($primaryClass->getClassName(), $primaryDqlAlias);
64 64
         $fromClause       = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         // 3. Create and store DELETE statements
81 81
         $hierarchyClasses = array_merge(
82 82
             array_map(
83
-                static function ($className) use ($em) {
83
+                static function($className) use ($em) {
84 84
                     return $em->getClassMetadata($className);
85 85
                 },
86 86
                 array_reverse($primaryClass->getSubClasses())
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
             ];
104 104
         }
105 105
 
106
-        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
107
-                . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
106
+        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' ('
107
+                . $platform->getColumnDeclarationListSQL($columnDefinitions).')';
108 108
 
109 109
         $this->dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable);
110 110
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Exec/MultiTableUpdateExecutor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause()
68 68
         $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 'i0', $updateClause->aliasIdentificationVariable);
69 69
 
70
-        $this->insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnNameList . ')'
71
-                . ' SELECT i0.' . implode(', i0.', array_keys($idColumns));
70
+        $this->insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnNameList.')'
71
+                . ' SELECT i0.'.implode(', i0.', array_keys($idColumns));
72 72
 
73 73
         $rangeDecl  = new AST\RangeVariableDeclaration($primaryClass->getClassName(), $updateClause->aliasIdentificationVariable);
74 74
         $fromClause = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         // 3. Create and store UPDATE statements
87 87
         $hierarchyClasses = array_merge(
88 88
             array_map(
89
-                static function ($className) use ($em) {
89
+                static function($className) use ($em) {
90 90
                     return $em->getClassMetadata($className);
91 91
                 },
92 92
                 array_reverse($primaryClass->getSubClasses())
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
             ];
143 143
         }
144 144
 
145
-        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
146
-                . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
145
+        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' ('
146
+                . $platform->getColumnDeclarationListSQL($columnDefinitions).')';
147 147
 
148 148
         $this->dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable);
149 149
     }
Please login to merge, or discard this patch.