Failed Conditions
Pull Request — master (#6709)
by Sergey
15:18
created
lib/Doctrine/ORM/Query/ResultSetMapping.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -591,6 +591,10 @@
 block discarded – undo
591 591
         return $this;
592 592
     }
593 593
 
594
+    /**
595
+     * @param null|string $objOwner
596
+     * @param null|integer $objOwnerIdx
597
+     */
594 598
     public function addNewObjectAsArgument($alias, $objOwner, $objOwnerIdx)
595 599
     {
596 600
         $owner = [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -598,7 +598,7 @@
 block discarded – undo
598 598
             'argIndex' => $objOwnerIdx,
599 599
         ];
600 600
 
601
-        if (!isset($this->nestedNewObjectArguments[$owner['ownerIndex']])) {
601
+        if ( ! isset($this->nestedNewObjectArguments[$owner['ownerIndex']])) {
602 602
             $this->nestedNewObjectArguments[$alias] = $owner;
603 603
 
604 604
             return;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/SqlWalker.php 1 patch
Spacing   +120 added lines, -120 removed lines patch added patch discarded remove patch
@@ -296,11 +296,11 @@  discard block
 block discarded – undo
296 296
      */
297 297
     public function getSQLTableAlias($tableName, $dqlAlias = '')
298 298
     {
299
-        $tableName .= ($dqlAlias) ? '@[' . $dqlAlias . ']' : '';
299
+        $tableName .= ($dqlAlias) ? '@['.$dqlAlias.']' : '';
300 300
 
301 301
         if ( ! isset($this->tableAliasMap[$tableName])) {
302 302
             $this->tableAliasMap[$tableName] = (preg_match('/[a-z]/i', $tableName[0]) ? strtolower($tableName[0]) : 't')
303
-                . $this->tableAliasCounter++ . '_';
303
+                . $this->tableAliasCounter++.'_';
304 304
         }
305 305
 
306 306
         return $this->tableAliasMap[$tableName];
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     public function setSQLTableAlias($tableName, $alias, $dqlAlias = '')
320 320
     {
321
-        $tableName .= ($dqlAlias) ? '@[' . $dqlAlias . ']' : '';
321
+        $tableName .= ($dqlAlias) ? '@['.$dqlAlias.']' : '';
322 322
 
323 323
         $this->tableAliasMap[$tableName] = $alias;
324 324
 
@@ -359,12 +359,12 @@  discard block
 block discarded – undo
359 359
 
360 360
             // If this is a joined association we must use left joins to preserve the correct result.
361 361
             $sql .= isset($this->queryComponents[$dqlAlias]['relation']) ? ' LEFT ' : ' INNER ';
362
-            $sql .= 'JOIN ' . $this->quoteStrategy->getTableName($parentClass, $this->platform) . ' ' . $tableAlias . ' ON ';
362
+            $sql .= 'JOIN '.$this->quoteStrategy->getTableName($parentClass, $this->platform).' '.$tableAlias.' ON ';
363 363
 
364 364
             $sqlParts = [];
365 365
 
366 366
             foreach ($this->quoteStrategy->getIdentifierColumnNames($class, $this->platform) as $columnName) {
367
-                $sqlParts[] = $baseTableAlias . '.' . $columnName . ' = ' . $tableAlias . '.' . $columnName;
367
+                $sqlParts[] = $baseTableAlias.'.'.$columnName.' = '.$tableAlias.'.'.$columnName;
368 368
             }
369 369
 
370 370
             // Add filters on the root class
@@ -385,12 +385,12 @@  discard block
 block discarded – undo
385 385
             $subClass   = $this->em->getClassMetadata($subClassName);
386 386
             $tableAlias = $this->getSQLTableAlias($subClass->getTableName(), $dqlAlias);
387 387
 
388
-            $sql .= ' LEFT JOIN ' . $this->quoteStrategy->getTableName($subClass, $this->platform) . ' ' . $tableAlias . ' ON ';
388
+            $sql .= ' LEFT JOIN '.$this->quoteStrategy->getTableName($subClass, $this->platform).' '.$tableAlias.' ON ';
389 389
 
390 390
             $sqlParts = [];
391 391
 
392 392
             foreach ($this->quoteStrategy->getIdentifierColumnNames($subClass, $this->platform) as $columnName) {
393
-                $sqlParts[] = $baseTableAlias . '.' . $columnName . ' = ' . $tableAlias . '.' . $columnName;
393
+                $sqlParts[] = $baseTableAlias.'.'.$columnName.' = '.$tableAlias.'.'.$columnName;
394 394
             }
395 395
 
396 396
             $sql .= implode(' AND ', $sqlParts);
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
                     ? $persister->getOwningTable($fieldName)
423 423
                     : $qComp['metadata']->getTableName();
424 424
 
425
-                $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias) . '.' . $columnName;
425
+                $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias).'.'.$columnName;
426 426
 
427 427
                 // OrderByClause should replace an ordered relation. see - DDC-2475
428 428
                 if (isset($this->orderedColumnsMap[$orderedColumn])) {
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
                 }
431 431
 
432 432
                 $this->orderedColumnsMap[$orderedColumn] = $orientation;
433
-                $orderedColumns[] = $orderedColumn . ' ' . $orientation;
433
+                $orderedColumns[] = $orderedColumn.' '.$orientation;
434 434
             }
435 435
         }
436 436
 
@@ -465,15 +465,15 @@  discard block
 block discarded – undo
465 465
             }
466 466
 
467 467
             $sqlTableAlias = ($this->useSqlTableAliases)
468
-                ? $this->getSQLTableAlias($class->getTableName(), $dqlAlias) . '.'
468
+                ? $this->getSQLTableAlias($class->getTableName(), $dqlAlias).'.'
469 469
                 : '';
470 470
 
471
-            $sqlParts[] = $sqlTableAlias . $class->discriminatorColumn['name'] . ' IN (' . implode(', ', $values) . ')';
471
+            $sqlParts[] = $sqlTableAlias.$class->discriminatorColumn['name'].' IN ('.implode(', ', $values).')';
472 472
         }
473 473
 
474 474
         $sql = implode(' AND ', $sqlParts);
475 475
 
476
-        return (count($sqlParts) > 1) ? '(' . $sql . ')' : $sql;
476
+        return (count($sqlParts) > 1) ? '('.$sql.')' : $sql;
477 477
     }
478 478
 
479 479
     /**
@@ -486,11 +486,11 @@  discard block
 block discarded – undo
486 486
      */
487 487
     private function generateFilterConditionSQL(ClassMetadata $targetEntity, $targetTableAlias)
488 488
     {
489
-        if (!$this->em->hasFilters()) {
489
+        if ( ! $this->em->hasFilters()) {
490 490
             return '';
491 491
         }
492 492
 
493
-        switch($targetEntity->inheritanceType) {
493
+        switch ($targetEntity->inheritanceType) {
494 494
             case ClassMetadata::INHERITANCE_TYPE_NONE:
495 495
                 break;
496 496
             case ClassMetadata::INHERITANCE_TYPE_JOINED:
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
         $filterClauses = [];
514 514
         foreach ($this->em->getFilters()->getEnabledFilters() as $filter) {
515 515
             if ('' !== $filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias)) {
516
-                $filterClauses[] = '(' . $filterExpr . ')';
516
+                $filterClauses[] = '('.$filterExpr.')';
517 517
             }
518 518
         }
519 519
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
         }
546 546
 
547 547
         if ( ! $AST->orderByClause && ($orderBySql = $this->_generateOrderedCollectionOrderByItems())) {
548
-            $sql .= ' ORDER BY ' . $orderBySql;
548
+            $sql .= ' ORDER BY '.$orderBySql;
549 549
         }
550 550
 
551 551
         if ($limit !== null || $offset !== null) {
@@ -557,11 +557,11 @@  discard block
 block discarded – undo
557 557
         }
558 558
 
559 559
         if ($lockMode === LockMode::PESSIMISTIC_READ) {
560
-            return $sql . ' ' . $this->platform->getReadLockSQL();
560
+            return $sql.' '.$this->platform->getReadLockSQL();
561 561
         }
562 562
 
563 563
         if ($lockMode === LockMode::PESSIMISTIC_WRITE) {
564
-            return $sql . ' ' . $this->platform->getWriteLockSQL();
564
+            return $sql.' '.$this->platform->getWriteLockSQL();
565 565
         }
566 566
 
567 567
         if ($lockMode !== LockMode::OPTIMISTIC) {
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
         $sqlParts   = [];
617 617
 
618 618
         foreach ($this->quoteStrategy->getIdentifierColumnNames($class, $this->platform) as $columnName) {
619
-            $sqlParts[] = $tableAlias . '.' . $columnName;
619
+            $sqlParts[] = $tableAlias.'.'.$columnName;
620 620
         }
621 621
 
622 622
         return implode(', ', $sqlParts);
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
                 $class = $this->queryComponents[$dqlAlias]['metadata'];
660 660
 
661 661
                 if ($this->useSqlTableAliases) {
662
-                    $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName) . '.';
662
+                    $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName).'.';
663 663
                 }
664 664
 
665 665
                 $sql .= $this->quoteStrategy->getColumnName($fieldName, $class, $this->platform);
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
                 }
689 689
 
690 690
                 if ($this->useSqlTableAliases) {
691
-                    $sql .= $this->getSQLTableAlias($class->getTableName(), $dqlAlias) . '.';
691
+                    $sql .= $this->getSQLTableAlias($class->getTableName(), $dqlAlias).'.';
692 692
                 }
693 693
 
694 694
                 $sql .= reset($assoc['targetToSourceKeyColumns']);
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
      */
707 707
     public function walkSelectClause($selectClause)
708 708
     {
709
-        $sql = 'SELECT ' . (($selectClause->isDistinct) ? 'DISTINCT ' : '');
709
+        $sql = 'SELECT '.(($selectClause->isDistinct) ? 'DISTINCT ' : '');
710 710
         $sqlSelectExpressions = array_filter(array_map([$this, 'walkSelectExpression'], $selectClause->selectExpressions));
711 711
 
712 712
         if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) == true && $selectClause->isDistinct) {
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
                 $discrColumn = $rootClass->discriminatorColumn;
744 744
                 $columnAlias = $this->getSQLColumnAlias($discrColumn['name']);
745 745
 
746
-                $sqlSelectExpressions[] = $tblAlias . '.' . $discrColumn['name'] . ' AS ' . $columnAlias;
746
+                $sqlSelectExpressions[] = $tblAlias.'.'.$discrColumn['name'].' AS '.$columnAlias;
747 747
 
748 748
                 $this->rsm->setDiscriminatorColumn($dqlAlias, $columnAlias);
749 749
                 $this->rsm->addMetaResult($dqlAlias, $columnAlias, $discrColumn['fieldName'], false, $discrColumn['type']);
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
             foreach ($class->associationMappings as $assoc) {
759 759
                 if ( ! ($assoc['isOwningSide'] && $assoc['type'] & ClassMetadata::TO_ONE)) {
760 760
                     continue;
761
-                } else if ( !$addMetaColumns && !isset($assoc['id'])) {
761
+                } else if ( ! $addMetaColumns && ! isset($assoc['id'])) {
762 762
                     continue;
763 763
                 }
764 764
 
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
                     $columnType  = PersisterHelper::getTypeOfColumn($joinColumn['referencedColumnName'], $targetClass, $this->em);
774 774
 
775 775
                     $quotedColumnName       = $this->quoteStrategy->getJoinColumnName($joinColumn, $class, $this->platform);
776
-                    $sqlSelectExpressions[] = $sqlTableAlias . '.' . $quotedColumnName . ' AS ' . $columnAlias;
776
+                    $sqlSelectExpressions[] = $sqlTableAlias.'.'.$quotedColumnName.' AS '.$columnAlias;
777 777
 
778 778
                     $this->rsm->addMetaResult($dqlAlias, $columnAlias, $columnName, $isIdentifier, $columnType);
779 779
                 }
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
                             $columnType  = PersisterHelper::getTypeOfColumn($joinColumn['referencedColumnName'], $targetClass, $this->em);
803 803
 
804 804
                             $quotedColumnName       = $this->quoteStrategy->getJoinColumnName($joinColumn, $subClass, $this->platform);
805
-                            $sqlSelectExpressions[] = $sqlTableAlias . '.' . $quotedColumnName . ' AS ' . $columnAlias;
805
+                            $sqlSelectExpressions[] = $sqlTableAlias.'.'.$quotedColumnName.' AS '.$columnAlias;
806 806
 
807 807
                             $this->rsm->addMetaResult($dqlAlias, $columnAlias, $columnName, $subClass->isIdentifier($columnName), $columnType);
808 808
                         }
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
             $sqlParts[] = $this->walkIdentificationVariableDeclaration($identificationVariableDecl);
829 829
         }
830 830
 
831
-        return ' FROM ' . implode(', ', $sqlParts);
831
+        return ' FROM '.implode(', ', $sqlParts);
832 832
     }
833 833
 
834 834
     /**
@@ -905,14 +905,14 @@  discard block
 block discarded – undo
905 905
         }
906 906
 
907 907
         $sql = $this->platform->appendLockHint(
908
-            $this->quoteStrategy->getTableName($class, $this->platform) . ' ' .
908
+            $this->quoteStrategy->getTableName($class, $this->platform).' '.
909 909
             $this->getSQLTableAlias($class->getTableName(), $dqlAlias),
910 910
             $this->query->getHint(Query::HINT_LOCK_MODE)
911 911
         );
912 912
 
913 913
         if ($class->isInheritanceTypeJoined()) {
914 914
             if ($buildNestedJoins) {
915
-                $sql = '(' . $sql . $this->_generateClassTableInheritanceJoins($class, $dqlAlias) . ')';
915
+                $sql = '('.$sql.$this->_generateClassTableInheritanceJoins($class, $dqlAlias).')';
916 916
             } else {
917 917
                 $sql .= $this->_generateClassTableInheritanceJoins($class, $dqlAlias);
918 918
             }
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
         // Ensure we got the owning side, since it has all mapping info
952 952
         $assoc = ( ! $relation['isOwningSide']) ? $targetClass->associationMappings[$relation['mappedBy']] : $relation;
953 953
 
954
-        if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) == true && (!$this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) {
954
+        if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) == true && ( ! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) {
955 955
             if ($relation['type'] == ClassMetadata::ONE_TO_MANY || $relation['type'] == ClassMetadata::MANY_TO_MANY) {
956 956
                 throw QueryException::iterateWithFetchJoinNotAllowed($assoc);
957 957
             }
@@ -971,12 +971,12 @@  discard block
 block discarded – undo
971 971
                     $quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform);
972 972
 
973 973
                     if ($relation['isOwningSide']) {
974
-                        $conditions[] = $sourceTableAlias . '.' . $quotedSourceColumn . ' = ' . $targetTableAlias . '.' . $quotedTargetColumn;
974
+                        $conditions[] = $sourceTableAlias.'.'.$quotedSourceColumn.' = '.$targetTableAlias.'.'.$quotedTargetColumn;
975 975
 
976 976
                         continue;
977 977
                     }
978 978
 
979
-                    $conditions[] = $sourceTableAlias . '.' . $quotedTargetColumn . ' = ' . $targetTableAlias . '.' . $quotedSourceColumn;
979
+                    $conditions[] = $sourceTableAlias.'.'.$quotedTargetColumn.' = '.$targetTableAlias.'.'.$quotedSourceColumn;
980 980
                 }
981 981
 
982 982
                 // Apply remaining inheritance restrictions
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
                 }
995 995
 
996 996
                 $targetTableJoin = [
997
-                    'table' => $targetTableName . ' ' . $targetTableAlias,
997
+                    'table' => $targetTableName.' '.$targetTableAlias,
998 998
                     'condition' => implode(' AND ', $conditions),
999 999
                 ];
1000 1000
                 break;
@@ -1014,10 +1014,10 @@  discard block
 block discarded – undo
1014 1014
                     $quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform);
1015 1015
                     $quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform);
1016 1016
 
1017
-                    $conditions[] = $sourceTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableAlias . '.' . $quotedSourceColumn;
1017
+                    $conditions[] = $sourceTableAlias.'.'.$quotedTargetColumn.' = '.$joinTableAlias.'.'.$quotedSourceColumn;
1018 1018
                 }
1019 1019
 
1020
-                $sql .= $joinTableName . ' ' . $joinTableAlias . ' ON ' . implode(' AND ', $conditions);
1020
+                $sql .= $joinTableName.' '.$joinTableAlias.' ON '.implode(' AND ', $conditions);
1021 1021
 
1022 1022
                 // Join target table
1023 1023
                 $sql .= ($joinType == AST\Join::JOIN_TYPE_LEFT || $joinType == AST\Join::JOIN_TYPE_LEFTOUTER) ? ' LEFT JOIN ' : ' INNER JOIN ';
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
                     $quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform);
1032 1032
                     $quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform);
1033 1033
 
1034
-                    $conditions[] = $targetTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableAlias . '.' . $quotedSourceColumn;
1034
+                    $conditions[] = $targetTableAlias.'.'.$quotedTargetColumn.' = '.$joinTableAlias.'.'.$quotedSourceColumn;
1035 1035
                 }
1036 1036
 
1037 1037
                 // Apply remaining inheritance restrictions
@@ -1049,7 +1049,7 @@  discard block
 block discarded – undo
1049 1049
                 }
1050 1050
 
1051 1051
                 $targetTableJoin = [
1052
-                    'table' => $targetTableName . ' ' . $targetTableAlias,
1052
+                    'table' => $targetTableName.' '.$targetTableAlias,
1053 1053
                     'condition' => implode(' AND ', $conditions),
1054 1054
                 ];
1055 1055
                 break;
@@ -1059,22 +1059,22 @@  discard block
 block discarded – undo
1059 1059
         }
1060 1060
 
1061 1061
         // Handle WITH clause
1062
-        $withCondition = (null === $condExpr) ? '' : ('(' . $this->walkConditionalExpression($condExpr) . ')');
1062
+        $withCondition = (null === $condExpr) ? '' : ('('.$this->walkConditionalExpression($condExpr).')');
1063 1063
 
1064 1064
         if ($targetClass->isInheritanceTypeJoined()) {
1065 1065
             $ctiJoins = $this->_generateClassTableInheritanceJoins($targetClass, $joinedDqlAlias);
1066 1066
             // If we have WITH condition, we need to build nested joins for target class table and cti joins
1067 1067
             if ($withCondition) {
1068
-                $sql .= '(' . $targetTableJoin['table'] . $ctiJoins . ') ON ' . $targetTableJoin['condition'];
1068
+                $sql .= '('.$targetTableJoin['table'].$ctiJoins.') ON '.$targetTableJoin['condition'];
1069 1069
             } else {
1070
-                $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'] . $ctiJoins;
1070
+                $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'].$ctiJoins;
1071 1071
             }
1072 1072
         } else {
1073
-            $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'];
1073
+            $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'];
1074 1074
         }
1075 1075
 
1076 1076
         if ($withCondition) {
1077
-            $sql .= ' AND ' . $withCondition;
1077
+            $sql .= ' AND '.$withCondition;
1078 1078
         }
1079 1079
 
1080 1080
         // Apply the indexes
@@ -1107,7 +1107,7 @@  discard block
 block discarded – undo
1107 1107
             $orderByItems = array_merge($orderByItems, (array) $collectionOrderByItems);
1108 1108
         }
1109 1109
 
1110
-        return ' ORDER BY ' . implode(', ', $orderByItems);
1110
+        return ' ORDER BY '.implode(', ', $orderByItems);
1111 1111
     }
1112 1112
 
1113 1113
     /**
@@ -1124,10 +1124,10 @@  discard block
 block discarded – undo
1124 1124
         $this->orderedColumnsMap[$sql] = $type;
1125 1125
 
1126 1126
         if ($expr instanceof AST\Subselect) {
1127
-            return '(' . $sql . ') ' . $type;
1127
+            return '('.$sql.') '.$type;
1128 1128
         }
1129 1129
 
1130
-        return $sql . ' ' . $type;
1130
+        return $sql.' '.$type;
1131 1131
     }
1132 1132
 
1133 1133
     /**
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
      */
1136 1136
     public function walkHavingClause($havingClause)
1137 1137
     {
1138
-        return ' HAVING ' . $this->walkConditionalExpression($havingClause->conditionalExpression);
1138
+        return ' HAVING '.$this->walkConditionalExpression($havingClause->conditionalExpression);
1139 1139
     }
1140 1140
 
1141 1141
     /**
@@ -1158,7 +1158,7 @@  discard block
 block discarded – undo
1158 1158
                 $conditions = [];
1159 1159
 
1160 1160
                 if ($join->conditionalExpression) {
1161
-                    $conditions[] = '(' . $this->walkConditionalExpression($join->conditionalExpression) . ')';
1161
+                    $conditions[] = '('.$this->walkConditionalExpression($join->conditionalExpression).')';
1162 1162
                 }
1163 1163
 
1164 1164
                 $isUnconditionalJoin = empty($conditions);
@@ -1166,7 +1166,7 @@  discard block
 block discarded – undo
1166 1166
                     ? ' AND '
1167 1167
                     : ' ON ';
1168 1168
 
1169
-                $sql .= $this->generateRangeVariableDeclarationSQL($joinDeclaration, !$isUnconditionalJoin);
1169
+                $sql .= $this->generateRangeVariableDeclarationSQL($joinDeclaration, ! $isUnconditionalJoin);
1170 1170
 
1171 1171
                 // Apply remaining inheritance restrictions
1172 1172
                 $discrSql = $this->_generateDiscriminatorColumnConditionSQL([$dqlAlias]);
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
                 }
1184 1184
 
1185 1185
                 if ($conditions) {
1186
-                    $sql .= $condExprConjunction . implode(' AND ', $conditions);
1186
+                    $sql .= $condExprConjunction.implode(' AND ', $conditions);
1187 1187
                 }
1188 1188
 
1189 1189
                 break;
@@ -1213,7 +1213,7 @@  discard block
 block discarded – undo
1213 1213
             $scalarExpressions[] = $this->walkSimpleArithmeticExpression($scalarExpression);
1214 1214
         }
1215 1215
 
1216
-        $sql .= implode(', ', $scalarExpressions) . ')';
1216
+        $sql .= implode(', ', $scalarExpressions).')';
1217 1217
 
1218 1218
         return $sql;
1219 1219
     }
@@ -1235,7 +1235,7 @@  discard block
 block discarded – undo
1235 1235
             ? $this->conn->quote($nullIfExpression->secondExpression)
1236 1236
             : $this->walkSimpleArithmeticExpression($nullIfExpression->secondExpression);
1237 1237
 
1238
-        return 'NULLIF(' . $firstExpression . ', ' . $secondExpression . ')';
1238
+        return 'NULLIF('.$firstExpression.', '.$secondExpression.')';
1239 1239
     }
1240 1240
 
1241 1241
     /**
@@ -1250,11 +1250,11 @@  discard block
 block discarded – undo
1250 1250
         $sql = 'CASE';
1251 1251
 
1252 1252
         foreach ($generalCaseExpression->whenClauses as $whenClause) {
1253
-            $sql .= ' WHEN ' . $this->walkConditionalExpression($whenClause->caseConditionExpression);
1254
-            $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);
1253
+            $sql .= ' WHEN '.$this->walkConditionalExpression($whenClause->caseConditionExpression);
1254
+            $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);
1255 1255
         }
1256 1256
 
1257
-        $sql .= ' ELSE ' . $this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression) . ' END';
1257
+        $sql .= ' ELSE '.$this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression).' END';
1258 1258
 
1259 1259
         return $sql;
1260 1260
     }
@@ -1268,14 +1268,14 @@  discard block
 block discarded – undo
1268 1268
      */
1269 1269
     public function walkSimpleCaseExpression($simpleCaseExpression)
1270 1270
     {
1271
-        $sql = 'CASE ' . $this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);
1271
+        $sql = 'CASE '.$this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);
1272 1272
 
1273 1273
         foreach ($simpleCaseExpression->simpleWhenClauses as $simpleWhenClause) {
1274
-            $sql .= ' WHEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);
1275
-            $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);
1274
+            $sql .= ' WHEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);
1275
+            $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);
1276 1276
         }
1277 1277
 
1278
-        $sql .= ' ELSE ' . $this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression) . ' END';
1278
+        $sql .= ' ELSE '.$this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression).' END';
1279 1279
 
1280 1280
         return $sql;
1281 1281
     }
@@ -1309,14 +1309,14 @@  discard block
 block discarded – undo
1309 1309
                 $fieldMapping  = $class->fieldMappings[$fieldName];
1310 1310
                 $columnName    = $this->quoteStrategy->getColumnName($fieldName, $class, $this->platform);
1311 1311
                 $columnAlias   = $this->getSQLColumnAlias($fieldMapping['columnName']);
1312
-                $col           = $sqlTableAlias . '.' . $columnName;
1312
+                $col           = $sqlTableAlias.'.'.$columnName;
1313 1313
 
1314 1314
                 if (isset($fieldMapping['requireSQLConversion'])) {
1315 1315
                     $type = Type::getType($fieldMapping['type']);
1316 1316
                     $col  = $type->convertToPHPValueSQL($col, $this->conn->getDatabasePlatform());
1317 1317
                 }
1318 1318
 
1319
-                $sql .= $col . ' AS ' . $columnAlias;
1319
+                $sql .= $col.' AS '.$columnAlias;
1320 1320
 
1321 1321
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1322 1322
 
@@ -1341,7 +1341,7 @@  discard block
 block discarded – undo
1341 1341
                 $columnAlias = $this->getSQLColumnAlias('sclr');
1342 1342
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1343 1343
 
1344
-                $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;
1344
+                $sql .= $expr->dispatch($this).' AS '.$columnAlias;
1345 1345
 
1346 1346
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1347 1347
 
@@ -1355,7 +1355,7 @@  discard block
 block discarded – undo
1355 1355
                 $columnAlias = $this->getSQLColumnAlias('sclr');
1356 1356
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1357 1357
 
1358
-                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias;
1358
+                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias;
1359 1359
 
1360 1360
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1361 1361
 
@@ -1366,7 +1366,7 @@  discard block
 block discarded – undo
1366 1366
                 break;
1367 1367
 
1368 1368
             case ($expr instanceof AST\NewObjectExpression):
1369
-                $sql .= $this->walkNewObject($expr,$selectExpression->fieldIdentificationVariable);
1369
+                $sql .= $this->walkNewObject($expr, $selectExpression->fieldIdentificationVariable);
1370 1370
                 break;
1371 1371
 
1372 1372
             default:
@@ -1407,14 +1407,14 @@  discard block
 block discarded – undo
1407 1407
                     $columnAlias      = $this->getSQLColumnAlias($mapping['columnName']);
1408 1408
                     $quotedColumnName = $this->quoteStrategy->getColumnName($fieldName, $class, $this->platform);
1409 1409
 
1410
-                    $col = $sqlTableAlias . '.' . $quotedColumnName;
1410
+                    $col = $sqlTableAlias.'.'.$quotedColumnName;
1411 1411
 
1412 1412
                     if (isset($mapping['requireSQLConversion'])) {
1413 1413
                         $type = Type::getType($mapping['type']);
1414 1414
                         $col = $type->convertToPHPValueSQL($col, $this->platform);
1415 1415
                     }
1416 1416
 
1417
-                    $sqlParts[] = $col . ' AS '. $columnAlias;
1417
+                    $sqlParts[] = $col.' AS '.$columnAlias;
1418 1418
 
1419 1419
                     $this->scalarResultAliasMap[$resultAlias][] = $columnAlias;
1420 1420
 
@@ -1431,21 +1431,21 @@  discard block
 block discarded – undo
1431 1431
                         $sqlTableAlias = $this->getSQLTableAlias($subClass->getTableName(), $dqlAlias);
1432 1432
 
1433 1433
                         foreach ($subClass->fieldMappings as $fieldName => $mapping) {
1434
-                            if (isset($mapping['inherited']) || ($partialFieldSet && !in_array($fieldName, $partialFieldSet))) {
1434
+                            if (isset($mapping['inherited']) || ($partialFieldSet && ! in_array($fieldName, $partialFieldSet))) {
1435 1435
                                 continue;
1436 1436
                             }
1437 1437
 
1438 1438
                             $columnAlias      = $this->getSQLColumnAlias($mapping['columnName']);
1439 1439
                             $quotedColumnName = $this->quoteStrategy->getColumnName($fieldName, $subClass, $this->platform);
1440 1440
 
1441
-                            $col = $sqlTableAlias . '.' . $quotedColumnName;
1441
+                            $col = $sqlTableAlias.'.'.$quotedColumnName;
1442 1442
 
1443 1443
                             if (isset($mapping['requireSQLConversion'])) {
1444 1444
                                 $type = Type::getType($mapping['type']);
1445 1445
                                 $col = $type->convertToPHPValueSQL($col, $this->platform);
1446 1446
                             }
1447 1447
 
1448
-                            $sqlParts[] = $col . ' AS ' . $columnAlias;
1448
+                            $sqlParts[] = $col.' AS '.$columnAlias;
1449 1449
 
1450 1450
                             $this->scalarResultAliasMap[$resultAlias][] = $columnAlias;
1451 1451
 
@@ -1465,7 +1465,7 @@  discard block
 block discarded – undo
1465 1465
      */
1466 1466
     public function walkQuantifiedExpression($qExpr)
1467 1467
     {
1468
-        return ' ' . strtoupper($qExpr->type) . '(' . $this->walkSubselect($qExpr->subselect) . ')';
1468
+        return ' '.strtoupper($qExpr->type).'('.$this->walkSubselect($qExpr->subselect).')';
1469 1469
     }
1470 1470
 
1471 1471
     /**
@@ -1505,7 +1505,7 @@  discard block
 block discarded – undo
1505 1505
             $sqlParts[] = $this->walkIdentificationVariableDeclaration($subselectIdVarDecl);
1506 1506
         }
1507 1507
 
1508
-        return ' FROM ' . implode(', ', $sqlParts);
1508
+        return ' FROM '.implode(', ', $sqlParts);
1509 1509
     }
1510 1510
 
1511 1511
     /**
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
      */
1514 1514
     public function walkSimpleSelectClause($simpleSelectClause)
1515 1515
     {
1516
-        return 'SELECT' . ($simpleSelectClause->isDistinct ? ' DISTINCT' : '')
1516
+        return 'SELECT'.($simpleSelectClause->isDistinct ? ' DISTINCT' : '')
1517 1517
             . $this->walkSimpleSelectExpression($simpleSelectClause->simpleSelectExpression);
1518 1518
     }
1519 1519
 
@@ -1532,16 +1532,16 @@  discard block
 block discarded – undo
1532 1532
      * @param null|string               $newObjectResultAlias
1533 1533
      * @return string The SQL.
1534 1534
      */
1535
-    public function walkNewObject($newObjectExpression, $newObjectResultAlias=null)
1535
+    public function walkNewObject($newObjectExpression, $newObjectResultAlias = null)
1536 1536
     {
1537 1537
         $sqlSelectExpressions = [];
1538 1538
 
1539 1539
         $objOwner = $objOwnerIdx = null;
1540
-        if (!empty($this->newObjectStack)) {
1540
+        if ( ! empty($this->newObjectStack)) {
1541 1541
             [$objOwner, $objOwnerIdx] = end($this->newObjectStack);
1542 1542
             $objIndex = "$objOwner:$objOwnerIdx";
1543 1543
         } else {
1544
-            $objIndex = $newObjectResultAlias?:$this->newObjectCounter++;
1544
+            $objIndex = $newObjectResultAlias ?: $this->newObjectCounter++;
1545 1545
         }
1546 1546
 
1547 1547
         foreach ($newObjectExpression->args as $argIndex => $e) {
@@ -1558,7 +1558,7 @@  discard block
 block discarded – undo
1558 1558
                     break;
1559 1559
 
1560 1560
                 case ($e instanceof AST\Subselect):
1561
-                    $sqlSelectExpressions[] = '(' . $e->dispatch($this) . ') AS ' . $columnAlias;
1561
+                    $sqlSelectExpressions[] = '('.$e->dispatch($this).') AS '.$columnAlias;
1562 1562
                     break;
1563 1563
 
1564 1564
                 case ($e instanceof AST\PathExpression):
@@ -1567,7 +1567,7 @@  discard block
 block discarded – undo
1567 1567
                     $class     = $qComp['metadata'];
1568 1568
                     $fieldType = $class->fieldMappings[$e->field]['type'];
1569 1569
 
1570
-                    $sqlSelectExpressions[] = trim($e->dispatch($this)) . ' AS ' . $columnAlias;
1570
+                    $sqlSelectExpressions[] = trim($e->dispatch($this)).' AS '.$columnAlias;
1571 1571
                     break;
1572 1572
 
1573 1573
                 case ($e instanceof AST\Literal):
@@ -1581,11 +1581,11 @@  discard block
 block discarded – undo
1581 1581
                             break;
1582 1582
                     }
1583 1583
 
1584
-                    $sqlSelectExpressions[] = trim($e->dispatch($this)) . ' AS ' . $columnAlias;
1584
+                    $sqlSelectExpressions[] = trim($e->dispatch($this)).' AS '.$columnAlias;
1585 1585
                     break;
1586 1586
 
1587 1587
                 default:
1588
-                    $sqlSelectExpressions[] = trim($e->dispatch($this)) . ' AS ' . $columnAlias;
1588
+                    $sqlSelectExpressions[] = trim($e->dispatch($this)).' AS '.$columnAlias;
1589 1589
                     break;
1590 1590
             }
1591 1591
 
@@ -1622,10 +1622,10 @@  discard block
 block discarded – undo
1622 1622
             case ($expr instanceof AST\Subselect):
1623 1623
                 $alias = $simpleSelectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1624 1624
 
1625
-                $columnAlias = 'sclr' . $this->aliasCounter++;
1625
+                $columnAlias = 'sclr'.$this->aliasCounter++;
1626 1626
                 $this->scalarResultAliasMap[$alias] = $columnAlias;
1627 1627
 
1628
-                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias;
1628
+                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias;
1629 1629
                 break;
1630 1630
 
1631 1631
             case ($expr instanceof AST\Functions\FunctionNode):
@@ -1642,7 +1642,7 @@  discard block
 block discarded – undo
1642 1642
                 $columnAlias = $this->getSQLColumnAlias('sclr');
1643 1643
                 $this->scalarResultAliasMap[$alias] = $columnAlias;
1644 1644
 
1645
-                $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;
1645
+                $sql .= $expr->dispatch($this).' AS '.$columnAlias;
1646 1646
                 break;
1647 1647
 
1648 1648
             case ($expr instanceof AST\ParenthesisExpression):
@@ -1662,8 +1662,8 @@  discard block
 block discarded – undo
1662 1662
      */
1663 1663
     public function walkAggregateExpression($aggExpression)
1664 1664
     {
1665
-        return $aggExpression->functionName . '(' . ($aggExpression->isDistinct ? 'DISTINCT ' : '')
1666
-            . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression) . ')';
1665
+        return $aggExpression->functionName.'('.($aggExpression->isDistinct ? 'DISTINCT ' : '')
1666
+            . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression).')';
1667 1667
     }
1668 1668
 
1669 1669
     /**
@@ -1677,7 +1677,7 @@  discard block
 block discarded – undo
1677 1677
             $sqlParts[] = $this->walkGroupByItem($groupByItem);
1678 1678
         }
1679 1679
 
1680
-        return ' GROUP BY ' . implode(', ', $sqlParts);
1680
+        return ' GROUP BY '.implode(', ', $sqlParts);
1681 1681
     }
1682 1682
 
1683 1683
     /**
@@ -1734,7 +1734,7 @@  discard block
 block discarded – undo
1734 1734
     {
1735 1735
         $class     = $this->em->getClassMetadata($deleteClause->abstractSchemaName);
1736 1736
         $tableName = $class->getTableName();
1737
-        $sql       = 'DELETE FROM ' . $this->quoteStrategy->getTableName($class, $this->platform);
1737
+        $sql       = 'DELETE FROM '.$this->quoteStrategy->getTableName($class, $this->platform);
1738 1738
 
1739 1739
         $this->setSQLTableAlias($tableName, $tableName, $deleteClause->aliasIdentificationVariable);
1740 1740
         $this->rootAliases[] = $deleteClause->aliasIdentificationVariable;
@@ -1749,12 +1749,12 @@  discard block
 block discarded – undo
1749 1749
     {
1750 1750
         $class     = $this->em->getClassMetadata($updateClause->abstractSchemaName);
1751 1751
         $tableName = $class->getTableName();
1752
-        $sql       = 'UPDATE ' . $this->quoteStrategy->getTableName($class, $this->platform);
1752
+        $sql       = 'UPDATE '.$this->quoteStrategy->getTableName($class, $this->platform);
1753 1753
 
1754 1754
         $this->setSQLTableAlias($tableName, $tableName, $updateClause->aliasIdentificationVariable);
1755 1755
         $this->rootAliases[] = $updateClause->aliasIdentificationVariable;
1756 1756
 
1757
-        $sql .= ' SET ' . implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems));
1757
+        $sql .= ' SET '.implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems));
1758 1758
 
1759 1759
         return $sql;
1760 1760
     }
@@ -1767,7 +1767,7 @@  discard block
 block discarded – undo
1767 1767
         $useTableAliasesBefore = $this->useSqlTableAliases;
1768 1768
         $this->useSqlTableAliases = false;
1769 1769
 
1770
-        $sql      = $this->walkPathExpression($updateItem->pathExpression) . ' = ';
1770
+        $sql      = $this->walkPathExpression($updateItem->pathExpression).' = ';
1771 1771
         $newValue = $updateItem->newValue;
1772 1772
 
1773 1773
         switch (true) {
@@ -1810,7 +1810,7 @@  discard block
 block discarded – undo
1810 1810
 
1811 1811
             if (count($filterClauses)) {
1812 1812
                 if ($condSql) {
1813
-                    $condSql = '(' . $condSql . ') AND ';
1813
+                    $condSql = '('.$condSql.') AND ';
1814 1814
                 }
1815 1815
 
1816 1816
                 $condSql .= implode(' AND ', $filterClauses);
@@ -1818,11 +1818,11 @@  discard block
 block discarded – undo
1818 1818
         }
1819 1819
 
1820 1820
         if ($condSql) {
1821
-            return ' WHERE ' . (( ! $discrSql) ? $condSql : '(' . $condSql . ') AND ' . $discrSql);
1821
+            return ' WHERE '.(( ! $discrSql) ? $condSql : '('.$condSql.') AND '.$discrSql);
1822 1822
         }
1823 1823
 
1824 1824
         if ($discrSql) {
1825
-            return ' WHERE ' . $discrSql;
1825
+            return ' WHERE '.$discrSql;
1826 1826
         }
1827 1827
 
1828 1828
         return '';
@@ -1865,7 +1865,7 @@  discard block
 block discarded – undo
1865 1865
         // if only one ConditionalPrimary is defined
1866 1866
         return ( ! ($factor instanceof AST\ConditionalFactor))
1867 1867
             ? $this->walkConditionalPrimary($factor)
1868
-            : ($factor->not ? 'NOT ' : '') . $this->walkConditionalPrimary($factor->conditionalPrimary);
1868
+            : ($factor->not ? 'NOT ' : '').$this->walkConditionalPrimary($factor->conditionalPrimary);
1869 1869
     }
1870 1870
 
1871 1871
     /**
@@ -1880,7 +1880,7 @@  discard block
 block discarded – undo
1880 1880
         if ($primary->isConditionalExpression()) {
1881 1881
             $condExpr = $primary->conditionalExpression;
1882 1882
 
1883
-            return '(' . $this->walkConditionalExpression($condExpr) . ')';
1883
+            return '('.$this->walkConditionalExpression($condExpr).')';
1884 1884
         }
1885 1885
     }
1886 1886
 
@@ -1891,7 +1891,7 @@  discard block
 block discarded – undo
1891 1891
     {
1892 1892
         $sql = ($existsExpr->not) ? 'NOT ' : '';
1893 1893
 
1894
-        $sql .= 'EXISTS (' . $this->walkSubselect($existsExpr->subselect) . ')';
1894
+        $sql .= 'EXISTS ('.$this->walkSubselect($existsExpr->subselect).')';
1895 1895
 
1896 1896
         return $sql;
1897 1897
     }
@@ -1935,7 +1935,7 @@  discard block
 block discarded – undo
1935 1935
             $targetTableAlias = $this->getSQLTableAlias($targetClass->getTableName());
1936 1936
             $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
1937 1937
 
1938
-            $sql .= $this->quoteStrategy->getTableName($targetClass, $this->platform) . ' ' . $targetTableAlias . ' WHERE ';
1938
+            $sql .= $this->quoteStrategy->getTableName($targetClass, $this->platform).' '.$targetTableAlias.' WHERE ';
1939 1939
 
1940 1940
             $owningAssoc = $targetClass->associationMappings[$assoc['mappedBy']];
1941 1941
             $sqlParts    = [];
@@ -1943,7 +1943,7 @@  discard block
 block discarded – undo
1943 1943
             foreach ($owningAssoc['targetToSourceKeyColumns'] as $targetColumn => $sourceColumn) {
1944 1944
                 $targetColumn = $this->quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $this->platform);
1945 1945
 
1946
-                $sqlParts[] = $sourceTableAlias . '.' . $targetColumn . ' = ' . $targetTableAlias . '.' . $sourceColumn;
1946
+                $sqlParts[] = $sourceTableAlias.'.'.$targetColumn.' = '.$targetTableAlias.'.'.$sourceColumn;
1947 1947
             }
1948 1948
 
1949 1949
             foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
@@ -1951,7 +1951,7 @@  discard block
 block discarded – undo
1951 1951
                     $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1952 1952
                 }
1953 1953
 
1954
-                $sqlParts[] = $targetTableAlias . '.'  . $targetColumnName . ' = ' . $entitySql;
1954
+                $sqlParts[] = $targetTableAlias.'.'.$targetColumnName.' = '.$entitySql;
1955 1955
             }
1956 1956
 
1957 1957
             $sql .= implode(' AND ', $sqlParts);
@@ -1967,8 +1967,8 @@  discard block
 block discarded – undo
1967 1967
             $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
1968 1968
 
1969 1969
             // join to target table
1970
-            $sql .= $this->quoteStrategy->getJoinTableName($owningAssoc, $targetClass, $this->platform) . ' ' . $joinTableAlias
1971
-                . ' INNER JOIN ' . $this->quoteStrategy->getTableName($targetClass, $this->platform) . ' ' . $targetTableAlias . ' ON ';
1970
+            $sql .= $this->quoteStrategy->getJoinTableName($owningAssoc, $targetClass, $this->platform).' '.$joinTableAlias
1971
+                . ' INNER JOIN '.$this->quoteStrategy->getTableName($targetClass, $this->platform).' '.$targetTableAlias.' ON ';
1972 1972
 
1973 1973
             // join conditions
1974 1974
             $joinColumns  = $assoc['isOwningSide'] ? $joinTable['inverseJoinColumns'] : $joinTable['joinColumns'];
@@ -1977,7 +1977,7 @@  discard block
 block discarded – undo
1977 1977
             foreach ($joinColumns as $joinColumn) {
1978 1978
                 $targetColumn = $this->quoteStrategy->getColumnName($targetClass->fieldNames[$joinColumn['referencedColumnName']], $targetClass, $this->platform);
1979 1979
 
1980
-                $joinSqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $targetTableAlias . '.' . $targetColumn;
1980
+                $joinSqlParts[] = $joinTableAlias.'.'.$joinColumn['name'].' = '.$targetTableAlias.'.'.$targetColumn;
1981 1981
             }
1982 1982
 
1983 1983
             $sql .= implode(' AND ', $joinSqlParts);
@@ -1989,7 +1989,7 @@  discard block
 block discarded – undo
1989 1989
             foreach ($joinColumns as $joinColumn) {
1990 1990
                 $targetColumn = $this->quoteStrategy->getColumnName($class->fieldNames[$joinColumn['referencedColumnName']], $class, $this->platform);
1991 1991
 
1992
-                $sqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $sourceTableAlias . '.' . $targetColumn;
1992
+                $sqlParts[] = $joinTableAlias.'.'.$joinColumn['name'].' = '.$sourceTableAlias.'.'.$targetColumn;
1993 1993
             }
1994 1994
 
1995 1995
             foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
@@ -1997,13 +1997,13 @@  discard block
 block discarded – undo
1997 1997
                     $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1998 1998
                 }
1999 1999
 
2000
-                $sqlParts[] = $targetTableAlias . '.' . $targetColumnName . ' IN (' . $entitySql . ')';
2000
+                $sqlParts[] = $targetTableAlias.'.'.$targetColumnName.' IN ('.$entitySql.')';
2001 2001
             }
2002 2002
 
2003 2003
             $sql .= implode(' AND ', $sqlParts);
2004 2004
         }
2005 2005
 
2006
-        return $sql . ')';
2006
+        return $sql.')';
2007 2007
     }
2008 2008
 
2009 2009
     /**
@@ -2014,7 +2014,7 @@  discard block
 block discarded – undo
2014 2014
         $sizeFunc = new AST\Functions\SizeFunction('size');
2015 2015
         $sizeFunc->collectionPathExpression = $emptyCollCompExpr->expression;
2016 2016
 
2017
-        return $sizeFunc->getSql($this) . ($emptyCollCompExpr->not ? ' > 0' : ' = 0');
2017
+        return $sizeFunc->getSql($this).($emptyCollCompExpr->not ? ' > 0' : ' = 0');
2018 2018
     }
2019 2019
 
2020 2020
     /**
@@ -2023,19 +2023,19 @@  discard block
 block discarded – undo
2023 2023
     public function walkNullComparisonExpression($nullCompExpr)
2024 2024
     {
2025 2025
         $expression = $nullCompExpr->expression;
2026
-        $comparison = ' IS' . ($nullCompExpr->not ? ' NOT' : '') . ' NULL';
2026
+        $comparison = ' IS'.($nullCompExpr->not ? ' NOT' : '').' NULL';
2027 2027
 
2028 2028
         // Handle ResultVariable
2029 2029
         if (is_string($expression) && isset($this->queryComponents[$expression]['resultVariable'])) {
2030
-            return $this->walkResultVariable($expression) . $comparison;
2030
+            return $this->walkResultVariable($expression).$comparison;
2031 2031
         }
2032 2032
 
2033 2033
         // Handle InputParameter mapping inclusion to ParserResult
2034 2034
         if ($expression instanceof AST\InputParameter) {
2035
-            return $this->walkInputParameter($expression) . $comparison;
2035
+            return $this->walkInputParameter($expression).$comparison;
2036 2036
         }
2037 2037
 
2038
-        return $expression->dispatch($this) . $comparison;
2038
+        return $expression->dispatch($this).$comparison;
2039 2039
     }
2040 2040
 
2041 2041
     /**
@@ -2043,7 +2043,7 @@  discard block
 block discarded – undo
2043 2043
      */
2044 2044
     public function walkInExpression($inExpr)
2045 2045
     {
2046
-        $sql = $this->walkArithmeticExpression($inExpr->expression) . ($inExpr->not ? ' NOT' : '') . ' IN (';
2046
+        $sql = $this->walkArithmeticExpression($inExpr->expression).($inExpr->not ? ' NOT' : '').' IN (';
2047 2047
 
2048 2048
         $sql .= ($inExpr->subselect)
2049 2049
             ? $this->walkSubselect($inExpr->subselect)
@@ -2070,10 +2070,10 @@  discard block
 block discarded – undo
2070 2070
         }
2071 2071
 
2072 2072
         if ($this->useSqlTableAliases) {
2073
-            $sql .= $this->getSQLTableAlias($discrClass->getTableName(), $dqlAlias) . '.';
2073
+            $sql .= $this->getSQLTableAlias($discrClass->getTableName(), $dqlAlias).'.';
2074 2074
         }
2075 2075
 
2076
-        $sql .= $class->discriminatorColumn['name'] . ($instanceOfExpr->not ? ' NOT IN ' : ' IN ');
2076
+        $sql .= $class->discriminatorColumn['name'].($instanceOfExpr->not ? ' NOT IN ' : ' IN ');
2077 2077
         $sql .= $this->getChildDiscriminatorsFromClassMetadata($discrClass, $instanceOfExpr);
2078 2078
 
2079 2079
         return $sql;
@@ -2120,8 +2120,8 @@  discard block
 block discarded – undo
2120 2120
             $sql .= ' NOT';
2121 2121
         }
2122 2122
 
2123
-        $sql .= ' BETWEEN ' . $this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)
2124
-            . ' AND ' . $this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);
2123
+        $sql .= ' BETWEEN '.$this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)
2124
+            . ' AND '.$this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);
2125 2125
 
2126 2126
         return $sql;
2127 2127
     }
@@ -2136,7 +2136,7 @@  discard block
 block discarded – undo
2136 2136
             ? $this->walkResultVariable($stringExpr)
2137 2137
             : $stringExpr->dispatch($this);
2138 2138
 
2139
-        $sql = $leftExpr . ($likeExpr->not ? ' NOT' : '') . ' LIKE ';
2139
+        $sql = $leftExpr.($likeExpr->not ? ' NOT' : '').' LIKE ';
2140 2140
 
2141 2141
         if ($likeExpr->stringPattern instanceof AST\InputParameter) {
2142 2142
             $sql .= $this->walkInputParameter($likeExpr->stringPattern);
@@ -2149,7 +2149,7 @@  discard block
 block discarded – undo
2149 2149
         }
2150 2150
 
2151 2151
         if ($likeExpr->escapeChar) {
2152
-            $sql .= ' ESCAPE ' . $this->walkLiteral($likeExpr->escapeChar);
2152
+            $sql .= ' ESCAPE '.$this->walkLiteral($likeExpr->escapeChar);
2153 2153
         }
2154 2154
 
2155 2155
         return $sql;
@@ -2176,7 +2176,7 @@  discard block
 block discarded – undo
2176 2176
             ? $leftExpr->dispatch($this)
2177 2177
             : (is_numeric($leftExpr) ? $leftExpr : $this->conn->quote($leftExpr));
2178 2178
 
2179
-        $sql .= ' ' . $compExpr->operator . ' ';
2179
+        $sql .= ' '.$compExpr->operator.' ';
2180 2180
 
2181 2181
         $sql .= ($rightExpr instanceof AST\Node)
2182 2182
             ? $rightExpr->dispatch($this)
@@ -2208,7 +2208,7 @@  discard block
 block discarded – undo
2208 2208
     {
2209 2209
         return ($arithmeticExpr->isSimpleArithmeticExpression())
2210 2210
             ? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
2211
-            : '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
2211
+            : '('.$this->walkSubselect($arithmeticExpr->subselect).')';
2212 2212
     }
2213 2213
 
2214 2214
     /**
@@ -2262,7 +2262,7 @@  discard block
 block discarded – undo
2262 2262
 
2263 2263
         $sign = $factor->isNegativeSigned() ? '-' : ($factor->isPositiveSigned() ? '+' : '');
2264 2264
 
2265
-        return $sign . $this->walkArithmeticPrimary($factor->arithmeticPrimary);
2265
+        return $sign.$this->walkArithmeticPrimary($factor->arithmeticPrimary);
2266 2266
     }
2267 2267
 
2268 2268
     /**
@@ -2275,7 +2275,7 @@  discard block
 block discarded – undo
2275 2275
     public function walkArithmeticPrimary($primary)
2276 2276
     {
2277 2277
         if ($primary instanceof AST\SimpleArithmeticExpression) {
2278
-            return '(' . $this->walkSimpleArithmeticExpression($primary) . ')';
2278
+            return '('.$this->walkSimpleArithmeticExpression($primary).')';
2279 2279
         }
2280 2280
 
2281 2281
         if ($primary instanceof AST\Node) {
@@ -2339,6 +2339,6 @@  discard block
 block discarded – undo
2339 2339
             $sqlParameterList[] = $this->conn->quote($dis);
2340 2340
         }
2341 2341
 
2342
-        return '(' . implode(', ', $sqlParameterList) . ')';
2342
+        return '('.implode(', ', $sqlParameterList).')';
2343 2343
     }
2344 2344
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             $class->reflFields[$fieldName]->setValue($entity, $value);
200 200
             $this->_uow->setOriginalEntityProperty($oid, $fieldName, $value);
201 201
 
202
-            $this->initializedCollections[$oid . $fieldName] = $value;
202
+            $this->initializedCollections[$oid.$fieldName] = $value;
203 203
         } else if (
204 204
             isset($this->_hints[Query::HINT_REFRESH]) ||
205 205
             isset($this->_hints['fetched'][$parentDqlAlias][$fieldName]) &&
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
             $value->setInitialized(true);
211 211
             $value->unwrap()->clear();
212 212
 
213
-            $this->initializedCollections[$oid . $fieldName] = $value;
213
+            $this->initializedCollections[$oid.$fieldName] = $value;
214 214
         } else {
215 215
             // Is already PersistentCollection, and DON'T REFRESH or FETCH-JOIN!
216
-            $this->existingCollections[$oid . $fieldName] = $value;
216
+            $this->existingCollections[$oid.$fieldName] = $value;
217 217
         }
218 218
 
219 219
         return $value;
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
             $idHash = '';
288 288
 
289 289
             foreach ($class->identifier as $fieldName) {
290
-                $idHash .= ' ' . (isset($class->associationMappings[$fieldName])
290
+                $idHash .= ' '.(isset($class->associationMappings[$fieldName])
291 291
                     ? $data[$class->associationMappings[$fieldName]['joinColumns'][0]['name']]
292 292
                     : $data[$fieldName]);
293 293
             }
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
                 $parentAlias = $this->_rsm->parentAliasMap[$dqlAlias];
344 344
                 // we need the $path to save into the identifier map which entities were already
345 345
                 // seen for this parent-child relationship
346
-                $path = $parentAlias . '.' . $dqlAlias;
346
+                $path = $parentAlias.'.'.$dqlAlias;
347 347
 
348 348
                 // We have a RIGHT JOIN result here. Doctrine cannot hydrate RIGHT JOIN Object-Graphs
349 349
                 if ( ! isset($nonemptyComponents[$parentAlias])) {
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
                     $reflFieldValue = $reflField->getValue($parentObject);
384 384
 
385 385
                     if (isset($nonemptyComponents[$dqlAlias])) {
386
-                        $collKey = $oid . $relationField;
386
+                        $collKey = $oid.$relationField;
387 387
                         if (isset($this->initializedCollections[$collKey])) {
388 388
                             $reflFieldValue = $this->initializedCollections[$collKey];
389 389
                         } else if ( ! isset($this->existingCollections[$collKey])) {
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
                     // PATH B: Single-valued association
432 432
                     $reflFieldValue = $reflField->getValue($parentObject);
433 433
 
434
-                    if ( ! $reflFieldValue || isset($this->_hints[Query::HINT_REFRESH]) || ($reflFieldValue instanceof Proxy && !$reflFieldValue->__isInitialized__)) {
434
+                    if ( ! $reflFieldValue || isset($this->_hints[Query::HINT_REFRESH]) || ($reflFieldValue instanceof Proxy && ! $reflFieldValue->__isInitialized__)) {
435 435
                         // we only need to take action if this value is null,
436 436
                         // we refresh the entity or its an uninitialized proxy.
437 437
                         if (isset($nonemptyComponents[$dqlAlias])) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
                 $entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0;
477 477
 
478 478
                 // if this row has a NULL value for the root result id then make it a null result.
479
-                if ( ! isset($nonemptyComponents[$dqlAlias]) ) {
479
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
480 480
                     if ($this->_rsm->isMixed) {
481 481
                         $result[] = [$entityKey => null];
482 482
                     } else {
@@ -532,13 +532,13 @@  discard block
 block discarded – undo
532 532
             }
533 533
         }
534 534
 
535
-        if ( ! isset($resultKey) ) {
535
+        if ( ! isset($resultKey)) {
536 536
             $this->resultCounter++;
537 537
         }
538 538
 
539 539
         // Append scalar values to mixed result sets
540 540
         if (isset($rowData['scalars'])) {
541
-            if ( ! isset($resultKey) ) {
541
+            if ( ! isset($resultKey)) {
542 542
                 $resultKey = (isset($this->_rsm->indexByMap['scalars']))
543 543
                     ? $row[$this->_rsm->indexByMap['scalars']]
544 544
                     : $this->resultCounter - 1;
@@ -551,16 +551,16 @@  discard block
 block discarded – undo
551 551
 
552 552
         // Append new object to mixed result sets
553 553
         if (isset($rowData['newObjects'])) {
554
-            if ( ! isset($resultKey) ) {
554
+            if ( ! isset($resultKey)) {
555 555
                 $resultKey = $this->resultCounter - 1;
556 556
             }
557 557
 
558
-            $scalarCount = (isset($rowData['scalars'])? count($rowData['scalars']): 0);
558
+            $scalarCount = (isset($rowData['scalars']) ? count($rowData['scalars']) : 0);
559 559
 
560 560
             foreach ($rowData['newObjects'] as $objIndex => $newObject) {
561
-                $obj    = $newObject['obj'];
561
+                $obj = $newObject['obj'];
562 562
 
563
-                if ($scalarCount == 0 && count($rowData['newObjects']) == 1 ) {
563
+                if ($scalarCount == 0 && count($rowData['newObjects']) == 1) {
564 564
                     $result[$resultKey] = $obj;
565 565
 
566 566
                     continue;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
                 // It's a joined result
109 109
 
110 110
                 $parent = $this->_rsm->parentAliasMap[$dqlAlias];
111
-                $path   = $parent . '.' . $dqlAlias;
111
+                $path   = $parent.'.'.$dqlAlias;
112 112
 
113 113
                 // missing parent data, skipping as RIGHT JOIN hydration is not supported.
114
-                if ( ! isset($nonemptyComponents[$parent]) ) {
114
+                if ( ! isset($nonemptyComponents[$parent])) {
115 115
                     continue;
116 116
                 }
117 117
 
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
                 if ($this->_rsm->isMixed && isset($this->_rootAliases[$parent])) {
121 121
                     $first = reset($this->_resultPointers);
122 122
                     // TODO: Exception if $key === null ?
123
-                    $baseElement =& $this->_resultPointers[$parent][key($first)];
123
+                    $baseElement = & $this->_resultPointers[$parent][key($first)];
124 124
                 } else if (isset($this->_resultPointers[$parent])) {
125
-                    $baseElement =& $this->_resultPointers[$parent];
125
+                    $baseElement = & $this->_resultPointers[$parent];
126 126
                 } else {
127 127
                     unset($this->_resultPointers[$dqlAlias]); // Ticket #1228
128 128
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     }
174 174
                 }
175 175
 
176
-                $coll =& $baseElement[$relationAlias];
176
+                $coll = & $baseElement[$relationAlias];
177 177
 
178 178
                 if (is_array($coll)) {
179 179
                     $this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne);
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                 $entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0;
186 186
 
187 187
                 // if this row has a NULL value for the root result id then make it a null result.
188
-                if ( ! isset($nonemptyComponents[$dqlAlias]) ) {
188
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
189 189
                     $result[] = $this->_rsm->isMixed
190 190
                         ? [$entityKey => null]
191 191
                         : null;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                 $resultKey = $this->_resultCounter - 1;
247 247
             }
248 248
 
249
-            $scalarCount = (isset($rowData['scalars'])? count($rowData['scalars']): 0);
249
+            $scalarCount = (isset($rowData['scalars']) ? count($rowData['scalars']) : 0);
250 250
 
251 251
             foreach ($rowData['newObjects'] as $objIndex => $newObject) {
252 252
                 $args   = $newObject['args'];
@@ -283,13 +283,13 @@  discard block
 block discarded – undo
283 283
         }
284 284
 
285 285
         if ($oneToOne) {
286
-            $this->_resultPointers[$dqlAlias] =& $coll;
286
+            $this->_resultPointers[$dqlAlias] = & $coll;
287 287
 
288 288
             return;
289 289
         }
290 290
 
291 291
         if ($index !== false) {
292
-            $this->_resultPointers[$dqlAlias] =& $coll[$index];
292
+            $this->_resultPointers[$dqlAlias] = & $coll[$index];
293 293
 
294 294
             return;
295 295
         }
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         }
300 300
 
301 301
         end($coll);
302
-        $this->_resultPointers[$dqlAlias] =& $coll[key($coll)];
302
+        $this->_resultPointers[$dqlAlias] = & $coll[key($coll)];
303 303
 
304 304
         return;
305 305
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/NewOperatorTest.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -742,9 +742,9 @@  discard block
 block discarded – undo
742 742
         $this->assertEquals($this->fixtures[1]->address->country, $result[1][1]->country);
743 743
         $this->assertEquals($this->fixtures[2]->address->country, $result[2][1]->country);
744 744
 
745
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['status']);
746
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['status']);
747
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['status']);
745
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['status']);
746
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['status']);
747
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['status']);
748 748
     }
749 749
 
750 750
     public function testShouldSupportMultipleNewOperatorsAndSingleScalarWithAliases()
@@ -799,9 +799,9 @@  discard block
 block discarded – undo
799 799
         $this->assertEquals($this->fixtures[1]->address->country, $result[1]['cmsAddress']->country);
800 800
         $this->assertEquals($this->fixtures[2]->address->country, $result[2]['cmsAddress']->country);
801 801
 
802
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['cmsUserStatus']);
803
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['cmsUserStatus']);
804
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['cmsUserStatus']);
802
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['cmsUserStatus']);
803
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['cmsUserStatus']);
804
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['cmsUserStatus']);
805 805
     }
806 806
 
807 807
     public function testShouldSupportMultipleNewOperatorsAndSingleScalarWithAndWithoutAliases()
@@ -856,9 +856,9 @@  discard block
 block discarded – undo
856 856
         $this->assertEquals($this->fixtures[1]->address->country, $result[1][0]->country);
857 857
         $this->assertEquals($this->fixtures[2]->address->country, $result[2][0]->country);
858 858
 
859
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['status']);
860
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['status']);
861
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['status']);
859
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['status']);
860
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['status']);
861
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['status']);
862 862
     }
863 863
 
864 864
     public function testShouldSupportMultipleNewOperatorsAndMultipleScalars()
@@ -914,13 +914,13 @@  discard block
 block discarded – undo
914 914
         $this->assertEquals($this->fixtures[1]->address->country, $result[1][1]->country);
915 915
         $this->assertEquals($this->fixtures[2]->address->country, $result[2][1]->country);
916 916
 
917
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['status']);
918
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['status']);
919
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['status']);
917
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['status']);
918
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['status']);
919
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['status']);
920 920
 
921
-        $this->assertEquals($this->fixtures[0]->username,$result[0]['username']);
922
-        $this->assertEquals($this->fixtures[1]->username,$result[1]['username']);
923
-        $this->assertEquals($this->fixtures[2]->username,$result[2]['username']);
921
+        $this->assertEquals($this->fixtures[0]->username, $result[0]['username']);
922
+        $this->assertEquals($this->fixtures[1]->username, $result[1]['username']);
923
+        $this->assertEquals($this->fixtures[2]->username, $result[2]['username']);
924 924
     }
925 925
 
926 926
     public function testShouldSupportMultipleNewOperatorsAndMultipleScalarsWithAliases()
@@ -976,13 +976,13 @@  discard block
 block discarded – undo
976 976
         $this->assertEquals($this->fixtures[1]->address->country, $result[1]['cmsAddress']->country);
977 977
         $this->assertEquals($this->fixtures[2]->address->country, $result[2]['cmsAddress']->country);
978 978
 
979
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['cmsUserStatus']);
980
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['cmsUserStatus']);
981
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['cmsUserStatus']);
979
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['cmsUserStatus']);
980
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['cmsUserStatus']);
981
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['cmsUserStatus']);
982 982
 
983
-        $this->assertEquals($this->fixtures[0]->username,$result[0]['cmsUserUsername']);
984
-        $this->assertEquals($this->fixtures[1]->username,$result[1]['cmsUserUsername']);
985
-        $this->assertEquals($this->fixtures[2]->username,$result[2]['cmsUserUsername']);
983
+        $this->assertEquals($this->fixtures[0]->username, $result[0]['cmsUserUsername']);
984
+        $this->assertEquals($this->fixtures[1]->username, $result[1]['cmsUserUsername']);
985
+        $this->assertEquals($this->fixtures[2]->username, $result[2]['cmsUserUsername']);
986 986
     }
987 987
 
988 988
     public function testShouldSupportMultipleNewOperatorsAndMultipleScalarsWithAndWithoutAliases()
@@ -1038,13 +1038,13 @@  discard block
 block discarded – undo
1038 1038
         $this->assertEquals($this->fixtures[1]->address->country, $result[1][0]->country);
1039 1039
         $this->assertEquals($this->fixtures[2]->address->country, $result[2][0]->country);
1040 1040
 
1041
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['status']);
1042
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['status']);
1043
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['status']);
1041
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['status']);
1042
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['status']);
1043
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['status']);
1044 1044
 
1045
-        $this->assertEquals($this->fixtures[0]->username,$result[0]['cmsUserUsername']);
1046
-        $this->assertEquals($this->fixtures[1]->username,$result[1]['cmsUserUsername']);
1047
-        $this->assertEquals($this->fixtures[2]->username,$result[2]['cmsUserUsername']);
1045
+        $this->assertEquals($this->fixtures[0]->username, $result[0]['cmsUserUsername']);
1046
+        $this->assertEquals($this->fixtures[1]->username, $result[1]['cmsUserUsername']);
1047
+        $this->assertEquals($this->fixtures[2]->username, $result[2]['cmsUserUsername']);
1048 1048
     }
1049 1049
 
1050 1050
     /**
@@ -1143,18 +1143,18 @@  discard block
 block discarded – undo
1143 1143
         $this->assertEquals($this->fixtures[1]->address->country, $result[1]['user']->address->country);
1144 1144
         $this->assertEquals($this->fixtures[2]->address->country, $result[2]['user']->address->country);
1145 1145
 
1146
-        $this->assertEquals($this->fixtures[0]->status,$result[0]['status']);
1147
-        $this->assertEquals($this->fixtures[1]->status,$result[1]['status']);
1148
-        $this->assertEquals($this->fixtures[2]->status,$result[2]['status']);
1146
+        $this->assertEquals($this->fixtures[0]->status, $result[0]['status']);
1147
+        $this->assertEquals($this->fixtures[1]->status, $result[1]['status']);
1148
+        $this->assertEquals($this->fixtures[2]->status, $result[2]['status']);
1149 1149
 
1150
-        $this->assertEquals($this->fixtures[0]->username,$result[0]['cmsUserUsername']);
1151
-        $this->assertEquals($this->fixtures[1]->username,$result[1]['cmsUserUsername']);
1152
-        $this->assertEquals($this->fixtures[2]->username,$result[2]['cmsUserUsername']);
1150
+        $this->assertEquals($this->fixtures[0]->username, $result[0]['cmsUserUsername']);
1151
+        $this->assertEquals($this->fixtures[1]->username, $result[1]['cmsUserUsername']);
1152
+        $this->assertEquals($this->fixtures[2]->username, $result[2]['cmsUserUsername']);
1153 1153
     }
1154 1154
 
1155 1155
     private function dumpResultSetMapping(Query $query)
1156 1156
     {
1157
-        $rsm = (\Closure::bind(function ($q) {
1157
+        $rsm = (\Closure::bind(function($q) {
1158 1158
             return $q->getResultSetMapping();
1159 1159
         }, null, Query::class))($query);
1160 1160
         echo json_encode(get_object_vars($rsm), JSON_PRETTY_PRINT);
Please login to merge, or discard this patch.