@@ -73,7 +73,7 @@ discard block  | 
                                                    ||
| 73 | 73 | // only enable association-caching when the target has already been  | 
                                                        
| 74 | 74 | // given caching settings  | 
                                                        
| 75 | 75 |          foreach ($metadata->getPropertiesIterator() as $property) { | 
                                                        
| 76 | -            if (! ($property instanceof AssociationMetadata)) { | 
                                                        |
| 76 | +            if ( ! ($property instanceof AssociationMetadata)) { | 
                                                        |
| 77 | 77 | continue;  | 
                                                        
| 78 | 78 | }  | 
                                                        
| 79 | 79 | |
@@ -83,7 +83,7 @@ discard block  | 
                                                    ||
| 83 | 83 | |
| 84 | 84 |              if ($this->isVisited($targetMetadata)) { | 
                                                        
| 85 | 85 |                  $region        = sprintf('%s__%s', $region, $property->getName()); | 
                                                        
| 86 | - $cacheMetadata = new CacheMetadata(CacheUsage::NONSTRICT_READ_WRITE, $region);  | 
                                                        |
| 86 | + $cacheMetadata = new CacheMetadata(CacheUsage::NONSTRICT_READ_WRITE, $region);  | 
                                                        |
| 87 | 87 | |
| 88 | 88 | $property->setCache($cacheMetadata);  | 
                                                        
| 89 | 89 | }  | 
                                                        
@@ -48,7 +48,7 @@ discard block  | 
                                                    ||
| 48 | 48 | self::assertEquals(  | 
                                                        
| 49 | 49 | ['integer', 'string'],  | 
                                                        
| 50 | 50 | array_map(  | 
                                                        
| 51 | -                static function (Type $type) : string { | 
                                                        |
| 51 | +                static function(Type $type) : string { | 
                                                        |
| 52 | 52 | return $type->getName();  | 
                                                        
| 53 | 53 | },  | 
                                                        
| 54 | 54 | $types  | 
                                                        
@@ -70,7 +70,7 @@ discard block  | 
                                                    ||
| 70 | 70 | self::assertEquals(  | 
                                                        
| 71 | 71 | ['integer', 'string'],  | 
                                                        
| 72 | 72 | array_map(  | 
                                                        
| 73 | -                static function (Type $type) : string { | 
                                                        |
| 73 | +                static function(Type $type) : string { | 
                                                        |
| 74 | 74 | return $type->getName();  | 
                                                        
| 75 | 75 | },  | 
                                                        
| 76 | 76 | $types  | 
                                                        
@@ -121,7 +121,7 @@ discard block  | 
                                                    ||
| 121 | 121 | $classMetadata = $this->em->getClassMetadata($class);  | 
                                                        
| 122 | 122 | $platform = $this->em->getConnection()->getDatabasePlatform();  | 
                                                        
| 123 | 123 | |
| 124 | -        if (! $this->isInheritanceSupported($classMetadata)) { | 
                                                        |
| 124 | +        if ( ! $this->isInheritanceSupported($classMetadata)) { | 
                                                        |
| 125 | 125 | throw new InvalidArgumentException(  | 
                                                        
| 126 | 126 | 'ResultSetMapping builder does not currently support your inheritance scheme.'  | 
                                                        
| 127 | 127 | );  | 
                                                        
@@ -196,7 +196,7 @@ discard block  | 
                                                    ||
| 196 | 196 |      { | 
                                                        
| 197 | 197 |          switch ($mode) { | 
                                                        
| 198 | 198 | case self::COLUMN_RENAMING_INCREMENT:  | 
                                                        
| 199 | - return $columnName . $this->sqlCounter++;  | 
                                                        |
| 199 | + return $columnName.$this->sqlCounter++;  | 
                                                        |
| 200 | 200 | case self::COLUMN_RENAMING_CUSTOM:  | 
                                                        
| 201 | 201 | return $customRenameColumns[$columnName] ?? $columnName;  | 
                                                        
| 202 | 202 | case self::COLUMN_RENAMING_NONE:  | 
                                                        
@@ -226,7 +226,7 @@ discard block  | 
                                                    ||
| 226 | 226 | $sql .= ', ';  | 
                                                        
| 227 | 227 | }  | 
                                                        
| 228 | 228 | |
| 229 | - $sql .= $tableAlias . '.';  | 
                                                        |
| 229 | + $sql .= $tableAlias.'.';  | 
                                                        |
| 230 | 230 | |
| 231 | 231 |              if (isset($this->fieldMappings[$columnName])) { | 
                                                        
| 232 | 232 | $class = $this->em->getClassMetadata($this->declaringClasses[$columnName]);  | 
                                                        
@@ -238,7 +238,7 @@ discard block  | 
                                                    ||
| 238 | 238 | $sql .= $this->discriminatorColumns[$dqlAlias];  | 
                                                        
| 239 | 239 | }  | 
                                                        
| 240 | 240 | |
| 241 | - $sql .= ' AS ' . $columnName;  | 
                                                        |
| 241 | + $sql .= ' AS '.$columnName;  | 
                                                        |
| 242 | 242 | }  | 
                                                        
| 243 | 243 | |
| 244 | 244 | return $sql;  | 
                                                        
@@ -23,7 +23,7 @@ discard block  | 
                                                    ||
| 23 | 23 | */  | 
                                                        
| 24 | 24 | public static function pathRequired()  | 
                                                        
| 25 | 25 |      { | 
                                                        
| 26 | -        return new self('Specifying the paths to your entities is required ' . | 
                                                        |
| 26 | +        return new self('Specifying the paths to your entities is required '. | 
                                                        |
| 27 | 27 | 'in the AnnotationDriver to retrieve all class names.');  | 
                                                        
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |
@@ -213,7 +213,7 @@ discard block  | 
                                                    ||
| 213 | 213 | */  | 
                                                        
| 214 | 214 | public static function missingQueryMapping($entity, $queryName)  | 
                                                        
| 215 | 215 |      { | 
                                                        
| 216 | -        return new self('Query named "' . $queryName . '" in "' . $entity . ' requires a result class or result set mapping.'); | 
                                                        |
| 216 | +        return new self('Query named "'.$queryName.'" in "'.$entity.' requires a result class or result set mapping.'); | 
                                                        |
| 217 | 217 | }  | 
                                                        
| 218 | 218 | |
| 219 | 219 | /**  | 
                                                        
@@ -224,7 +224,7 @@ discard block  | 
                                                    ||
| 224 | 224 | */  | 
                                                        
| 225 | 225 | public static function missingResultSetMappingEntity($entity, $resultName)  | 
                                                        
| 226 | 226 |      { | 
                                                        
| 227 | -        return new self('Result set mapping named "' . $resultName . '" in "' . $entity . ' requires a entity class name.'); | 
                                                        |
| 227 | +        return new self('Result set mapping named "'.$resultName.'" in "'.$entity.' requires a entity class name.'); | 
                                                        |
| 228 | 228 | }  | 
                                                        
| 229 | 229 | |
| 230 | 230 | /**  | 
                                                        
@@ -235,7 +235,7 @@ discard block  | 
                                                    ||
| 235 | 235 | */  | 
                                                        
| 236 | 236 | public static function missingResultSetMappingFieldName($entity, $resultName)  | 
                                                        
| 237 | 237 |      { | 
                                                        
| 238 | -        return new self('Result set mapping named "' . $resultName . '" in "' . $entity . ' requires a field name.'); | 
                                                        |
| 238 | +        return new self('Result set mapping named "'.$resultName.'" in "'.$entity.' requires a field name.'); | 
                                                        |
| 239 | 239 | }  | 
                                                        
| 240 | 240 | |
| 241 | 241 | /**  | 
                                                        
@@ -282,8 +282,8 @@ discard block  | 
                                                    ||
| 282 | 282 |      { | 
                                                        
| 283 | 283 |          $message = sprintf("The mapping of field '%s' is invalid: The option '%s' is required.", $field, $expectedOption); | 
                                                        
| 284 | 284 | |
| 285 | -        if (! empty($hint)) { | 
                                                        |
| 286 | - $message .= ' (Hint: ' . $hint . ')';  | 
                                                        |
| 285 | +        if ( ! empty($hint)) { | 
                                                        |
| 286 | + $message .= ' (Hint: '.$hint.')';  | 
                                                        |
| 287 | 287 | }  | 
                                                        
| 288 | 288 | |
| 289 | 289 | return new self($message);  | 
                                                        
@@ -312,7 +312,7 @@ discard block  | 
                                                    ||
| 312 | 312 | */  | 
                                                        
| 313 | 313 | public static function reflectionFailure($entity, ReflectionException $previousException)  | 
                                                        
| 314 | 314 |      { | 
                                                        
| 315 | -        return new self('An error occurred in ' . $entity, 0, $previousException); | 
                                                        |
| 315 | +        return new self('An error occurred in '.$entity, 0, $previousException); | 
                                                        |
| 316 | 316 | }  | 
                                                        
| 317 | 317 | |
| 318 | 318 | /**  | 
                                                        
@@ -323,8 +323,8 @@ discard block  | 
                                                    ||
| 323 | 323 | */  | 
                                                        
| 324 | 324 | public static function joinColumnMustPointToMappedField($className, $joinColumn)  | 
                                                        
| 325 | 325 |      { | 
                                                        
| 326 | -        return new self('The column ' . $joinColumn . ' must be mapped to a field in class ' | 
                                                        |
| 327 | - . $className . ' since it is referenced by a join column of another class.');  | 
                                                        |
| 326 | +        return new self('The column '.$joinColumn.' must be mapped to a field in class ' | 
                                                        |
| 327 | + . $className.' since it is referenced by a join column of another class.');  | 
                                                        |
| 328 | 328 | }  | 
                                                        
| 329 | 329 | |
| 330 | 330 | /**  | 
                                                        
@@ -358,7 +358,7 @@ discard block  | 
                                                    ||
| 358 | 358 | */  | 
                                                        
| 359 | 359 | public static function propertyTypeIsRequired($className, $propertyName)  | 
                                                        
| 360 | 360 |      { | 
                                                        
| 361 | -        return new self("The attribute 'type' is required for the column description of property " . $className . '::$' . $propertyName . '.'); | 
                                                        |
| 361 | +        return new self("The attribute 'type' is required for the column description of property ".$className.'::$'.$propertyName.'.'); | 
                                                        |
| 362 | 362 | }  | 
                                                        
| 363 | 363 | |
| 364 | 364 | /**  | 
                                                        
@@ -384,7 +384,7 @@ discard block  | 
                                                    ||
| 384 | 384 | */  | 
                                                        
| 385 | 385 | public static function duplicateQueryMapping($entity, $queryName)  | 
                                                        
| 386 | 386 |      { | 
                                                        
| 387 | -        return new self('Query named "' . $queryName . '" in "' . $entity . '" was already declared, but it must be declared only once'); | 
                                                        |
| 387 | +        return new self('Query named "'.$queryName.'" in "'.$entity.'" was already declared, but it must be declared only once'); | 
                                                        |
| 388 | 388 | }  | 
                                                        
| 389 | 389 | |
| 390 | 390 | /**  | 
                                                        
@@ -395,7 +395,7 @@ discard block  | 
                                                    ||
| 395 | 395 | */  | 
                                                        
| 396 | 396 | public static function duplicateResultSetMapping($entity, $resultName)  | 
                                                        
| 397 | 397 |      { | 
                                                        
| 398 | -        return new self('Result set mapping named "' . $resultName . '" in "' . $entity . '" was already declared, but it must be declared only once'); | 
                                                        |
| 398 | +        return new self('Result set mapping named "'.$resultName.'" in "'.$entity.'" was already declared, but it must be declared only once'); | 
                                                        |
| 399 | 399 | }  | 
                                                        
| 400 | 400 | |
| 401 | 401 | /**  | 
                                                        
@@ -405,7 +405,7 @@ discard block  | 
                                                    ||
| 405 | 405 | */  | 
                                                        
| 406 | 406 | public static function singleIdNotAllowedOnCompositePrimaryKey($entity)  | 
                                                        
| 407 | 407 |      { | 
                                                        
| 408 | -        return new self('Single id is not allowed on composite primary key in entity ' . $entity); | 
                                                        |
| 408 | +        return new self('Single id is not allowed on composite primary key in entity '.$entity); | 
                                                        |
| 409 | 409 | }  | 
                                                        
| 410 | 410 | |
| 411 | 411 | /**  | 
                                                        
@@ -415,7 +415,7 @@ discard block  | 
                                                    ||
| 415 | 415 | */  | 
                                                        
| 416 | 416 | public static function noIdDefined($entity)  | 
                                                        
| 417 | 417 |      { | 
                                                        
| 418 | -        return new self('No ID defined for entity ' . $entity); | 
                                                        |
| 418 | +        return new self('No ID defined for entity '.$entity); | 
                                                        |
| 419 | 419 | }  | 
                                                        
| 420 | 420 | |
| 421 | 421 | /**  | 
                                                        
@@ -423,7 +423,7 @@ discard block  | 
                                                    ||
| 423 | 423 | */  | 
                                                        
| 424 | 424 | public static function unsupportedOptimisticLockingType(Type $unsupportedType)  | 
                                                        
| 425 | 425 |      { | 
                                                        
| 426 | -        return new self('Locking type "' . $unsupportedType->getName() . '" is not supported by Doctrine.'); | 
                                                        |
| 426 | +        return new self('Locking type "'.$unsupportedType->getName().'" is not supported by Doctrine.'); | 
                                                        |
| 427 | 427 | }  | 
                                                        
| 428 | 428 | |
| 429 | 429 | /**  | 
                                                        
@@ -433,13 +433,13 @@ discard block  | 
                                                    ||
| 433 | 433 | */  | 
                                                        
| 434 | 434 | public static function fileMappingDriversRequireConfiguredDirectoryPath($path = null)  | 
                                                        
| 435 | 435 |      { | 
                                                        
| 436 | -        if (! empty($path)) { | 
                                                        |
| 437 | - $path = '[' . $path . ']';  | 
                                                        |
| 436 | +        if ( ! empty($path)) { | 
                                                        |
| 437 | + $path = '['.$path.']';  | 
                                                        |
| 438 | 438 | }  | 
                                                        
| 439 | 439 | |
| 440 | 440 | return new self(  | 
                                                        
| 441 | - 'File mapping drivers must have a valid directory path, ' .  | 
                                                        |
| 442 | - 'however the given path ' . $path . ' seems to be incorrect!'  | 
                                                        |
| 441 | + 'File mapping drivers must have a valid directory path, '.  | 
                                                        |
| 442 | + 'however the given path '.$path.' seems to be incorrect!'  | 
                                                        |
| 443 | 443 | );  | 
                                                        
| 444 | 444 | }  | 
                                                        
| 445 | 445 | |
@@ -455,7 +455,7 @@ discard block  | 
                                                    ||
| 455 | 455 | public static function invalidClassInDiscriminatorMap($className, $owningClass)  | 
                                                        
| 456 | 456 |      { | 
                                                        
| 457 | 457 | return new self(sprintf(  | 
                                                        
| 458 | - "Entity class '%s' used in the discriminator map of class '%s' " .  | 
                                                        |
| 458 | + "Entity class '%s' used in the discriminator map of class '%s' ".  | 
                                                        |
| 459 | 459 | 'does not exist.',  | 
                                                        
| 460 | 460 | $className,  | 
                                                        
| 461 | 461 | $owningClass  | 
                                                        
@@ -521,7 +521,7 @@ discard block  | 
                                                    ||
| 521 | 521 | public static function sqlConversionNotAllowedForPrimaryKeyProperties($className, $fieldName, $type)  | 
                                                        
| 522 | 522 |      { | 
                                                        
| 523 | 523 | return new self(sprintf(  | 
                                                        
| 524 | - 'It is not possible to set id field "%s" to type "%s" in entity class "%s". ' .  | 
                                                        |
| 524 | + 'It is not possible to set id field "%s" to type "%s" in entity class "%s". '.  | 
                                                        |
| 525 | 525 | 'The type "%s" requires conversion SQL which is not allowed for identifiers.',  | 
                                                        
| 526 | 526 | $fieldName,  | 
                                                        
| 527 | 527 | $type,  | 
                                                        
@@ -557,7 +557,7 @@ discard block  | 
                                                    ||
| 557 | 557 | */  | 
                                                        
| 558 | 558 | public static function duplicateColumnName($className, $columnName)  | 
                                                        
| 559 | 559 |      { | 
                                                        
| 560 | -        return new self("Duplicate definition of column '" . $columnName . "' on entity '" . $className . "' in a field or discriminator column mapping."); | 
                                                        |
| 560 | +        return new self("Duplicate definition of column '".$columnName."' on entity '".$className."' in a field or discriminator column mapping."); | 
                                                        |
| 561 | 561 | }  | 
                                                        
| 562 | 562 | |
| 563 | 563 | /**  | 
                                                        
@@ -568,7 +568,7 @@ discard block  | 
                                                    ||
| 568 | 568 | */  | 
                                                        
| 569 | 569 | public static function illegalToManyAssociationOnMappedSuperclass($className, $field)  | 
                                                        
| 570 | 570 |      { | 
                                                        
| 571 | -        return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '" . $className . '#' . $field . "'."); | 
                                                        |
| 571 | +        return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '".$className.'#'.$field."'."); | 
                                                        |
| 572 | 572 | }  | 
                                                        
| 573 | 573 | |
| 574 | 574 | /**  | 
                                                        
@@ -580,8 +580,8 @@ discard block  | 
                                                    ||
| 580 | 580 | */  | 
                                                        
| 581 | 581 | public static function cannotMapCompositePrimaryKeyEntitiesAsForeignId($className, $targetEntity, $targetField)  | 
                                                        
| 582 | 582 |      { | 
                                                        
| 583 | -        return new self("It is not possible to map entity '" . $className . "' with a composite primary key " . | 
                                                        |
| 584 | - "as part of the primary key of another entity '" . $targetEntity . '#' . $targetField . "'.");  | 
                                                        |
| 583 | +        return new self("It is not possible to map entity '".$className."' with a composite primary key ". | 
                                                        |
| 584 | + "as part of the primary key of another entity '".$targetEntity.'#'.$targetField."'.");  | 
                                                        |
| 585 | 585 | }  | 
                                                        
| 586 | 586 | |
| 587 | 587 | /**  | 
                                                        
@@ -635,8 +635,8 @@ discard block  | 
                                                    ||
| 635 | 635 | */  | 
                                                        
| 636 | 636 | public static function illegalOrphanRemoval($className, $field)  | 
                                                        
| 637 | 637 |      { | 
                                                        
| 638 | -        return new self('Orphan removal is only allowed on one-to-one and one-to-many ' . | 
                                                        |
| 639 | - 'associations, but ' . $className . '#' . $field . ' is not.');  | 
                                                        |
| 638 | +        return new self('Orphan removal is only allowed on one-to-one and one-to-many '. | 
                                                        |
| 639 | + 'associations, but '.$className.'#'.$field.' is not.');  | 
                                                        |
| 640 | 640 | }  | 
                                                        
| 641 | 641 | |
| 642 | 642 | /**  | 
                                                        
@@ -668,7 +668,7 @@ discard block  | 
                                                    ||
| 668 | 668 | */  | 
                                                        
| 669 | 669 | public static function noInheritanceOnMappedSuperClass($className)  | 
                                                        
| 670 | 670 |      { | 
                                                        
| 671 | -        return new self("It is not supported to define inheritance information on a mapped superclass '" . $className . "'."); | 
                                                        |
| 671 | +        return new self("It is not supported to define inheritance information on a mapped superclass '".$className."'."); | 
                                                        |
| 672 | 672 | }  | 
                                                        
| 673 | 673 | |
| 674 | 674 | /**  | 
                                                        
@@ -680,8 +680,8 @@ discard block  | 
                                                    ||
| 680 | 680 | public static function mappedClassNotPartOfDiscriminatorMap($className, $rootClassName)  | 
                                                        
| 681 | 681 |      { | 
                                                        
| 682 | 682 | return new self(  | 
                                                        
| 683 | - "Entity '" . $className . "' has to be part of the discriminator map of '" . $rootClassName . "' " .  | 
                                                        |
| 684 | - "to be properly mapped in the inheritance hierarchy. Alternatively you can make '" . $className . "' an abstract class " .  | 
                                                        |
| 683 | + "Entity '".$className."' has to be part of the discriminator map of '".$rootClassName."' ".  | 
                                                        |
| 684 | + "to be properly mapped in the inheritance hierarchy. Alternatively you can make '".$className."' an abstract class ".  | 
                                                        |
| 685 | 685 | 'to avoid this exception from occurring.'  | 
                                                        
| 686 | 686 | );  | 
                                                        
| 687 | 687 | }  | 
                                                        
@@ -694,7 +694,7 @@ discard block  | 
                                                    ||
| 694 | 694 | */  | 
                                                        
| 695 | 695 | public static function lifecycleCallbackMethodNotFound($className, $methodName)  | 
                                                        
| 696 | 696 |      { | 
                                                        
| 697 | -        return new self("Entity '" . $className . "' has no public method '" . $methodName . "' to be registered as lifecycle callback."); | 
                                                        |
| 697 | +        return new self("Entity '".$className."' has no public method '".$methodName."' to be registered as lifecycle callback."); | 
                                                        |
| 698 | 698 | }  | 
                                                        
| 699 | 699 | |
| 700 | 700 | /**  | 
                                                        
@@ -728,7 +728,7 @@ discard block  | 
                                                    ||
| 728 | 728 | */  | 
                                                        
| 729 | 729 | public static function invalidFetchMode($className, $annotation)  | 
                                                        
| 730 | 730 |      { | 
                                                        
| 731 | -        return new self("Entity '" . $className . "' has a mapping with invalid fetch mode '" . $annotation . "'"); | 
                                                        |
| 731 | +        return new self("Entity '".$className."' has a mapping with invalid fetch mode '".$annotation."'"); | 
                                                        |
| 732 | 732 | }  | 
                                                        
| 733 | 733 | |
| 734 | 734 | /**  | 
                                                        
@@ -738,7 +738,7 @@ discard block  | 
                                                    ||
| 738 | 738 | */  | 
                                                        
| 739 | 739 | public static function compositeKeyAssignedIdGeneratorRequired($className)  | 
                                                        
| 740 | 740 |      { | 
                                                        
| 741 | -        return new self("Entity '" . $className . "' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported."); | 
                                                        |
| 741 | +        return new self("Entity '".$className."' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported."); | 
                                                        |
| 742 | 742 | }  | 
                                                        
| 743 | 743 | |
| 744 | 744 | /**  | 
                                                        
@@ -750,7 +750,7 @@ discard block  | 
                                                    ||
| 750 | 750 | */  | 
                                                        
| 751 | 751 | public static function invalidTargetEntityClass($targetEntity, $sourceEntity, $associationName)  | 
                                                        
| 752 | 752 |      { | 
                                                        
| 753 | -        return new self("The target-entity '" . $targetEntity . "' cannot be found in '" . $sourceEntity . '#' . $associationName . "'."); | 
                                                        |
| 753 | +        return new self("The target-entity '".$targetEntity."' cannot be found in '".$sourceEntity.'#'.$associationName."'."); | 
                                                        |
| 754 | 754 | }  | 
                                                        
| 755 | 755 | |
| 756 | 756 | /**  | 
                                                        
@@ -762,7 +762,7 @@ discard block  | 
                                                    ||
| 762 | 762 | */  | 
                                                        
| 763 | 763 | public static function invalidTargetEmbeddedClass($targetEmbedded, $sourceEntity, $associationName)  | 
                                                        
| 764 | 764 |      { | 
                                                        
| 765 | -        return new self("The target embedded '" . $targetEmbedded . "' cannot be found in '" . $sourceEntity . '#' . $associationName . "'."); | 
                                                        |
| 765 | +        return new self("The target embedded '".$targetEmbedded."' cannot be found in '".$sourceEntity.'#'.$associationName."'."); | 
                                                        |
| 766 | 766 | }  | 
                                                        
| 767 | 767 | |
| 768 | 768 | /**  | 
                                                        
@@ -774,8 +774,8 @@ discard block  | 
                                                    ||
| 774 | 774 | */  | 
                                                        
| 775 | 775 | public static function invalidCascadeOption(array $cascades, $className, $propertyName)  | 
                                                        
| 776 | 776 |      { | 
                                                        
| 777 | -        $cascades = implode(', ', array_map(static function ($e) { | 
                                                        |
| 778 | - return "'" . $e . "'";  | 
                                                        |
| 777 | +        $cascades = implode(', ', array_map(static function($e) { | 
                                                        |
| 778 | + return "'".$e."'";  | 
                                                        |
| 779 | 779 | }, $cascades));  | 
                                                        
| 780 | 780 | |
| 781 | 781 | return new self(sprintf(  | 
                                                        
@@ -808,7 +808,7 @@ discard block  | 
                                                    ||
| 808 | 808 |      { | 
                                                        
| 809 | 809 | return new self(  | 
                                                        
| 810 | 810 | sprintf(  | 
                                                        
| 811 | - 'Infinite nesting detected for embedded property %s::%s. ' .  | 
                                                        |
| 811 | + 'Infinite nesting detected for embedded property %s::%s. '.  | 
                                                        |
| 812 | 812 | 'You cannot embed an embeddable from the same type inside an embeddable.',  | 
                                                        
| 813 | 813 | $className,  | 
                                                        
| 814 | 814 | $propertyName  | 
                                                        
@@ -823,7 +823,7 @@ discard block  | 
                                                    ||
| 823 | 823 |      { | 
                                                        
| 824 | 824 | return new self(  | 
                                                        
| 825 | 825 | sprintf(  | 
                                                        
| 826 | - 'Class %s not found in namespaces %s.' .  | 
                                                        |
| 826 | + 'Class %s not found in namespaces %s.'.  | 
                                                        |
| 827 | 827 | $className,  | 
                                                        
| 828 | 828 |                  implode(', ', $namespaces) | 
                                                        
| 829 | 829 | )  | 
                                                        
@@ -219,11 +219,11 @@ discard block  | 
                                                    ||
| 219 | 219 | $this->setCache(clone $parent->cache);  | 
                                                        
| 220 | 220 | }  | 
                                                        
| 221 | 221 | |
| 222 | -        if (! empty($parent->lifecycleCallbacks)) { | 
                                                        |
| 222 | +        if ( ! empty($parent->lifecycleCallbacks)) { | 
                                                        |
| 223 | 223 | $this->lifecycleCallbacks = $parent->lifecycleCallbacks;  | 
                                                        
| 224 | 224 | }  | 
                                                        
| 225 | 225 | |
| 226 | -        if (! empty($parent->entityListeners)) { | 
                                                        |
| 226 | +        if ( ! empty($parent->entityListeners)) { | 
                                                        |
| 227 | 227 | $this->entityListeners = $parent->entityListeners;  | 
                                                        
| 228 | 228 | }  | 
                                                        
| 229 | 229 | }  | 
                                                        
@@ -279,7 +279,7 @@ discard block  | 
                                                    ||
| 279 | 279 | */  | 
                                                        
| 280 | 280 | public function __toString()  | 
                                                        
| 281 | 281 |      { | 
                                                        
| 282 | - return self::class . '@' . spl_object_id($this);  | 
                                                        |
| 282 | + return self::class.'@'.spl_object_id($this);  | 
                                                        |
| 283 | 283 | }  | 
                                                        
| 284 | 284 | |
| 285 | 285 | /**  | 
                                                        
@@ -375,11 +375,11 @@ discard block  | 
                                                    ||
| 375 | 375 | */  | 
                                                        
| 376 | 376 | public function isIdentifier(string $fieldName) : bool  | 
                                                        
| 377 | 377 |      { | 
                                                        
| 378 | -        if (! $this->identifier) { | 
                                                        |
| 378 | +        if ( ! $this->identifier) { | 
                                                        |
| 379 | 379 | return false;  | 
                                                        
| 380 | 380 | }  | 
                                                        
| 381 | 381 | |
| 382 | -        if (! $this->isIdentifierComposite()) { | 
                                                        |
| 382 | +        if ( ! $this->isIdentifierComposite()) { | 
                                                        |
| 383 | 383 | return $fieldName === $this->identifier[0];  | 
                                                        
| 384 | 384 | }  | 
                                                        
| 385 | 385 | |
@@ -403,11 +403,11 @@ discard block  | 
                                                    ||
| 403 | 403 | }  | 
                                                        
| 404 | 404 | |
| 405 | 405 | // Verify & complete identifier mapping  | 
                                                        
| 406 | -        if (! $this->identifier) { | 
                                                        |
| 406 | +        if ( ! $this->identifier) { | 
                                                        |
| 407 | 407 | throw MappingException::identifierRequired($this->className);  | 
                                                        
| 408 | 408 | }  | 
                                                        
| 409 | 409 | |
| 410 | -        $explicitlyGeneratedProperties = array_filter($this->properties, static function (Property $property) : bool { | 
                                                        |
| 410 | +        $explicitlyGeneratedProperties = array_filter($this->properties, static function(Property $property) : bool { | 
                                                        |
| 411 | 411 | return $property instanceof FieldMetadata  | 
                                                        
| 412 | 412 | && $property->isPrimaryKey()  | 
                                                        
| 413 | 413 | && $property->hasValueGenerator();  | 
                                                        
@@ -428,7 +428,7 @@ discard block  | 
                                                    ||
| 428 | 428 |          foreach ($this->lifecycleCallbacks as $callbacks) { | 
                                                        
| 429 | 429 | /** @var array $callbacks */  | 
                                                        
| 430 | 430 |              foreach ($callbacks as $callbackFuncName) { | 
                                                        
| 431 | -                if (! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) { | 
                                                        |
| 431 | +                if ( ! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) { | 
                                                        |
| 432 | 432 | throw MappingException::lifecycleCallbackMethodNotFound($this->className, $callbackFuncName);  | 
                                                        
| 433 | 433 | }  | 
                                                        
| 434 | 434 | }  | 
                                                        
@@ -457,7 +457,7 @@ discard block  | 
                                                    ||
| 457 | 457 | throw MappingException::singleIdNotAllowedOnCompositePrimaryKey($this->className);  | 
                                                        
| 458 | 458 | }  | 
                                                        
| 459 | 459 | |
| 460 | -        if (! isset($this->identifier[0])) { | 
                                                        |
| 460 | +        if ( ! isset($this->identifier[0])) { | 
                                                        |
| 461 | 461 | throw MappingException::noIdDefined($this->className);  | 
                                                        
| 462 | 462 | }  | 
                                                        
| 463 | 463 | |
@@ -516,7 +516,7 @@ discard block  | 
                                                    ||
| 516 | 516 | // Association defined as Id field  | 
                                                        
| 517 | 517 | $targetClass = $em->getClassMetadata($property->getTargetEntity());  | 
                                                        
| 518 | 518 | |
| 519 | -            if (! $property->isOwningSide()) { | 
                                                        |
| 519 | +            if ( ! $property->isOwningSide()) { | 
                                                        |
| 520 | 520 | $property = $targetClass->getProperty($property->getMappedBy());  | 
                                                        
| 521 | 521 | }  | 
                                                        
| 522 | 522 | |
@@ -556,10 +556,10 @@ discard block  | 
                                                    ||
| 556 | 556 |      { | 
                                                        
| 557 | 557 | $schema = $this->getSchemaName() === null  | 
                                                        
| 558 | 558 | ? ''  | 
                                                        
| 559 | - : $this->getSchemaName() . '_';  | 
                                                        |
| 559 | + : $this->getSchemaName().'_';  | 
                                                        |
| 560 | 560 | |
| 561 | 561 | // replace dots with underscores because PostgreSQL creates temporary tables in a special schema  | 
                                                        
| 562 | - return $schema . $this->getTableName() . '_id_tmp';  | 
                                                        |
| 562 | + return $schema.$this->getTableName().'_id_tmp';  | 
                                                        |
| 563 | 563 | }  | 
                                                        
| 564 | 564 | |
| 565 | 565 | /**  | 
                                                        
@@ -593,7 +593,7 @@ discard block  | 
                                                    ||
| 593 | 593 | */  | 
                                                        
| 594 | 594 | public function setInheritanceType($type) : void  | 
                                                        
| 595 | 595 |      { | 
                                                        
| 596 | -        if (! $this->isInheritanceType($type)) { | 
                                                        |
| 596 | +        if ( ! $this->isInheritanceType($type)) { | 
                                                        |
| 597 | 597 | throw MappingException::invalidInheritanceType($this->className, $type);  | 
                                                        
| 598 | 598 | }  | 
                                                        
| 599 | 599 | |
@@ -611,7 +611,7 @@ discard block  | 
                                                    ||
| 611 | 611 |      { | 
                                                        
| 612 | 612 | $fieldName = $property->getName();  | 
                                                        
| 613 | 613 | |
| 614 | -        if (! isset($this->properties[$fieldName])) { | 
                                                        |
| 614 | +        if ( ! isset($this->properties[$fieldName])) { | 
                                                        |
| 615 | 615 | throw MappingException::invalidOverrideFieldName($this->className, $fieldName);  | 
                                                        
| 616 | 616 | }  | 
                                                        
| 617 | 617 | |
@@ -827,7 +827,7 @@ discard block  | 
                                                    ||
| 827 | 827 | $inheritedProperty = $declaringClass->isMappedSuperclass ? clone $property : $property;  | 
                                                        
| 828 | 828 | |
| 829 | 829 |          if ($inheritedProperty instanceof FieldMetadata) { | 
                                                        
| 830 | -            if (! $declaringClass->isMappedSuperclass) { | 
                                                        |
| 830 | +            if ( ! $declaringClass->isMappedSuperclass) { | 
                                                        |
| 831 | 831 | $inheritedProperty->setTableName($property->getTableName());  | 
                                                        
| 832 | 832 | }  | 
                                                        
| 833 | 833 | |
@@ -920,11 +920,11 @@ discard block  | 
                                                    ||
| 920 | 920 | 'method' => $methodName,  | 
                                                        
| 921 | 921 | ];  | 
                                                        
| 922 | 922 | |
| 923 | -        if (! class_exists($class)) { | 
                                                        |
| 923 | +        if ( ! class_exists($class)) { | 
                                                        |
| 924 | 924 | throw MappingException::entityListenerClassNotFound($class, $this->className);  | 
                                                        
| 925 | 925 | }  | 
                                                        
| 926 | 926 | |
| 927 | -        if (! method_exists($class, $methodName)) { | 
                                                        |
| 927 | +        if ( ! method_exists($class, $methodName)) { | 
                                                        |
| 928 | 928 | throw MappingException::entityListenerMethodNotFound($class, $methodName, $this->className);  | 
                                                        
| 929 | 929 | }  | 
                                                        
| 930 | 930 | |
@@ -992,7 +992,7 @@ discard block  | 
                                                    ||
| 992 | 992 | return;  | 
                                                        
| 993 | 993 | }  | 
                                                        
| 994 | 994 | |
| 995 | -        if (! (class_exists($className) || interface_exists($className))) { | 
                                                        |
| 995 | +        if ( ! (class_exists($className) || interface_exists($className))) { | 
                                                        |
| 996 | 996 | throw MappingException::invalidClassInDiscriminatorMap($className, $this->className);  | 
                                                        
| 997 | 997 | }  | 
                                                        
| 998 | 998 | |
@@ -79,7 +79,7 @@ discard block  | 
                                                    ||
| 79 | 79 | $embeddedMetadata->setSourceEntity($componentClassName);  | 
                                                        
| 80 | 80 | $embeddedMetadata->setTargetEntity($this->getTargetEmbedded($this->embeddedAnnotation->class));  | 
                                                        
| 81 | 81 | |
| 82 | -        if (! empty($this->embeddedAnnotation->columnPrefix)) { | 
                                                        |
| 82 | +        if ( ! empty($this->embeddedAnnotation->columnPrefix)) { | 
                                                        |
| 83 | 83 | $embeddedMetadata->setColumnPrefix($this->embeddedAnnotation->columnPrefix);  | 
                                                        
| 84 | 84 | }  | 
                                                        
| 85 | 85 | |
@@ -102,12 +102,12 @@ discard block  | 
                                                    ||
| 102 | 102 | protected function getTargetEmbedded(string $targetEmbedded) : string  | 
                                                        
| 103 | 103 |      { | 
                                                        
| 104 | 104 | // Validate if target embedded is defined  | 
                                                        
| 105 | -        if (! $targetEmbedded) { | 
                                                        |
| 105 | +        if ( ! $targetEmbedded) { | 
                                                        |
| 106 | 106 | throw Mapping\MappingException::missingEmbeddedClass($this->fieldName);  | 
                                                        
| 107 | 107 | }  | 
                                                        
| 108 | 108 | |
| 109 | 109 | // Validate that target entity exists  | 
                                                        
| 110 | -        if (! (class_exists($targetEmbedded) || interface_exists($targetEmbedded))) { | 
                                                        |
| 110 | +        if ( ! (class_exists($targetEmbedded) || interface_exists($targetEmbedded))) { | 
                                                        |
| 111 | 111 | throw Mapping\MappingException::invalidTargetEmbeddedClass(  | 
                                                        
| 112 | 112 | $targetEmbedded,  | 
                                                        
| 113 | 113 | $this->componentMetadata->getClassName(),  | 
                                                        
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 44 | 44 |          $this->currentPersisterContext->rsm->setDiscriminatorColumn('r', $resultColumnName); | 
                                                        
| 45 | 45 |          $this->currentPersisterContext->rsm->addMetaResult('r', $resultColumnName, $discrColumnName, false, $discrColumnType); | 
                                                        
| 46 | 46 | |
| 47 | - $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias . '.' . $quotedColumnName, $this->platform);  | 
                                                        |
| 47 | + $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias.'.'.$quotedColumnName, $this->platform);  | 
                                                        |
| 48 | 48 | |
| 49 | 49 | // Append subclass columns  | 
                                                        
| 50 | 50 |          foreach ($this->class->getSubClasses() as $subClassName) { | 
                                                        
@@ -114,7 +114,7 @@ discard block  | 
                                                    ||
| 114 | 114 | $conditionSql .= ' AND ';  | 
                                                        
| 115 | 115 | }  | 
                                                        
| 116 | 116 | |
| 117 | - return $conditionSql . $this->getSelectConditionDiscriminatorValueSQL();  | 
                                                        |
| 117 | + return $conditionSql.$this->getSelectConditionDiscriminatorValueSQL();  | 
                                                        |
| 118 | 118 | }  | 
                                                        
| 119 | 119 | |
| 120 | 120 | /**  | 
                                                        
@@ -128,7 +128,7 @@ discard block  | 
                                                    ||
| 128 | 128 | $conditionSql .= ' AND ';  | 
                                                        
| 129 | 129 | }  | 
                                                        
| 130 | 130 | |
| 131 | - return $conditionSql . $this->getSelectConditionDiscriminatorValueSQL();  | 
                                                        |
| 131 | + return $conditionSql.$this->getSelectConditionDiscriminatorValueSQL();  | 
                                                        |
| 132 | 132 | }  | 
                                                        
| 133 | 133 | |
| 134 | 134 | /**  | 
                                                        
@@ -155,7 +155,7 @@ discard block  | 
                                                    ||
| 155 | 155 | |
| 156 | 156 | return sprintf(  | 
                                                        
| 157 | 157 | '%s IN (%s)',  | 
                                                        
| 158 | - $discrColumnType->convertToDatabaseValueSQL($tableAlias . '.' . $quotedColumnName, $this->platform),  | 
                                                        |
| 158 | + $discrColumnType->convertToDatabaseValueSQL($tableAlias.'.'.$quotedColumnName, $this->platform),  | 
                                                        |
| 159 | 159 |              implode(', ', $values) | 
                                                        
| 160 | 160 | );  | 
                                                        
| 161 | 161 | }  | 
                                                        
@@ -107,7 +107,7 @@ discard block  | 
                                                    ||
| 107 | 107 | }  | 
                                                        
| 108 | 108 | |
| 109 | 109 |              foreach ($data as $columnName => $value) { | 
                                                        
| 110 | -                if (! is_array($id) || ! isset($id[$columnName])) { | 
                                                        |
| 110 | +                if ( ! is_array($id) || ! isset($id[$columnName])) { | 
                                                        |
| 111 | 111 | $type = $this->columns[$columnName]->getType();  | 
                                                        
| 112 | 112 | |
| 113 | 113 | $stmt->bindValue($paramIndex++, $value, $type);  | 
                                                        
@@ -131,7 +131,7 @@ discard block  | 
                                                    ||
| 131 | 131 |      { | 
                                                        
| 132 | 132 | $updateData = $this->prepareUpdateData($entity);  | 
                                                        
| 133 | 133 | |
| 134 | -        if (! $updateData) { | 
                                                        |
| 134 | +        if ( ! $updateData) { | 
                                                        |
| 135 | 135 | return;  | 
                                                        
| 136 | 136 | }  | 
                                                        
| 137 | 137 | |
@@ -149,7 +149,7 @@ discard block  | 
                                                    ||
| 149 | 149 | $versionedClass = $this->class->versionProperty->getDeclaringClass();  | 
                                                        
| 150 | 150 | $versionedTable = $versionedClass->getTableName();  | 
                                                        
| 151 | 151 | |
| 152 | -            if (! isset($updateData[$versionedTable])) { | 
                                                        |
| 152 | +            if ( ! isset($updateData[$versionedTable])) { | 
                                                        |
| 153 | 153 | $tableName = $versionedClass->table->getQuotedQualifiedName($this->platform);  | 
                                                        
| 154 | 154 | |
| 155 | 155 | $this->updateTable($entity, $tableName, [], true);  | 
                                                        
@@ -230,7 +230,7 @@ discard block  | 
                                                    ||
| 230 | 230 | |
| 231 | 231 |          if ($filterSql) { | 
                                                        
| 232 | 232 | $conditionSql .= $conditionSql  | 
                                                        
| 233 | - ? ' AND ' . $filterSql  | 
                                                        |
| 233 | + ? ' AND '.$filterSql  | 
                                                        |
| 234 | 234 | : $filterSql;  | 
                                                        
| 235 | 235 | }  | 
                                                        
| 236 | 236 | |
@@ -238,26 +238,26 @@ discard block  | 
                                                    ||
| 238 | 238 | |
| 239 | 239 |          switch ($lockMode) { | 
                                                        
| 240 | 240 | case LockMode::PESSIMISTIC_READ:  | 
                                                        
| 241 | - $lockSql = ' ' . $this->platform->getReadLockSQL();  | 
                                                        |
| 241 | + $lockSql = ' '.$this->platform->getReadLockSQL();  | 
                                                        |
| 242 | 242 | break;  | 
                                                        
| 243 | 243 | |
| 244 | 244 | case LockMode::PESSIMISTIC_WRITE:  | 
                                                        
| 245 | - $lockSql = ' ' . $this->platform->getWriteLockSQL();  | 
                                                        |
| 245 | + $lockSql = ' '.$this->platform->getWriteLockSQL();  | 
                                                        |
| 246 | 246 | break;  | 
                                                        
| 247 | 247 | }  | 
                                                        
| 248 | 248 | |
| 249 | 249 | $tableName = $this->class->table->getQuotedQualifiedName($this->platform);  | 
                                                        
| 250 | - $from = ' FROM ' . $tableName . ' ' . $baseTableAlias;  | 
                                                        |
| 251 | - $where = $conditionSql !== '' ? ' WHERE ' . $conditionSql : '';  | 
                                                        |
| 250 | + $from = ' FROM '.$tableName.' '.$baseTableAlias;  | 
                                                        |
| 251 | + $where = $conditionSql !== '' ? ' WHERE '.$conditionSql : '';  | 
                                                        |
| 252 | 252 | $lock = $this->platform->appendLockHint($from, $lockMode);  | 
                                                        
| 253 | 253 | $columnList = $this->getSelectColumnsSQL();  | 
                                                        
| 254 | - $query = 'SELECT ' . $columnList  | 
                                                        |
| 254 | + $query = 'SELECT '.$columnList  | 
                                                        |
| 255 | 255 | . $lock  | 
                                                        
| 256 | 256 | . $joinSql  | 
                                                        
| 257 | 257 | . $where  | 
                                                        
| 258 | 258 | . $orderBySql;  | 
                                                        
| 259 | 259 | |
| 260 | - return $this->platform->modifyLimitQuery($query, $limit, $offset ?? 0) . $lockSql;  | 
                                                        |
| 260 | + return $this->platform->modifyLimitQuery($query, $limit, $offset ?? 0).$lockSql;  | 
                                                        |
| 261 | 261 | }  | 
                                                        
| 262 | 262 | |
| 263 | 263 | /**  | 
                                                        
@@ -279,14 +279,14 @@ discard block  | 
                                                    ||
| 279 | 279 | |
| 280 | 280 |          if ($filterSql !== '') { | 
                                                        
| 281 | 281 | $conditionSql = $conditionSql  | 
                                                        
| 282 | - ? $conditionSql . ' AND ' . $filterSql  | 
                                                        |
| 282 | + ? $conditionSql.' AND '.$filterSql  | 
                                                        |
| 283 | 283 | : $filterSql;  | 
                                                        
| 284 | 284 | }  | 
                                                        
| 285 | 285 | |
| 286 | 286 | return 'SELECT COUNT(*) '  | 
                                                        
| 287 | - . 'FROM ' . $tableName . ' ' . $baseTableAlias  | 
                                                        |
| 287 | + . 'FROM '.$tableName.' '.$baseTableAlias  | 
                                                        |
| 288 | 288 | . $joinSql  | 
                                                        
| 289 | - . (empty($conditionSql) ? '' : ' WHERE ' . $conditionSql);  | 
                                                        |
| 289 | + . (empty($conditionSql) ? '' : ' WHERE '.$conditionSql);  | 
                                                        |
| 290 | 290 | }  | 
                                                        
| 291 | 291 | |
| 292 | 292 | /**  | 
                                                        
@@ -305,18 +305,18 @@ discard block  | 
                                                    ||
| 305 | 305 | $conditions = [];  | 
                                                        
| 306 | 306 | $tableName = $parentClass->table->getQuotedQualifiedName($this->platform);  | 
                                                        
| 307 | 307 | $tableAlias = $this->getSQLTableAlias($parentClass->getTableName());  | 
                                                        
| 308 | - $joinSql .= ' INNER JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';  | 
                                                        |
| 308 | + $joinSql .= ' INNER JOIN '.$tableName.' '.$tableAlias.' ON ';  | 
                                                        |
| 309 | 309 | |
| 310 | 310 |              foreach ($identifierColumns as $idColumn) { | 
                                                        
| 311 | 311 | $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName());  | 
                                                        
| 312 | 312 | |
| 313 | - $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;  | 
                                                        |
| 313 | + $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;  | 
                                                        |
| 314 | 314 | }  | 
                                                        
| 315 | 315 | |
| 316 | 316 |              $joinSql .= implode(' AND ', $conditions); | 
                                                        
| 317 | 317 | }  | 
                                                        
| 318 | 318 | |
| 319 | - return parent::getLockTablesSql($lockMode) . $joinSql;  | 
                                                        |
| 319 | + return parent::getLockTablesSql($lockMode).$joinSql;  | 
                                                        |
| 320 | 320 | }  | 
                                                        
| 321 | 321 | |
| 322 | 322 | /**  | 
                                                        
@@ -343,7 +343,7 @@ discard block  | 
                                                    ||
| 343 | 343 | continue;  | 
                                                        
| 344 | 344 | }  | 
                                                        
| 345 | 345 | |
| 346 | -            if (! ($property instanceof ToOneAssociationMetadata) || ! $property->isOwningSide()) { | 
                                                        |
| 346 | +            if ( ! ($property instanceof ToOneAssociationMetadata) || ! $property->isOwningSide()) { | 
                                                        |
| 347 | 347 | continue;  | 
                                                        
| 348 | 348 | }  | 
                                                        
| 349 | 349 | |
@@ -364,7 +364,7 @@ discard block  | 
                                                    ||
| 364 | 364 |          $this->currentPersisterContext->rsm->setDiscriminatorColumn('r', $resultColumnName); | 
                                                        
| 365 | 365 |          $this->currentPersisterContext->rsm->addMetaResult('r', $resultColumnName, $discrColumnName, false, $discrColumnType); | 
                                                        
| 366 | 366 | |
| 367 | - $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias . '.' . $quotedColumnName, $this->platform);  | 
                                                        |
| 367 | + $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias.'.'.$quotedColumnName, $this->platform);  | 
                                                        |
| 368 | 368 | |
| 369 | 369 | // sub tables  | 
                                                        
| 370 | 370 |          foreach ($this->class->getSubClasses() as $subClassName) { | 
                                                        
@@ -481,12 +481,12 @@ discard block  | 
                                                    ||
| 481 | 481 | $conditions = [];  | 
                                                        
| 482 | 482 | $tableName = $parentClass->table->getQuotedQualifiedName($this->platform);  | 
                                                        
| 483 | 483 | $tableAlias = $this->getSQLTableAlias($parentClass->getTableName());  | 
                                                        
| 484 | - $joinSql .= ' INNER JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';  | 
                                                        |
| 484 | + $joinSql .= ' INNER JOIN '.$tableName.' '.$tableAlias.' ON ';  | 
                                                        |
| 485 | 485 | |
| 486 | 486 |              foreach ($identifierColumns as $idColumn) { | 
                                                        
| 487 | 487 | $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName());  | 
                                                        
| 488 | 488 | |
| 489 | - $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;  | 
                                                        |
| 489 | + $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;  | 
                                                        |
| 490 | 490 | }  | 
                                                        
| 491 | 491 | |
| 492 | 492 |              $joinSql .= implode(' AND ', $conditions); | 
                                                        
@@ -498,12 +498,12 @@ discard block  | 
                                                    ||
| 498 | 498 | $subClass = $this->em->getClassMetadata($subClassName);  | 
                                                        
| 499 | 499 | $tableName = $subClass->table->getQuotedQualifiedName($this->platform);  | 
                                                        
| 500 | 500 | $tableAlias = $this->getSQLTableAlias($subClass->getTableName());  | 
                                                        
| 501 | - $joinSql .= ' LEFT JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';  | 
                                                        |
| 501 | + $joinSql .= ' LEFT JOIN '.$tableName.' '.$tableAlias.' ON ';  | 
                                                        |
| 502 | 502 | |
| 503 | 503 |              foreach ($identifierColumns as $idColumn) { | 
                                                        
| 504 | 504 | $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName());  | 
                                                        
| 505 | 505 | |
| 506 | - $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;  | 
                                                        |
| 506 | + $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;  | 
                                                        |
| 507 | 507 | }  | 
                                                        
| 508 | 508 | |
| 509 | 509 |              $joinSql .= implode(' AND ', $conditions); | 
                                                        
@@ -269,10 +269,10 @@ discard block  | 
                                                    ||
| 269 | 269 | */  | 
                                                        
| 270 | 270 | public function getSQLTableAlias($tableName, $dqlAlias = '')  | 
                                                        
| 271 | 271 |      { | 
                                                        
| 272 | - $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';  | 
                                                        |
| 272 | + $tableName .= $dqlAlias ? '@['.$dqlAlias.']' : '';  | 
                                                        |
| 273 | 273 | |
| 274 | -        if (! isset($this->tableAliasMap[$tableName])) { | 
                                                        |
| 275 | - $this->tableAliasMap[$tableName] = 't' . $this->tableAliasCounter++;  | 
                                                        |
| 274 | +        if ( ! isset($this->tableAliasMap[$tableName])) { | 
                                                        |
| 275 | + $this->tableAliasMap[$tableName] = 't'.$this->tableAliasCounter++;  | 
                                                        |
| 276 | 276 | }  | 
                                                        
| 277 | 277 | |
| 278 | 278 | return $this->tableAliasMap[$tableName];  | 
                                                        
@@ -290,7 +290,7 @@ discard block  | 
                                                    ||
| 290 | 290 | */  | 
                                                        
| 291 | 291 | public function setSQLTableAlias($tableName, $alias, $dqlAlias = '')  | 
                                                        
| 292 | 292 |      { | 
                                                        
| 293 | - $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';  | 
                                                        |
| 293 | + $tableName .= $dqlAlias ? '@['.$dqlAlias.']' : '';  | 
                                                        |
| 294 | 294 | |
| 295 | 295 | $this->tableAliasMap[$tableName] = $alias;  | 
                                                        
| 296 | 296 | |
@@ -304,7 +304,7 @@ discard block  | 
                                                    ||
| 304 | 304 | */  | 
                                                        
| 305 | 305 | public function getSQLColumnAlias()  | 
                                                        
| 306 | 306 |      { | 
                                                        
| 307 | -        return $this->platform->getSQLResultCasing('c' . $this->aliasCounter++); | 
                                                        |
| 307 | +        return $this->platform->getSQLResultCasing('c'.$this->aliasCounter++); | 
                                                        |
| 308 | 308 | }  | 
                                                        
| 309 | 309 | |
| 310 | 310 | /**  | 
                                                        
@@ -331,14 +331,14 @@ discard block  | 
                                                    ||
| 331 | 331 | |
| 332 | 332 | // If this is a joined association we must use left joins to preserve the correct result.  | 
                                                        
| 333 | 333 | $sql .= isset($this->queryComponents[$dqlAlias]['relation']) ? ' LEFT ' : ' INNER ';  | 
                                                        
| 334 | - $sql .= 'JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';  | 
                                                        |
| 334 | + $sql .= 'JOIN '.$tableName.' '.$tableAlias.' ON ';  | 
                                                        |
| 335 | 335 | |
| 336 | 336 | $sqlParts = [];  | 
                                                        
| 337 | 337 | |
| 338 | 338 |              foreach ($class->getIdentifierColumns($this->em) as $column) { | 
                                                        
| 339 | 339 | $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());  | 
                                                        
| 340 | 340 | |
| 341 | - $sqlParts[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;  | 
                                                        |
| 341 | + $sqlParts[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;  | 
                                                        |
| 342 | 342 | }  | 
                                                        
| 343 | 343 | |
| 344 | 344 | $filterSql = $this->generateFilterConditionSQL($parentClass, $tableAlias);  | 
                                                        
@@ -362,14 +362,14 @@ discard block  | 
                                                    ||
| 362 | 362 | $tableName = $subClass->table->getQuotedQualifiedName($this->platform);  | 
                                                        
| 363 | 363 | $tableAlias = $this->getSQLTableAlias($subClass->getTableName(), $dqlAlias);  | 
                                                        
| 364 | 364 | |
| 365 | - $sql .= ' LEFT JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';  | 
                                                        |
| 365 | + $sql .= ' LEFT JOIN '.$tableName.' '.$tableAlias.' ON ';  | 
                                                        |
| 366 | 366 | |
| 367 | 367 | $sqlParts = [];  | 
                                                        
| 368 | 368 | |
| 369 | 369 |              foreach ($subClass->getIdentifierColumns($this->em) as $column) { | 
                                                        
| 370 | 370 | $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());  | 
                                                        
| 371 | 371 | |
| 372 | - $sqlParts[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;  | 
                                                        |
| 372 | + $sqlParts[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;  | 
                                                        |
| 373 | 373 | }  | 
                                                        
| 374 | 374 | |
| 375 | 375 |              $sql .= implode(' AND ', $sqlParts); | 
                                                        
@@ -390,7 +390,7 @@ discard block  | 
                                                    ||
| 390 | 390 | $qComp = $this->queryComponents[$dqlAlias];  | 
                                                        
| 391 | 391 | $association = $qComp['relation'];  | 
                                                        
| 392 | 392 | |
| 393 | -            if (! ($association instanceof ToManyAssociationMetadata)) { | 
                                                        |
| 393 | +            if ( ! ($association instanceof ToManyAssociationMetadata)) { | 
                                                        |
| 394 | 394 | continue;  | 
                                                        
| 395 | 395 | }  | 
                                                        
| 396 | 396 | |
@@ -398,7 +398,7 @@ discard block  | 
                                                    ||
| 398 | 398 | $property = $qComp['metadata']->getProperty($fieldName);  | 
                                                        
| 399 | 399 | $tableName = $property->getTableName();  | 
                                                        
| 400 | 400 | $columnName = $this->platform->quoteIdentifier($property->getColumnName());  | 
                                                        
| 401 | - $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias) . '.' . $columnName;  | 
                                                        |
| 401 | + $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias).'.'.$columnName;  | 
                                                        |
| 402 | 402 | |
| 403 | 403 | // OrderByClause should replace an ordered relation. see - DDC-2475  | 
                                                        
| 404 | 404 |                  if (isset($this->orderedColumnsMap[$orderedColumn])) { | 
                                                        
@@ -406,7 +406,7 @@ discard block  | 
                                                    ||
| 406 | 406 | }  | 
                                                        
| 407 | 407 | |
| 408 | 408 | $this->orderedColumnsMap[$orderedColumn] = $orientation;  | 
                                                        
| 409 | - $orderedColumns[] = $orderedColumn . ' ' . $orientation;  | 
                                                        |
| 409 | + $orderedColumns[] = $orderedColumn.' '.$orientation;  | 
                                                        |
| 410 | 410 | }  | 
                                                        
| 411 | 411 | }  | 
                                                        
| 412 | 412 | |
@@ -446,19 +446,19 @@ discard block  | 
                                                    ||
| 446 | 446 | $discrColumnType = $discrColumn->getType();  | 
                                                        
| 447 | 447 | $quotedColumnName = $this->platform->quoteIdentifier($discrColumn->getColumnName());  | 
                                                        
| 448 | 448 | $sqlTableAlias = $this->useSqlTableAliases  | 
                                                        
| 449 | - ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias) . '.'  | 
                                                        |
| 449 | + ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias).'.'  | 
                                                        |
| 450 | 450 | : '';  | 
                                                        
| 451 | 451 | |
| 452 | 452 | $sqlParts[] = sprintf(  | 
                                                        
| 453 | 453 | '%s IN (%s)',  | 
                                                        
| 454 | - $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . $quotedColumnName, $this->platform),  | 
                                                        |
| 454 | + $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.$quotedColumnName, $this->platform),  | 
                                                        |
| 455 | 455 |                  implode(', ', $values) | 
                                                        
| 456 | 456 | );  | 
                                                        
| 457 | 457 | }  | 
                                                        
| 458 | 458 | |
| 459 | 459 |          $sql = implode(' AND ', $sqlParts); | 
                                                        
| 460 | 460 | |
| 461 | -        return isset($sqlParts[1]) ? '(' . $sql . ')' : $sql; | 
                                                        |
| 461 | +        return isset($sqlParts[1]) ? '('.$sql.')' : $sql; | 
                                                        |
| 462 | 462 | }  | 
                                                        
| 463 | 463 | |
| 464 | 464 | /**  | 
                                                        
@@ -471,7 +471,7 @@ discard block  | 
                                                    ||
| 471 | 471 | */  | 
                                                        
| 472 | 472 | private function generateFilterConditionSQL(ClassMetadata $targetEntity, $targetTableAlias)  | 
                                                        
| 473 | 473 |      { | 
                                                        
| 474 | -        if (! $this->em->hasFilters()) { | 
                                                        |
| 474 | +        if ( ! $this->em->hasFilters()) { | 
                                                        |
| 475 | 475 | return '';  | 
                                                        
| 476 | 476 | }  | 
                                                        
| 477 | 477 | |
@@ -504,7 +504,7 @@ discard block  | 
                                                    ||
| 504 | 504 | $filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias);  | 
                                                        
| 505 | 505 | |
| 506 | 506 |              if ($filterExpr !== '') { | 
                                                        
| 507 | -                $filterClauses[] = '(' . $filterExpr . ')'; | 
                                                        |
| 507 | +                $filterClauses[] = '('.$filterExpr.')'; | 
                                                        |
| 508 | 508 | }  | 
                                                        
| 509 | 509 | }  | 
                                                        
| 510 | 510 | |
@@ -535,11 +535,11 @@ discard block  | 
                                                    ||
| 535 | 535 | $sql .= $this->walkOrderByClause($AST->orderByClause);  | 
                                                        
| 536 | 536 | }  | 
                                                        
| 537 | 537 | |
| 538 | -        if (! $AST->orderByClause) { | 
                                                        |
| 538 | +        if ( ! $AST->orderByClause) { | 
                                                        |
| 539 | 539 | $orderBySql = $this->generateOrderedCollectionOrderByItems();  | 
                                                        
| 540 | 540 | |
| 541 | 541 |              if ($orderBySql) { | 
                                                        
| 542 | - $sql .= ' ORDER BY ' . $orderBySql;  | 
                                                        |
| 542 | + $sql .= ' ORDER BY '.$orderBySql;  | 
                                                        |
| 543 | 543 | }  | 
                                                        
| 544 | 544 | }  | 
                                                        
| 545 | 545 | |
@@ -552,11 +552,11 @@ discard block  | 
                                                    ||
| 552 | 552 | }  | 
                                                        
| 553 | 553 | |
| 554 | 554 |          if ($lockMode === LockMode::PESSIMISTIC_READ) { | 
                                                        
| 555 | - return $sql . ' ' . $this->platform->getReadLockSQL();  | 
                                                        |
| 555 | + return $sql.' '.$this->platform->getReadLockSQL();  | 
                                                        |
| 556 | 556 | }  | 
                                                        
| 557 | 557 | |
| 558 | 558 |          if ($lockMode === LockMode::PESSIMISTIC_WRITE) { | 
                                                        
| 559 | - return $sql . ' ' . $this->platform->getWriteLockSQL();  | 
                                                        |
| 559 | + return $sql.' '.$this->platform->getWriteLockSQL();  | 
                                                        |
| 560 | 560 | }  | 
                                                        
| 561 | 561 | |
| 562 | 562 |          if ($lockMode !== LockMode::OPTIMISTIC) { | 
                                                        
@@ -564,7 +564,7 @@ discard block  | 
                                                    ||
| 564 | 564 | }  | 
                                                        
| 565 | 565 | |
| 566 | 566 |          foreach ($this->selectedClasses as $selectedClass) { | 
                                                        
| 567 | -            if (! $selectedClass['class']->isVersioned()) { | 
                                                        |
| 567 | +            if ( ! $selectedClass['class']->isVersioned()) { | 
                                                        |
| 568 | 568 | throw OptimisticLockException::lockFailed($selectedClass['class']->getClassName());  | 
                                                        
| 569 | 569 | }  | 
                                                        
| 570 | 570 | }  | 
                                                        
@@ -613,7 +613,7 @@ discard block  | 
                                                    ||
| 613 | 613 |          foreach ($class->getIdentifierColumns($this->em) as $column) { | 
                                                        
| 614 | 614 | $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());  | 
                                                        
| 615 | 615 | |
| 616 | - $sqlParts[] = $tableAlias . '.' . $quotedColumnName;  | 
                                                        |
| 616 | + $sqlParts[] = $tableAlias.'.'.$quotedColumnName;  | 
                                                        |
| 617 | 617 | }  | 
                                                        
| 618 | 618 | |
| 619 | 619 |          return implode(', ', $sqlParts); | 
                                                        
@@ -631,7 +631,7 @@ discard block  | 
                                                    ||
| 631 | 631 |      { | 
                                                        
| 632 | 632 | $class = $this->queryComponents[$identificationVariable]['metadata'];  | 
                                                        
| 633 | 633 | |
| 634 | -        if (! $fieldName) { | 
                                                        |
| 634 | +        if ( ! $fieldName) { | 
                                                        |
| 635 | 635 | return $this->getSQLTableAlias($class->getTableName(), $identificationVariable);  | 
                                                        
| 636 | 636 | }  | 
                                                        
| 637 | 637 | |
@@ -660,7 +660,7 @@ discard block  | 
                                                    ||
| 660 | 660 | $property = $class->getProperty($fieldName);  | 
                                                        
| 661 | 661 | |
| 662 | 662 |                  if ($this->useSqlTableAliases) { | 
                                                        
| 663 | - $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName) . '.';  | 
                                                        |
| 663 | + $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName).'.';  | 
                                                        |
| 664 | 664 | }  | 
                                                        
| 665 | 665 | |
| 666 | 666 | $sql .= $this->platform->quoteIdentifier($property->getColumnName());  | 
                                                        
@@ -674,7 +674,7 @@ discard block  | 
                                                    ||
| 674 | 674 | $class = $this->queryComponents[$dqlAlias]['metadata'];  | 
                                                        
| 675 | 675 | $association = $class->getProperty($fieldName);  | 
                                                        
| 676 | 676 | |
| 677 | -                if (! $association->isOwningSide()) { | 
                                                        |
| 677 | +                if ( ! $association->isOwningSide()) { | 
                                                        |
| 678 | 678 | throw QueryException::associationPathInverseSideNotSupported($pathExpr);  | 
                                                        
| 679 | 679 | }  | 
                                                        
| 680 | 680 | |
@@ -688,7 +688,7 @@ discard block  | 
                                                    ||
| 688 | 688 | $joinColumn = reset($joinColumns);  | 
                                                        
| 689 | 689 | |
| 690 | 690 |                  if ($this->useSqlTableAliases) { | 
                                                        
| 691 | - $sql .= $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias) . '.';  | 
                                                        |
| 691 | + $sql .= $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias).'.';  | 
                                                        |
| 692 | 692 | }  | 
                                                        
| 693 | 693 | |
| 694 | 694 | $sql .= $this->platform->quoteIdentifier($joinColumn->getColumnName());  | 
                                                        
@@ -706,7 +706,7 @@ discard block  | 
                                                    ||
| 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) { | 
                                                        
@@ -749,7 +749,7 @@ discard block  | 
                                                    ||
| 749 | 749 | |
| 750 | 750 | $sqlSelectExpressions[] = sprintf(  | 
                                                        
| 751 | 751 | '%s AS %s',  | 
                                                        
| 752 | - $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . '.' . $quotedColumnName, $this->platform),  | 
                                                        |
| 752 | + $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.'.'.$quotedColumnName, $this->platform),  | 
                                                        |
| 753 | 753 | $sqlColumnAlias  | 
                                                        
| 754 | 754 | );  | 
                                                        
| 755 | 755 | |
@@ -759,7 +759,7 @@ discard block  | 
                                                    ||
| 759 | 759 | |
| 760 | 760 | // Add foreign key columns of class and also parent classes  | 
                                                        
| 761 | 761 |              foreach ($class->getPropertiesIterator() as $association) { | 
                                                        
| 762 | - if (! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())  | 
                                                        |
| 762 | + if ( ! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())  | 
                                                        |
| 763 | 763 |                      || ( ! $addMetaColumns && ! $association->isPrimaryKey())) { | 
                                                        
| 764 | 764 | continue;  | 
                                                        
| 765 | 765 | }  | 
                                                        
@@ -786,7 +786,7 @@ discard block  | 
                                                    ||
| 786 | 786 | }  | 
                                                        
| 787 | 787 | |
| 788 | 788 | // Add foreign key columns to SQL, if necessary  | 
                                                        
| 789 | -            if (! $addMetaColumns) { | 
                                                        |
| 789 | +            if ( ! $addMetaColumns) { | 
                                                        |
| 790 | 790 | continue;  | 
                                                        
| 791 | 791 | }  | 
                                                        
| 792 | 792 | |
@@ -800,7 +800,7 @@ discard block  | 
                                                    ||
| 800 | 800 | continue;  | 
                                                        
| 801 | 801 | }  | 
                                                        
| 802 | 802 | |
| 803 | -                    if (! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())) { | 
                                                        |
| 803 | +                    if ( ! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())) { | 
                                                        |
| 804 | 804 | continue;  | 
                                                        
| 805 | 805 | }  | 
                                                        
| 806 | 806 | |
@@ -826,7 +826,7 @@ discard block  | 
                                                    ||
| 826 | 826 | }  | 
                                                        
| 827 | 827 | }  | 
                                                        
| 828 | 828 | |
| 829 | -        return $sql . implode(', ', $sqlSelectExpressions); | 
                                                        |
| 829 | +        return $sql.implode(', ', $sqlSelectExpressions); | 
                                                        |
| 830 | 830 | }  | 
                                                        
| 831 | 831 | |
| 832 | 832 | /**  | 
                                                        
@@ -841,7 +841,7 @@ discard block  | 
                                                    ||
| 841 | 841 | $sqlParts[] = $this->walkIdentificationVariableDeclaration($identificationVariableDecl);  | 
                                                        
| 842 | 842 | }  | 
                                                        
| 843 | 843 | |
| 844 | -        return ' FROM ' . implode(', ', $sqlParts); | 
                                                        |
| 844 | +        return ' FROM '.implode(', ', $sqlParts); | 
                                                        |
| 845 | 845 | }  | 
                                                        
| 846 | 846 | |
| 847 | 847 | /**  | 
                                                        
@@ -916,8 +916,8 @@ discard block  | 
                                                    ||
| 916 | 916 | $tableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);  | 
                                                        
| 917 | 917 | $lockMode = $this->query->getHint(Query::HINT_LOCK_MODE);  | 
                                                        
| 918 | 918 | $sql = $lockMode !== false  | 
                                                        
| 919 | - ? $this->platform->appendLockHint($tableName . ' ' . $tableAlias, $lockMode)  | 
                                                        |
| 920 | - : $tableName . ' ' . $tableAlias;  | 
                                                        |
| 919 | + ? $this->platform->appendLockHint($tableName.' '.$tableAlias, $lockMode)  | 
                                                        |
| 920 | + : $tableName.' '.$tableAlias;  | 
                                                        |
| 921 | 921 | |
| 922 | 922 |          if ($class->inheritanceType !== InheritanceType::JOINED) { | 
                                                        
| 923 | 923 | return $sql;  | 
                                                        
@@ -925,11 +925,11 @@ discard block  | 
                                                    ||
| 925 | 925 | |
| 926 | 926 | $classTableInheritanceJoins = $this->generateClassTableInheritanceJoins($class, $dqlAlias);  | 
                                                        
| 927 | 927 | |
| 928 | -        if (! $buildNestedJoins) { | 
                                                        |
| 929 | - return $sql . $classTableInheritanceJoins;  | 
                                                        |
| 928 | +        if ( ! $buildNestedJoins) { | 
                                                        |
| 929 | + return $sql.$classTableInheritanceJoins;  | 
                                                        |
| 930 | 930 | }  | 
                                                        
| 931 | 931 | |
| 932 | -        return $classTableInheritanceJoins === '' ? $sql : '(' . $sql . $classTableInheritanceJoins . ')'; | 
                                                        |
| 932 | +        return $classTableInheritanceJoins === '' ? $sql : '('.$sql.$classTableInheritanceJoins.')'; | 
                                                        |
| 933 | 933 | }  | 
                                                        
| 934 | 934 | |
| 935 | 935 | /**  | 
                                                        
@@ -965,7 +965,7 @@ discard block  | 
                                                    ||
| 965 | 965 | : $association;  | 
                                                        
| 966 | 966 | |
| 967 | 967 | if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) === true &&  | 
                                                        
| 968 | -            (! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) { | 
                                                        |
| 968 | +            ( ! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) { | 
                                                        |
| 969 | 969 |              if ($association instanceof ToManyAssociationMetadata) { | 
                                                        
| 970 | 970 | throw QueryException::iterateWithFetchJoinNotAllowed($owningAssociation);  | 
                                                        
| 971 | 971 | }  | 
                                                        
@@ -1019,7 +1019,7 @@ discard block  | 
                                                    ||
| 1019 | 1019 | }  | 
                                                        
| 1020 | 1020 | |
| 1021 | 1021 | $targetTableJoin = [  | 
                                                        
| 1022 | - 'table' => $targetTableName . ' ' . $targetTableAlias,  | 
                                                        |
| 1022 | + 'table' => $targetTableName.' '.$targetTableAlias,  | 
                                                        |
| 1023 | 1023 |                  'condition' => implode(' AND ', $conditions), | 
                                                        
| 1024 | 1024 | ];  | 
                                                        
| 1025 | 1025 |          } elseif ($owningAssociation instanceof ManyToManyAssociationMetadata) { | 
                                                        
@@ -1046,7 +1046,7 @@ discard block  | 
                                                    ||
| 1046 | 1046 | );  | 
                                                        
| 1047 | 1047 | }  | 
                                                        
| 1048 | 1048 | |
| 1049 | -            $sql .= $joinTableName . ' ' . $joinTableAlias . ' ON ' . implode(' AND ', $conditions); | 
                                                        |
| 1049 | +            $sql .= $joinTableName.' '.$joinTableAlias.' ON '.implode(' AND ', $conditions); | 
                                                        |
| 1050 | 1050 | |
| 1051 | 1051 | // Join target table  | 
                                                        
| 1052 | 1052 | $sql .= $joinType === AST\Join::JOIN_TYPE_LEFT || $joinType === AST\Join::JOIN_TYPE_LEFTOUTER ? ' LEFT JOIN ' : ' INNER JOIN ';  | 
                                                        
@@ -1084,7 +1084,7 @@ discard block  | 
                                                    ||
| 1084 | 1084 | }  | 
                                                        
| 1085 | 1085 | |
| 1086 | 1086 | $targetTableJoin = [  | 
                                                        
| 1087 | - 'table' => $targetTableName . ' ' . $targetTableAlias,  | 
                                                        |
| 1087 | + 'table' => $targetTableName.' '.$targetTableAlias,  | 
                                                        |
| 1088 | 1088 |                  'condition' => implode(' AND ', $conditions), | 
                                                        
| 1089 | 1089 | ];  | 
                                                        
| 1090 | 1090 |          } else { | 
                                                        
@@ -1092,23 +1092,23 @@ discard block  | 
                                                    ||
| 1092 | 1092 | }  | 
                                                        
| 1093 | 1093 | |
| 1094 | 1094 | // Handle WITH clause  | 
                                                        
| 1095 | -        $withCondition = $condExpr === null ? '' : ('(' . $this->walkConditionalExpression($condExpr) . ')'); | 
                                                        |
| 1095 | +        $withCondition = $condExpr === null ? '' : ('('.$this->walkConditionalExpression($condExpr).')'); | 
                                                        |
| 1096 | 1096 | |
| 1097 | 1097 |          if ($targetClass->inheritanceType === InheritanceType::JOINED) { | 
                                                        
| 1098 | 1098 | $ctiJoins = $this->generateClassTableInheritanceJoins($targetClass, $joinedDqlAlias);  | 
                                                        
| 1099 | 1099 | |
| 1100 | 1100 | // If we have WITH condition, we need to build nested joins for target class table and cti joins  | 
                                                        
| 1101 | 1101 |              if ($withCondition) { | 
                                                        
| 1102 | -                $sql .= '(' . $targetTableJoin['table'] . $ctiJoins . ') ON ' . $targetTableJoin['condition']; | 
                                                        |
| 1102 | +                $sql .= '('.$targetTableJoin['table'].$ctiJoins.') ON '.$targetTableJoin['condition']; | 
                                                        |
| 1103 | 1103 |              } else { | 
                                                        
| 1104 | - $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'] . $ctiJoins;  | 
                                                        |
| 1104 | + $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'].$ctiJoins;  | 
                                                        |
| 1105 | 1105 | }  | 
                                                        
| 1106 | 1106 |          } else { | 
                                                        
| 1107 | - $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'];  | 
                                                        |
| 1107 | + $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'];  | 
                                                        |
| 1108 | 1108 | }  | 
                                                        
| 1109 | 1109 | |
| 1110 | 1110 |          if ($withCondition) { | 
                                                        
| 1111 | - $sql .= ' AND ' . $withCondition;  | 
                                                        |
| 1111 | + $sql .= ' AND '.$withCondition;  | 
                                                        |
| 1112 | 1112 | }  | 
                                                        
| 1113 | 1113 | |
| 1114 | 1114 | // Apply the indexes  | 
                                                        
@@ -1142,7 +1142,7 @@ discard block  | 
                                                    ||
| 1142 | 1142 | $orderByItems = array_merge($orderByItems, (array) $collectionOrderByItems);  | 
                                                        
| 1143 | 1143 | }  | 
                                                        
| 1144 | 1144 | |
| 1145 | -        return ' ORDER BY ' . implode(', ', $orderByItems); | 
                                                        |
| 1145 | +        return ' ORDER BY '.implode(', ', $orderByItems); | 
                                                        |
| 1146 | 1146 | }  | 
                                                        
| 1147 | 1147 | |
| 1148 | 1148 | /**  | 
                                                        
@@ -1159,10 +1159,10 @@ discard block  | 
                                                    ||
| 1159 | 1159 | $this->orderedColumnsMap[$sql] = $type;  | 
                                                        
| 1160 | 1160 | |
| 1161 | 1161 |          if ($expr instanceof AST\Subselect) { | 
                                                        
| 1162 | -            return '(' . $sql . ') ' . $type; | 
                                                        |
| 1162 | +            return '('.$sql.') '.$type; | 
                                                        |
| 1163 | 1163 | }  | 
                                                        
| 1164 | 1164 | |
| 1165 | - return $sql . ' ' . $type;  | 
                                                        |
| 1165 | + return $sql.' '.$type;  | 
                                                        |
| 1166 | 1166 | }  | 
                                                        
| 1167 | 1167 | |
| 1168 | 1168 | /**  | 
                                                        
@@ -1170,7 +1170,7 @@ discard block  | 
                                                    ||
| 1170 | 1170 | */  | 
                                                        
| 1171 | 1171 | public function walkHavingClause($havingClause)  | 
                                                        
| 1172 | 1172 |      { | 
                                                        
| 1173 | - return ' HAVING ' . $this->walkConditionalExpression($havingClause->conditionalExpression);  | 
                                                        |
| 1173 | + return ' HAVING '.$this->walkConditionalExpression($havingClause->conditionalExpression);  | 
                                                        |
| 1174 | 1174 | }  | 
                                                        
| 1175 | 1175 | |
| 1176 | 1176 | /**  | 
                                                        
@@ -1193,7 +1193,7 @@ discard block  | 
                                                    ||
| 1193 | 1193 | $conditions = [];  | 
                                                        
| 1194 | 1194 | |
| 1195 | 1195 |                  if ($join->conditionalExpression) { | 
                                                        
| 1196 | -                    $conditions[] = '(' . $this->walkConditionalExpression($join->conditionalExpression) . ')'; | 
                                                        |
| 1196 | +                    $conditions[] = '('.$this->walkConditionalExpression($join->conditionalExpression).')'; | 
                                                        |
| 1197 | 1197 | }  | 
                                                        
| 1198 | 1198 | |
| 1199 | 1199 | $isUnconditionalJoin = empty($conditions);  | 
                                                        
@@ -1218,7 +1218,7 @@ discard block  | 
                                                    ||
| 1218 | 1218 | }  | 
                                                        
| 1219 | 1219 | |
| 1220 | 1220 |                  if ($conditions) { | 
                                                        
| 1221 | -                    $sql .= $condExprConjunction . implode(' AND ', $conditions); | 
                                                        |
| 1221 | +                    $sql .= $condExprConjunction.implode(' AND ', $conditions); | 
                                                        |
| 1222 | 1222 | }  | 
                                                        
| 1223 | 1223 | |
| 1224 | 1224 | break;  | 
                                                        
@@ -1248,7 +1248,7 @@ discard block  | 
                                                    ||
| 1248 | 1248 | $scalarExpressions[] = $this->walkSimpleArithmeticExpression($scalarExpression);  | 
                                                        
| 1249 | 1249 | }  | 
                                                        
| 1250 | 1250 | |
| 1251 | -        return $sql . implode(', ', $scalarExpressions) . ')'; | 
                                                        |
| 1251 | +        return $sql.implode(', ', $scalarExpressions).')'; | 
                                                        |
| 1252 | 1252 | }  | 
                                                        
| 1253 | 1253 | |
| 1254 | 1254 | /**  | 
                                                        
@@ -1268,7 +1268,7 @@ discard block  | 
                                                    ||
| 1268 | 1268 | ? $this->conn->quote($nullIfExpression->secondExpression)  | 
                                                        
| 1269 | 1269 | : $this->walkSimpleArithmeticExpression($nullIfExpression->secondExpression);  | 
                                                        
| 1270 | 1270 | |
| 1271 | -        return 'NULLIF(' . $firstExpression . ', ' . $secondExpression . ')'; | 
                                                        |
| 1271 | +        return 'NULLIF('.$firstExpression.', '.$secondExpression.')'; | 
                                                        |
| 1272 | 1272 | }  | 
                                                        
| 1273 | 1273 | |
| 1274 | 1274 | /**  | 
                                                        
@@ -1281,11 +1281,11 @@ discard block  | 
                                                    ||
| 1281 | 1281 | $sql = 'CASE';  | 
                                                        
| 1282 | 1282 | |
| 1283 | 1283 |          foreach ($generalCaseExpression->whenClauses as $whenClause) { | 
                                                        
| 1284 | - $sql .= ' WHEN ' . $this->walkConditionalExpression($whenClause->caseConditionExpression);  | 
                                                        |
| 1285 | - $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);  | 
                                                        |
| 1284 | + $sql .= ' WHEN '.$this->walkConditionalExpression($whenClause->caseConditionExpression);  | 
                                                        |
| 1285 | + $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);  | 
                                                        |
| 1286 | 1286 | }  | 
                                                        
| 1287 | 1287 | |
| 1288 | - $sql .= ' ELSE ' . $this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression) . ' END';  | 
                                                        |
| 1288 | + $sql .= ' ELSE '.$this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression).' END';  | 
                                                        |
| 1289 | 1289 | |
| 1290 | 1290 | return $sql;  | 
                                                        
| 1291 | 1291 | }  | 
                                                        
@@ -1299,14 +1299,14 @@ discard block  | 
                                                    ||
| 1299 | 1299 | */  | 
                                                        
| 1300 | 1300 | public function walkSimpleCaseExpression($simpleCaseExpression)  | 
                                                        
| 1301 | 1301 |      { | 
                                                        
| 1302 | - $sql = 'CASE ' . $this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);  | 
                                                        |
| 1302 | + $sql = 'CASE '.$this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);  | 
                                                        |
| 1303 | 1303 | |
| 1304 | 1304 |          foreach ($simpleCaseExpression->simpleWhenClauses as $simpleWhenClause) { | 
                                                        
| 1305 | - $sql .= ' WHEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);  | 
                                                        |
| 1306 | - $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);  | 
                                                        |
| 1305 | + $sql .= ' WHEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);  | 
                                                        |
| 1306 | + $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);  | 
                                                        |
| 1307 | 1307 | }  | 
                                                        
| 1308 | 1308 | |
| 1309 | - $sql .= ' ELSE ' . $this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression) . ' END';  | 
                                                        |
| 1309 | + $sql .= ' ELSE '.$this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression).' END';  | 
                                                        |
| 1310 | 1310 | |
| 1311 | 1311 | return $sql;  | 
                                                        
| 1312 | 1312 | }  | 
                                                        
@@ -1347,7 +1347,7 @@ discard block  | 
                                                    ||
| 1347 | 1347 | |
| 1348 | 1348 | $this->scalarResultAliasMap[$resultAlias] = $columnAlias;  | 
                                                        
| 1349 | 1349 | |
| 1350 | -                if (! $hidden) { | 
                                                        |
| 1350 | +                if ( ! $hidden) { | 
                                                        |
| 1351 | 1351 | $this->rsm->addScalarResult($columnAlias, $resultAlias, $property->getType());  | 
                                                        
| 1352 | 1352 | $this->scalarFields[$dqlAlias][$fieldName] = $columnAlias;  | 
                                                        
| 1353 | 1353 | }  | 
                                                        
@@ -1368,11 +1368,11 @@ discard block  | 
                                                    ||
| 1368 | 1368 | $columnAlias = $this->getSQLColumnAlias();  | 
                                                        
| 1369 | 1369 | $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;  | 
                                                        
| 1370 | 1370 | |
| 1371 | - $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;  | 
                                                        |
| 1371 | + $sql .= $expr->dispatch($this).' AS '.$columnAlias;  | 
                                                        |
| 1372 | 1372 | |
| 1373 | 1373 | $this->scalarResultAliasMap[$resultAlias] = $columnAlias;  | 
                                                        
| 1374 | 1374 | |
| 1375 | -                if (! $hidden) { | 
                                                        |
| 1375 | +                if ( ! $hidden) { | 
                                                        |
| 1376 | 1376 | // Conceptually we could resolve field type here by traverse through AST to retrieve field type,  | 
                                                        
| 1377 | 1377 | // but this is not a feasible solution; assume 'string'.  | 
                                                        
| 1378 | 1378 |                      $this->rsm->addScalarResult($columnAlias, $resultAlias, Type::getType('string')); | 
                                                        
@@ -1383,11 +1383,11 @@ discard block  | 
                                                    ||
| 1383 | 1383 | $columnAlias = $this->getSQLColumnAlias();  | 
                                                        
| 1384 | 1384 | $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;  | 
                                                        
| 1385 | 1385 | |
| 1386 | -                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias; | 
                                                        |
| 1386 | +                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias; | 
                                                        |
| 1387 | 1387 | |
| 1388 | 1388 | $this->scalarResultAliasMap[$resultAlias] = $columnAlias;  | 
                                                        
| 1389 | 1389 | |
| 1390 | -                if (! $hidden) { | 
                                                        |
| 1390 | +                if ( ! $hidden) { | 
                                                        |
| 1391 | 1391 | // We cannot resolve field type here; assume 'string'.  | 
                                                        
| 1392 | 1392 |                      $this->rsm->addScalarResult($columnAlias, $resultAlias, Type::getType('string')); | 
                                                        
| 1393 | 1393 | }  | 
                                                        
@@ -1411,7 +1411,7 @@ discard block  | 
                                                    ||
| 1411 | 1411 | $class = $queryComp['metadata'];  | 
                                                        
| 1412 | 1412 | $resultAlias = $selectExpression->fieldIdentificationVariable ?: null;  | 
                                                        
| 1413 | 1413 | |
| 1414 | -                if (! isset($this->selectedClasses[$dqlAlias])) { | 
                                                        |
| 1414 | +                if ( ! isset($this->selectedClasses[$dqlAlias])) { | 
                                                        |
| 1415 | 1415 | $this->selectedClasses[$dqlAlias] = [  | 
                                                        
| 1416 | 1416 | 'class' => $class,  | 
                                                        
| 1417 | 1417 | 'dqlAlias' => $dqlAlias,  | 
                                                        
@@ -1423,7 +1423,7 @@ discard block  | 
                                                    ||
| 1423 | 1423 | |
| 1424 | 1424 | // Select all fields from the queried class  | 
                                                        
| 1425 | 1425 |                  foreach ($class->getPropertiesIterator() as $fieldName => $property) { | 
                                                        
| 1426 | -                    if (! ($property instanceof FieldMetadata)) { | 
                                                        |
| 1426 | +                    if ( ! ($property instanceof FieldMetadata)) { | 
                                                        |
| 1427 | 1427 | continue;  | 
                                                        
| 1428 | 1428 | }  | 
                                                        
| 1429 | 1429 | |
@@ -1458,7 +1458,7 @@ discard block  | 
                                                    ||
| 1458 | 1458 | $subClass = $this->em->getClassMetadata($subClassName);  | 
                                                        
| 1459 | 1459 | |
| 1460 | 1460 |                          foreach ($subClass->getPropertiesIterator() as $fieldName => $property) { | 
                                                        
| 1461 | -                            if (! ($property instanceof FieldMetadata)) { | 
                                                        |
| 1461 | +                            if ( ! ($property instanceof FieldMetadata)) { | 
                                                        |
| 1462 | 1462 | continue;  | 
                                                        
| 1463 | 1463 | }  | 
                                                        
| 1464 | 1464 | |
@@ -1497,7 +1497,7 @@ discard block  | 
                                                    ||
| 1497 | 1497 | */  | 
                                                        
| 1498 | 1498 | public function walkQuantifiedExpression($qExpr)  | 
                                                        
| 1499 | 1499 |      { | 
                                                        
| 1500 | -        return ' ' . strtoupper($qExpr->type) . '(' . $this->walkSubselect($qExpr->subselect) . ')'; | 
                                                        |
| 1500 | +        return ' '.strtoupper($qExpr->type).'('.$this->walkSubselect($qExpr->subselect).')'; | 
                                                        |
| 1501 | 1501 | }  | 
                                                        
| 1502 | 1502 | |
| 1503 | 1503 | /**  | 
                                                        
@@ -1537,7 +1537,7 @@ discard block  | 
                                                    ||
| 1537 | 1537 | $sqlParts[] = $this->walkIdentificationVariableDeclaration($subselectIdVarDecl);  | 
                                                        
| 1538 | 1538 | }  | 
                                                        
| 1539 | 1539 | |
| 1540 | -        return ' FROM ' . implode(', ', $sqlParts); | 
                                                        |
| 1540 | +        return ' FROM '.implode(', ', $sqlParts); | 
                                                        |
| 1541 | 1541 | }  | 
                                                        
| 1542 | 1542 | |
| 1543 | 1543 | /**  | 
                                                        
@@ -1545,7 +1545,7 @@ discard block  | 
                                                    ||
| 1545 | 1545 | */  | 
                                                        
| 1546 | 1546 | public function walkSimpleSelectClause($simpleSelectClause)  | 
                                                        
| 1547 | 1547 |      { | 
                                                        
| 1548 | - return 'SELECT' . ($simpleSelectClause->isDistinct ? ' DISTINCT' : '')  | 
                                                        |
| 1548 | + return 'SELECT'.($simpleSelectClause->isDistinct ? ' DISTINCT' : '')  | 
                                                        |
| 1549 | 1549 | . $this->walkSimpleSelectExpression($simpleSelectClause->simpleSelectExpression);  | 
                                                        
| 1550 | 1550 | }  | 
                                                        
| 1551 | 1551 | |
@@ -1579,7 +1579,7 @@ discard block  | 
                                                    ||
| 1579 | 1579 | break;  | 
                                                        
| 1580 | 1580 | |
| 1581 | 1581 | case $e instanceof AST\Subselect:  | 
                                                        
| 1582 | -                    $sqlSelectExpressions[] = '(' . $e->dispatch($this) . ') AS ' . $columnAlias; | 
                                                        |
| 1582 | +                    $sqlSelectExpressions[] = '('.$e->dispatch($this).') AS '.$columnAlias; | 
                                                        |
| 1583 | 1583 | break;  | 
                                                        
| 1584 | 1584 | |
| 1585 | 1585 | case $e instanceof AST\PathExpression:  | 
                                                        
@@ -1588,7 +1588,7 @@ discard block  | 
                                                    ||
| 1588 | 1588 | $class = $qComp['metadata'];  | 
                                                        
| 1589 | 1589 | $fieldType = $class->getProperty($e->field)->getType();  | 
                                                        
| 1590 | 1590 | |
| 1591 | - $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;  | 
                                                        |
| 1591 | + $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;  | 
                                                        |
| 1592 | 1592 | break;  | 
                                                        
| 1593 | 1593 | |
| 1594 | 1594 | case $e instanceof AST\Literal:  | 
                                                        
@@ -1602,11 +1602,11 @@ discard block  | 
                                                    ||
| 1602 | 1602 | break;  | 
                                                        
| 1603 | 1603 | }  | 
                                                        
| 1604 | 1604 | |
| 1605 | - $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;  | 
                                                        |
| 1605 | + $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;  | 
                                                        |
| 1606 | 1606 | break;  | 
                                                        
| 1607 | 1607 | |
| 1608 | 1608 | default:  | 
                                                        
| 1609 | - $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;  | 
                                                        |
| 1609 | + $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;  | 
                                                        |
| 1610 | 1610 | break;  | 
                                                        
| 1611 | 1611 | }  | 
                                                        
| 1612 | 1612 | |
@@ -1639,10 +1639,10 @@ discard block  | 
                                                    ||
| 1639 | 1639 | case $expr instanceof AST\Subselect:  | 
                                                        
| 1640 | 1640 | $alias = $simpleSelectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;  | 
                                                        
| 1641 | 1641 | |
| 1642 | - $columnAlias = 'sclr' . $this->aliasCounter++;  | 
                                                        |
| 1642 | + $columnAlias = 'sclr'.$this->aliasCounter++;  | 
                                                        |
| 1643 | 1643 | $this->scalarResultAliasMap[$alias] = $columnAlias;  | 
                                                        
| 1644 | 1644 | |
| 1645 | -                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias; | 
                                                        |
| 1645 | +                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias; | 
                                                        |
| 1646 | 1646 | break;  | 
                                                        
| 1647 | 1647 | |
| 1648 | 1648 | case $expr instanceof AST\Functions\FunctionNode:  | 
                                                        
@@ -1659,7 +1659,7 @@ discard block  | 
                                                    ||
| 1659 | 1659 | $columnAlias = $this->getSQLColumnAlias();  | 
                                                        
| 1660 | 1660 | $this->scalarResultAliasMap[$alias] = $columnAlias;  | 
                                                        
| 1661 | 1661 | |
| 1662 | - $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;  | 
                                                        |
| 1662 | + $sql .= $expr->dispatch($this).' AS '.$columnAlias;  | 
                                                        |
| 1663 | 1663 | break;  | 
                                                        
| 1664 | 1664 | |
| 1665 | 1665 | case $expr instanceof AST\ParenthesisExpression:  | 
                                                        
@@ -1679,8 +1679,8 @@ discard block  | 
                                                    ||
| 1679 | 1679 | */  | 
                                                        
| 1680 | 1680 | public function walkAggregateExpression($aggExpression)  | 
                                                        
| 1681 | 1681 |      { | 
                                                        
| 1682 | -        return $aggExpression->functionName . '(' . ($aggExpression->isDistinct ? 'DISTINCT ' : '') | 
                                                        |
| 1683 | - . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression) . ')';  | 
                                                        |
| 1682 | +        return $aggExpression->functionName.'('.($aggExpression->isDistinct ? 'DISTINCT ' : '') | 
                                                        |
| 1683 | + . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression).')';  | 
                                                        |
| 1684 | 1684 | }  | 
                                                        
| 1685 | 1685 | |
| 1686 | 1686 | /**  | 
                                                        
@@ -1694,7 +1694,7 @@ discard block  | 
                                                    ||
| 1694 | 1694 | $sqlParts[] = $this->walkGroupByItem($groupByItem);  | 
                                                        
| 1695 | 1695 | }  | 
                                                        
| 1696 | 1696 | |
| 1697 | -        return ' GROUP BY ' . implode(', ', $sqlParts); | 
                                                        |
| 1697 | +        return ' GROUP BY '.implode(', ', $sqlParts); | 
                                                        |
| 1698 | 1698 | }  | 
                                                        
| 1699 | 1699 | |
| 1700 | 1700 | /**  | 
                                                        
@@ -1703,7 +1703,7 @@ discard block  | 
                                                    ||
| 1703 | 1703 | public function walkGroupByItem($groupByItem)  | 
                                                        
| 1704 | 1704 |      { | 
                                                        
| 1705 | 1705 | // StateFieldPathExpression  | 
                                                        
| 1706 | -        if (! is_string($groupByItem)) { | 
                                                        |
| 1706 | +        if ( ! is_string($groupByItem)) { | 
                                                        |
| 1707 | 1707 | return $this->walkPathExpression($groupByItem);  | 
                                                        
| 1708 | 1708 | }  | 
                                                        
| 1709 | 1709 | |
@@ -1757,7 +1757,7 @@ discard block  | 
                                                    ||
| 1757 | 1757 |      { | 
                                                        
| 1758 | 1758 | $class = $this->em->getClassMetadata($deleteClause->abstractSchemaName);  | 
                                                        
| 1759 | 1759 | $tableName = $class->getTableName();  | 
                                                        
| 1760 | - $sql = 'DELETE FROM ' . $class->table->getQuotedQualifiedName($this->platform);  | 
                                                        |
| 1760 | + $sql = 'DELETE FROM '.$class->table->getQuotedQualifiedName($this->platform);  | 
                                                        |
| 1761 | 1761 | |
| 1762 | 1762 | $this->setSQLTableAlias($tableName, $tableName, $deleteClause->aliasIdentificationVariable);  | 
                                                        
| 1763 | 1763 | |
@@ -1773,12 +1773,12 @@ discard block  | 
                                                    ||
| 1773 | 1773 |      { | 
                                                        
| 1774 | 1774 | $class = $this->em->getClassMetadata($updateClause->abstractSchemaName);  | 
                                                        
| 1775 | 1775 | $tableName = $class->getTableName();  | 
                                                        
| 1776 | - $sql = 'UPDATE ' . $class->table->getQuotedQualifiedName($this->platform);  | 
                                                        |
| 1776 | + $sql = 'UPDATE '.$class->table->getQuotedQualifiedName($this->platform);  | 
                                                        |
| 1777 | 1777 | |
| 1778 | 1778 | $this->setSQLTableAlias($tableName, $tableName, $updateClause->aliasIdentificationVariable);  | 
                                                        
| 1779 | 1779 | $this->rootAliases[] = $updateClause->aliasIdentificationVariable;  | 
                                                        
| 1780 | 1780 | |
| 1781 | -        return $sql . ' SET ' . implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems)); | 
                                                        |
| 1781 | +        return $sql.' SET '.implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems)); | 
                                                        |
| 1782 | 1782 | }  | 
                                                        
| 1783 | 1783 | |
| 1784 | 1784 | /**  | 
                                                        
@@ -1789,7 +1789,7 @@ discard block  | 
                                                    ||
| 1789 | 1789 | $useTableAliasesBefore = $this->useSqlTableAliases;  | 
                                                        
| 1790 | 1790 | $this->useSqlTableAliases = false;  | 
                                                        
| 1791 | 1791 | |
| 1792 | - $sql = $this->walkPathExpression($updateItem->pathExpression) . ' = ';  | 
                                                        |
| 1792 | + $sql = $this->walkPathExpression($updateItem->pathExpression).' = ';  | 
                                                        |
| 1793 | 1793 | $newValue = $updateItem->newValue;  | 
                                                        
| 1794 | 1794 | |
| 1795 | 1795 |          switch (true) { | 
                                                        
@@ -1833,7 +1833,7 @@ discard block  | 
                                                    ||
| 1833 | 1833 | |
| 1834 | 1834 |              if ($filterClauses) { | 
                                                        
| 1835 | 1835 |                  if ($condSql) { | 
                                                        
| 1836 | -                    $condSql = '(' . $condSql . ') AND '; | 
                                                        |
| 1836 | +                    $condSql = '('.$condSql.') AND '; | 
                                                        |
| 1837 | 1837 | }  | 
                                                        
| 1838 | 1838 | |
| 1839 | 1839 |                  $condSql .= implode(' AND ', $filterClauses); | 
                                                        
@@ -1841,11 +1841,11 @@ discard block  | 
                                                    ||
| 1841 | 1841 | }  | 
                                                        
| 1842 | 1842 | |
| 1843 | 1843 |          if ($condSql) { | 
                                                        
| 1844 | -            return ' WHERE ' . (! $discrSql ? $condSql : '(' . $condSql . ') AND ' . $discrSql); | 
                                                        |
| 1844 | +            return ' WHERE '.( ! $discrSql ? $condSql : '('.$condSql.') AND '.$discrSql); | 
                                                        |
| 1845 | 1845 | }  | 
                                                        
| 1846 | 1846 | |
| 1847 | 1847 |          if ($discrSql) { | 
                                                        
| 1848 | - return ' WHERE ' . $discrSql;  | 
                                                        |
| 1848 | + return ' WHERE '.$discrSql;  | 
                                                        |
| 1849 | 1849 | }  | 
                                                        
| 1850 | 1850 | |
| 1851 | 1851 | return '';  | 
                                                        
@@ -1858,7 +1858,7 @@ discard block  | 
                                                    ||
| 1858 | 1858 |      { | 
                                                        
| 1859 | 1859 | // Phase 2 AST optimization: Skip processing of ConditionalExpression  | 
                                                        
| 1860 | 1860 | // if only one ConditionalTerm is defined  | 
                                                        
| 1861 | -        if (! ($condExpr instanceof AST\ConditionalExpression)) { | 
                                                        |
| 1861 | +        if ( ! ($condExpr instanceof AST\ConditionalExpression)) { | 
                                                        |
| 1862 | 1862 | return $this->walkConditionalTerm($condExpr);  | 
                                                        
| 1863 | 1863 | }  | 
                                                        
| 1864 | 1864 | |
@@ -1872,7 +1872,7 @@ discard block  | 
                                                    ||
| 1872 | 1872 |      { | 
                                                        
| 1873 | 1873 | // Phase 2 AST optimization: Skip processing of ConditionalTerm  | 
                                                        
| 1874 | 1874 | // if only one ConditionalFactor is defined  | 
                                                        
| 1875 | -        if (! ($condTerm instanceof AST\ConditionalTerm)) { | 
                                                        |
| 1875 | +        if ( ! ($condTerm instanceof AST\ConditionalTerm)) { | 
                                                        |
| 1876 | 1876 | return $this->walkConditionalFactor($condTerm);  | 
                                                        
| 1877 | 1877 | }  | 
                                                        
| 1878 | 1878 | |
@@ -1888,7 +1888,7 @@ discard block  | 
                                                    ||
| 1888 | 1888 | // if only one ConditionalPrimary is defined  | 
                                                        
| 1889 | 1889 | return ! ($factor instanceof AST\ConditionalFactor)  | 
                                                        
| 1890 | 1890 | ? $this->walkConditionalPrimary($factor)  | 
                                                        
| 1891 | - : ($factor->not ? 'NOT ' : '') . $this->walkConditionalPrimary($factor->conditionalPrimary);  | 
                                                        |
| 1891 | + : ($factor->not ? 'NOT ' : '').$this->walkConditionalPrimary($factor->conditionalPrimary);  | 
                                                        |
| 1892 | 1892 | }  | 
                                                        
| 1893 | 1893 | |
| 1894 | 1894 | /**  | 
                                                        
@@ -1903,7 +1903,7 @@ discard block  | 
                                                    ||
| 1903 | 1903 |          if ($primary->isConditionalExpression()) { | 
                                                        
| 1904 | 1904 | $condExpr = $primary->conditionalExpression;  | 
                                                        
| 1905 | 1905 | |
| 1906 | -            return '(' . $this->walkConditionalExpression($condExpr) . ')'; | 
                                                        |
| 1906 | +            return '('.$this->walkConditionalExpression($condExpr).')'; | 
                                                        |
| 1907 | 1907 | }  | 
                                                        
| 1908 | 1908 | |
| 1909 | 1909 | return '';  | 
                                                        
@@ -1916,7 +1916,7 @@ discard block  | 
                                                    ||
| 1916 | 1916 |      { | 
                                                        
| 1917 | 1917 | $sql = $existsExpr->not ? 'NOT ' : '';  | 
                                                        
| 1918 | 1918 | |
| 1919 | -        $sql .= 'EXISTS (' . $this->walkSubselect($existsExpr->subselect) . ')'; | 
                                                        |
| 1919 | +        $sql .= 'EXISTS ('.$this->walkSubselect($existsExpr->subselect).')'; | 
                                                        |
| 1920 | 1920 | |
| 1921 | 1921 | return $sql;  | 
                                                        
| 1922 | 1922 | }  | 
                                                        
@@ -1964,7 +1964,7 @@ discard block  | 
                                                    ||
| 1964 | 1964 | $targetTableAlias = $this->getSQLTableAlias($targetClass->getTableName());  | 
                                                        
| 1965 | 1965 | $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);  | 
                                                        
| 1966 | 1966 | |
| 1967 | - $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE ';  | 
                                                        |
| 1967 | + $sql .= $targetTableName.' '.$targetTableAlias.' WHERE ';  | 
                                                        |
| 1968 | 1968 | |
| 1969 | 1969 | $sqlParts = [];  | 
                                                        
| 1970 | 1970 | |
@@ -1985,7 +1985,7 @@ discard block  | 
                                                    ||
| 1985 | 1985 | $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);  | 
                                                        
| 1986 | 1986 | }  | 
                                                        
| 1987 | 1987 | |
| 1988 | - $sqlParts[] = $targetTableAlias . '.' . $quotedTargetColumnName . ' = ' . $entitySql;  | 
                                                        |
| 1988 | + $sqlParts[] = $targetTableAlias.'.'.$quotedTargetColumnName.' = '.$entitySql;  | 
                                                        |
| 1989 | 1989 | }  | 
                                                        
| 1990 | 1990 | |
| 1991 | 1991 |              $sql .= implode(' AND ', $sqlParts); | 
                                                        
@@ -1999,7 +1999,7 @@ discard block  | 
                                                    ||
| 1999 | 1999 | $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);  | 
                                                        
| 2000 | 2000 | |
| 2001 | 2001 | // join to target table  | 
                                                        
| 2002 | - $sql .= $joinTableName . ' ' . $joinTableAlias . ' INNER JOIN ' . $targetTableName . ' ' . $targetTableAlias . ' ON ';  | 
                                                        |
| 2002 | + $sql .= $joinTableName.' '.$joinTableAlias.' INNER JOIN '.$targetTableName.' '.$targetTableAlias.' ON ';  | 
                                                        |
| 2003 | 2003 | |
| 2004 | 2004 | // join conditions  | 
                                                        
| 2005 | 2005 | $joinSqlParts = [];  | 
                                                        
@@ -2048,13 +2048,13 @@ discard block  | 
                                                    ||
| 2048 | 2048 | $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);  | 
                                                        
| 2049 | 2049 | }  | 
                                                        
| 2050 | 2050 | |
| 2051 | - $sqlParts[] = $targetTableAlias . '.' . $quotedTargetColumnName . ' = ' . $entitySql;  | 
                                                        |
| 2051 | + $sqlParts[] = $targetTableAlias.'.'.$quotedTargetColumnName.' = '.$entitySql;  | 
                                                        |
| 2052 | 2052 | }  | 
                                                        
| 2053 | 2053 | |
| 2054 | 2054 |              $sql .= implode(' AND ', $sqlParts); | 
                                                        
| 2055 | 2055 | }  | 
                                                        
| 2056 | 2056 | |
| 2057 | - return $sql . ')';  | 
                                                        |
| 2057 | + return $sql.')';  | 
                                                        |
| 2058 | 2058 | }  | 
                                                        
| 2059 | 2059 | |
| 2060 | 2060 | /**  | 
                                                        
@@ -2065,7 +2065,7 @@ discard block  | 
                                                    ||
| 2065 | 2065 |          $sizeFunc                           = new AST\Functions\SizeFunction('size'); | 
                                                        
| 2066 | 2066 | $sizeFunc->collectionPathExpression = $emptyCollCompExpr->expression;  | 
                                                        
| 2067 | 2067 | |
| 2068 | - return $sizeFunc->getSql($this) . ($emptyCollCompExpr->not ? ' > 0' : ' = 0');  | 
                                                        |
| 2068 | + return $sizeFunc->getSql($this).($emptyCollCompExpr->not ? ' > 0' : ' = 0');  | 
                                                        |
| 2069 | 2069 | }  | 
                                                        
| 2070 | 2070 | |
| 2071 | 2071 | /**  | 
                                                        
@@ -2074,19 +2074,19 @@ discard block  | 
                                                    ||
| 2074 | 2074 | public function walkNullComparisonExpression($nullCompExpr)  | 
                                                        
| 2075 | 2075 |      { | 
                                                        
| 2076 | 2076 | $expression = $nullCompExpr->expression;  | 
                                                        
| 2077 | - $comparison = ' IS' . ($nullCompExpr->not ? ' NOT' : '') . ' NULL';  | 
                                                        |
| 2077 | + $comparison = ' IS'.($nullCompExpr->not ? ' NOT' : '').' NULL';  | 
                                                        |
| 2078 | 2078 | |
| 2079 | 2079 | // Handle ResultVariable  | 
                                                        
| 2080 | 2080 |          if (is_string($expression) && isset($this->queryComponents[$expression]['resultVariable'])) { | 
                                                        
| 2081 | - return $this->walkResultVariable($expression) . $comparison;  | 
                                                        |
| 2081 | + return $this->walkResultVariable($expression).$comparison;  | 
                                                        |
| 2082 | 2082 | }  | 
                                                        
| 2083 | 2083 | |
| 2084 | 2084 | // Handle InputParameter mapping inclusion to ParserResult  | 
                                                        
| 2085 | 2085 |          if ($expression instanceof AST\InputParameter) { | 
                                                        
| 2086 | - return $this->walkInputParameter($expression) . $comparison;  | 
                                                        |
| 2086 | + return $this->walkInputParameter($expression).$comparison;  | 
                                                        |
| 2087 | 2087 | }  | 
                                                        
| 2088 | 2088 | |
| 2089 | - return $expression->dispatch($this) . $comparison;  | 
                                                        |
| 2089 | + return $expression->dispatch($this).$comparison;  | 
                                                        |
| 2090 | 2090 | }  | 
                                                        
| 2091 | 2091 | |
| 2092 | 2092 | /**  | 
                                                        
@@ -2094,7 +2094,7 @@ discard block  | 
                                                    ||
| 2094 | 2094 | */  | 
                                                        
| 2095 | 2095 | public function walkInExpression($inExpr)  | 
                                                        
| 2096 | 2096 |      { | 
                                                        
| 2097 | -        $sql = $this->walkArithmeticExpression($inExpr->expression) . ($inExpr->not ? ' NOT' : '') . ' IN ('; | 
                                                        |
| 2097 | +        $sql = $this->walkArithmeticExpression($inExpr->expression).($inExpr->not ? ' NOT' : '').' IN ('; | 
                                                        |
| 2098 | 2098 | |
| 2099 | 2099 | $sql .= $inExpr->subselect  | 
                                                        
| 2100 | 2100 | ? $this->walkSubselect($inExpr->subselect)  | 
                                                        
@@ -2119,12 +2119,12 @@ discard block  | 
                                                    ||
| 2119 | 2119 | $discrColumnType = $discrColumn->getType();  | 
                                                        
| 2120 | 2120 | $quotedColumnName = $this->platform->quoteIdentifier($discrColumn->getColumnName());  | 
                                                        
| 2121 | 2121 | $sqlTableAlias = $this->useSqlTableAliases  | 
                                                        
| 2122 | - ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias) . '.'  | 
                                                        |
| 2122 | + ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias).'.'  | 
                                                        |
| 2123 | 2123 | : '';  | 
                                                        
| 2124 | 2124 | |
| 2125 | 2125 | return sprintf(  | 
                                                        
| 2126 | 2126 | '%s %sIN %s',  | 
                                                        
| 2127 | - $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . $quotedColumnName, $this->platform),  | 
                                                        |
| 2127 | + $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.$quotedColumnName, $this->platform),  | 
                                                        |
| 2128 | 2128 | ($instanceOfExpr->not ? 'NOT ' : ''),  | 
                                                        
| 2129 | 2129 | $this->getChildDiscriminatorsFromClassMetadata($discrClass, $instanceOfExpr)  | 
                                                        
| 2130 | 2130 | );  | 
                                                        
@@ -2168,8 +2168,8 @@ discard block  | 
                                                    ||
| 2168 | 2168 | $sql .= ' NOT';  | 
                                                        
| 2169 | 2169 | }  | 
                                                        
| 2170 | 2170 | |
| 2171 | - $sql .= ' BETWEEN ' . $this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)  | 
                                                        |
| 2172 | - . ' AND ' . $this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);  | 
                                                        |
| 2171 | + $sql .= ' BETWEEN '.$this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)  | 
                                                        |
| 2172 | + . ' AND '.$this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);  | 
                                                        |
| 2173 | 2173 | |
| 2174 | 2174 | return $sql;  | 
                                                        
| 2175 | 2175 | }  | 
                                                        
@@ -2184,7 +2184,7 @@ discard block  | 
                                                    ||
| 2184 | 2184 | ? $this->walkResultVariable($stringExpr)  | 
                                                        
| 2185 | 2185 | : $stringExpr->dispatch($this);  | 
                                                        
| 2186 | 2186 | |
| 2187 | - $sql = $leftExpr . ($likeExpr->not ? ' NOT' : '') . ' LIKE ';  | 
                                                        |
| 2187 | + $sql = $leftExpr.($likeExpr->not ? ' NOT' : '').' LIKE ';  | 
                                                        |
| 2188 | 2188 | |
| 2189 | 2189 |          if ($likeExpr->stringPattern instanceof AST\InputParameter) { | 
                                                        
| 2190 | 2190 | $sql .= $this->walkInputParameter($likeExpr->stringPattern);  | 
                                                        
@@ -2197,7 +2197,7 @@ discard block  | 
                                                    ||
| 2197 | 2197 | }  | 
                                                        
| 2198 | 2198 | |
| 2199 | 2199 |          if ($likeExpr->escapeChar) { | 
                                                        
| 2200 | - $sql .= ' ESCAPE ' . $this->walkLiteral($likeExpr->escapeChar);  | 
                                                        |
| 2200 | + $sql .= ' ESCAPE '.$this->walkLiteral($likeExpr->escapeChar);  | 
                                                        |
| 2201 | 2201 | }  | 
                                                        
| 2202 | 2202 | |
| 2203 | 2203 | return $sql;  | 
                                                        
@@ -2224,7 +2224,7 @@ discard block  | 
                                                    ||
| 2224 | 2224 | ? $leftExpr->dispatch($this)  | 
                                                        
| 2225 | 2225 | : (is_numeric($leftExpr) ? $leftExpr : $this->conn->quote($leftExpr));  | 
                                                        
| 2226 | 2226 | |
| 2227 | - $sql .= ' ' . $compExpr->operator . ' ';  | 
                                                        |
| 2227 | + $sql .= ' '.$compExpr->operator.' ';  | 
                                                        |
| 2228 | 2228 | |
| 2229 | 2229 | $sql .= $rightExpr instanceof AST\Node  | 
                                                        
| 2230 | 2230 | ? $rightExpr->dispatch($this)  | 
                                                        
@@ -2260,7 +2260,7 @@ discard block  | 
                                                    ||
| 2260 | 2260 |      { | 
                                                        
| 2261 | 2261 | return $arithmeticExpr->isSimpleArithmeticExpression()  | 
                                                        
| 2262 | 2262 | ? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)  | 
                                                        
| 2263 | -            : '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')'; | 
                                                        |
| 2263 | +            : '('.$this->walkSubselect($arithmeticExpr->subselect).')'; | 
                                                        |
| 2264 | 2264 | }  | 
                                                        
| 2265 | 2265 | |
| 2266 | 2266 | /**  | 
                                                        
@@ -2268,7 +2268,7 @@ discard block  | 
                                                    ||
| 2268 | 2268 | */  | 
                                                        
| 2269 | 2269 | public function walkSimpleArithmeticExpression($simpleArithmeticExpr)  | 
                                                        
| 2270 | 2270 |      { | 
                                                        
| 2271 | -        if (! ($simpleArithmeticExpr instanceof AST\SimpleArithmeticExpression)) { | 
                                                        |
| 2271 | +        if ( ! ($simpleArithmeticExpr instanceof AST\SimpleArithmeticExpression)) { | 
                                                        |
| 2272 | 2272 | return $this->walkArithmeticTerm($simpleArithmeticExpr);  | 
                                                        
| 2273 | 2273 | }  | 
                                                        
| 2274 | 2274 | |
@@ -2288,7 +2288,7 @@ discard block  | 
                                                    ||
| 2288 | 2288 | |
| 2289 | 2289 | // Phase 2 AST optimization: Skip processing of ArithmeticTerm  | 
                                                        
| 2290 | 2290 | // if only one ArithmeticFactor is defined  | 
                                                        
| 2291 | -        if (! ($term instanceof AST\ArithmeticTerm)) { | 
                                                        |
| 2291 | +        if ( ! ($term instanceof AST\ArithmeticTerm)) { | 
                                                        |
| 2292 | 2292 | return $this->walkArithmeticFactor($term);  | 
                                                        
| 2293 | 2293 | }  | 
                                                        
| 2294 | 2294 | |
@@ -2308,13 +2308,13 @@ discard block  | 
                                                    ||
| 2308 | 2308 | |
| 2309 | 2309 | // Phase 2 AST optimization: Skip processing of ArithmeticFactor  | 
                                                        
| 2310 | 2310 | // if only one ArithmeticPrimary is defined  | 
                                                        
| 2311 | -        if (! ($factor instanceof AST\ArithmeticFactor)) { | 
                                                        |
| 2311 | +        if ( ! ($factor instanceof AST\ArithmeticFactor)) { | 
                                                        |
| 2312 | 2312 | return $this->walkArithmeticPrimary($factor);  | 
                                                        
| 2313 | 2313 | }  | 
                                                        
| 2314 | 2314 | |
| 2315 | 2315 | $sign = $factor->isNegativeSigned() ? '-' : ($factor->isPositiveSigned() ? '+' : '');  | 
                                                        
| 2316 | 2316 | |
| 2317 | - return $sign . $this->walkArithmeticPrimary($factor->arithmeticPrimary);  | 
                                                        |
| 2317 | + return $sign.$this->walkArithmeticPrimary($factor->arithmeticPrimary);  | 
                                                        |
| 2318 | 2318 | }  | 
                                                        
| 2319 | 2319 | |
| 2320 | 2320 | /**  | 
                                                        
@@ -2327,7 +2327,7 @@ discard block  | 
                                                    ||
| 2327 | 2327 | public function walkArithmeticPrimary($primary)  | 
                                                        
| 2328 | 2328 |      { | 
                                                        
| 2329 | 2329 |          if ($primary instanceof AST\SimpleArithmeticExpression) { | 
                                                        
| 2330 | -            return '(' . $this->walkSimpleArithmeticExpression($primary) . ')'; | 
                                                        |
| 2330 | +            return '('.$this->walkSimpleArithmeticExpression($primary).')'; | 
                                                        |
| 2331 | 2331 | }  | 
                                                        
| 2332 | 2332 | |
| 2333 | 2333 |          if ($primary instanceof AST\Node) { | 
                                                        
@@ -2385,7 +2385,7 @@ discard block  | 
                                                    ||
| 2385 | 2385 | $entityClassName = $entityClass->getClassName();  | 
                                                        
| 2386 | 2386 | |
| 2387 | 2387 |              if ($entityClassName !== $rootClass->getClassName()) { | 
                                                        
| 2388 | -                if (! $entityClass->getReflectionClass()->isSubclassOf($rootClass->getClassName())) { | 
                                                        |
| 2388 | +                if ( ! $entityClass->getReflectionClass()->isSubclassOf($rootClass->getClassName())) { | 
                                                        |
| 2389 | 2389 | throw QueryException::instanceOfUnrelatedClass($entityClassName, $rootClass->getClassName());  | 
                                                        
| 2390 | 2390 | }  | 
                                                        
| 2391 | 2391 | }  | 
                                                        
@@ -2397,6 +2397,6 @@ discard block  | 
                                                    ||
| 2397 | 2397 | $sqlParameterList[] = $this->conn->quote($discriminator);  | 
                                                        
| 2398 | 2398 | }  | 
                                                        
| 2399 | 2399 | |
| 2400 | -        return '(' . implode(', ', $sqlParameterList) . ')'; | 
                                                        |
| 2400 | +        return '('.implode(', ', $sqlParameterList).')'; | 
                                                        |
| 2401 | 2401 | }  | 
                                                        
| 2402 | 2402 | }  |