@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query; |
| 6 | 6 | |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | $tokenStr = substr($dql, (int) $token['position'], $length); |
| 471 | 471 | |
| 472 | 472 | // Building informative message |
| 473 | - $message = 'line 0, col ' . $tokenPos . " near '" . $tokenStr . "': Error: " . $message; |
|
| 473 | + $message = 'line 0, col '.$tokenPos." near '".$tokenStr."': Error: ".$message; |
|
| 474 | 474 | |
| 475 | 475 | throw QueryException::semanticalError($message, QueryException::dqlError($this->query->getDQL())); |
| 476 | 476 | } |
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | // If the namespace is not given then assumes the first FROM entity namespace |
| 618 | 618 | if (strpos($className, '\\') === false && ! class_exists($className) && strpos($fromClassName, '\\') !== false) { |
| 619 | 619 | $namespace = substr($fromClassName, 0, strrpos($fromClassName, '\\')); |
| 620 | - $fqcn = $namespace . '\\' . $className; |
|
| 620 | + $fqcn = $namespace.'\\'.$className; |
|
| 621 | 621 | |
| 622 | 622 | if (class_exists($fqcn)) { |
| 623 | 623 | $expression->className = $fqcn; |
@@ -666,13 +666,13 @@ discard block |
||
| 666 | 666 | } |
| 667 | 667 | |
| 668 | 668 | $this->semanticalError( |
| 669 | - "There is no mapped field named '$field' on class " . $class->getClassName() . ".", $deferredItem['token'] |
|
| 669 | + "There is no mapped field named '$field' on class ".$class->getClassName().".", $deferredItem['token'] |
|
| 670 | 670 | ); |
| 671 | 671 | } |
| 672 | 672 | |
| 673 | 673 | if (array_intersect($class->identifier, $expr->partialFieldSet) != $class->identifier) { |
| 674 | 674 | $this->semanticalError( |
| 675 | - "The partial field selection of class " . $class->getClassName() . " must contain the identifier.", |
|
| 675 | + "The partial field selection of class ".$class->getClassName()." must contain the identifier.", |
|
| 676 | 676 | $deferredItem['token'] |
| 677 | 677 | ); |
| 678 | 678 | } |
@@ -741,9 +741,9 @@ discard block |
||
| 741 | 741 | $property = $class->getProperty($field); |
| 742 | 742 | |
| 743 | 743 | // Check if field or association exists |
| 744 | - if (! $property) { |
|
| 744 | + if ( ! $property) { |
|
| 745 | 745 | $this->semanticalError( |
| 746 | - 'Class ' . $class->getClassName() . ' has no field or association named ' . $field, |
|
| 746 | + 'Class '.$class->getClassName().' has no field or association named '.$field, |
|
| 747 | 747 | $deferredItem['token'] |
| 748 | 748 | ); |
| 749 | 749 | } |
@@ -782,8 +782,8 @@ discard block |
||
| 782 | 782 | // Build the error message |
| 783 | 783 | $semanticalError = 'Invalid PathExpression. '; |
| 784 | 784 | $semanticalError .= (count($expectedStringTypes) == 1) |
| 785 | - ? 'Must be a ' . $expectedStringTypes[0] . '.' |
|
| 786 | - : implode(' or ', $expectedStringTypes) . ' expected.'; |
|
| 785 | + ? 'Must be a '.$expectedStringTypes[0].'.' |
|
| 786 | + : implode(' or ', $expectedStringTypes).' expected.'; |
|
| 787 | 787 | |
| 788 | 788 | $this->semanticalError($semanticalError, $deferredItem['token']); |
| 789 | 789 | } |
@@ -952,7 +952,7 @@ discard block |
||
| 952 | 952 | |
| 953 | 953 | list($namespaceAlias, $simpleClassName) = explode(':', $this->lexer->token['value']); |
| 954 | 954 | |
| 955 | - $schemaName = $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName; |
|
| 955 | + $schemaName = $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName; |
|
| 956 | 956 | } |
| 957 | 957 | |
| 958 | 958 | return $schemaName; |
@@ -967,7 +967,7 @@ discard block |
||
| 967 | 967 | */ |
| 968 | 968 | private function validateAbstractSchemaName($schemaName) |
| 969 | 969 | { |
| 970 | - if (! (class_exists($schemaName, true) || interface_exists($schemaName, true))) { |
|
| 970 | + if ( ! (class_exists($schemaName, true) || interface_exists($schemaName, true))) { |
|
| 971 | 971 | $this->semanticalError("Class '$schemaName' is not defined.", $this->lexer->token); |
| 972 | 972 | } |
| 973 | 973 | } |
@@ -1023,7 +1023,7 @@ discard block |
||
| 1023 | 1023 | |
| 1024 | 1024 | if ( ! isset($this->queryComponents[$identVariable])) { |
| 1025 | 1025 | $this->semanticalError( |
| 1026 | - 'Identification Variable ' . $identVariable .' used in join path expression but was not defined before.' |
|
| 1026 | + 'Identification Variable '.$identVariable.' used in join path expression but was not defined before.' |
|
| 1027 | 1027 | ); |
| 1028 | 1028 | } |
| 1029 | 1029 | |
@@ -1036,8 +1036,8 @@ discard block |
||
| 1036 | 1036 | $qComp = $this->queryComponents[$identVariable]; |
| 1037 | 1037 | $class = $qComp['metadata']; |
| 1038 | 1038 | |
| 1039 | - if (! (($property = $class->getProperty($field)) !== null && $property instanceof AssociationMetadata)) { |
|
| 1040 | - $this->semanticalError('Class ' . $class->getClassName() . ' has no association named ' . $field); |
|
| 1039 | + if ( ! (($property = $class->getProperty($field)) !== null && $property instanceof AssociationMetadata)) { |
|
| 1040 | + $this->semanticalError('Class '.$class->getClassName().' has no association named '.$field); |
|
| 1041 | 1041 | } |
| 1042 | 1042 | |
| 1043 | 1043 | return new AST\JoinAssociationPathExpression($identVariable, $field); |
@@ -2459,7 +2459,7 @@ discard block |
||
| 2459 | 2459 | // Peek beyond the matching closing parenthesis ')' |
| 2460 | 2460 | $peek = $this->peekBeyondClosingParenthesis(); |
| 2461 | 2461 | |
| 2462 | - if (in_array($peek['value'], ["=", "<", "<=", "<>", ">", ">=", "!="]) || |
|
| 2462 | + if (in_array($peek['value'], ["=", "<", "<=", "<>", ">", ">=", "!="]) || |
|
| 2463 | 2463 | in_array($peek['type'], [Lexer::T_NOT, Lexer::T_BETWEEN, Lexer::T_LIKE, Lexer::T_IN, Lexer::T_IS, Lexer::T_EXISTS]) || |
| 2464 | 2464 | $this->isMathOperator($peek)) { |
| 2465 | 2465 | $condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression(); |
@@ -2564,7 +2564,7 @@ discard block |
||
| 2564 | 2564 | return $this->NullComparisonExpression(); |
| 2565 | 2565 | } |
| 2566 | 2566 | |
| 2567 | - if ($token['type'] === Lexer::T_IS && $lookahead['type'] === Lexer::T_EMPTY) { |
|
| 2567 | + if ($token['type'] === Lexer::T_IS && $lookahead['type'] === Lexer::T_EMPTY) { |
|
| 2568 | 2568 | return $this->EmptyCollectionComparisonExpression(); |
| 2569 | 2569 | } |
| 2570 | 2570 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\AST; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\AST; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\AST; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\AST; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\AST; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\AST; |
| 6 | 6 | |