Code Duplication    Length = 14-15 lines in 2 locations

lib/Doctrine/ORM/Query/Parser.php 2 locations

@@ 917-930 (lines=14) @@
914
     *
915
     * @return string
916
     */
917
    public function IdentificationVariable()
918
    {
919
        $this->match(Lexer::T_IDENTIFIER);
920
921
        $identVariable = $this->lexer->token['value'];
922
923
        $this->deferredIdentificationVariables[] = [
924
            'expression'   => $identVariable,
925
            'nestingLevel' => $this->nestingLevel,
926
            'token'        => $this->lexer->token,
927
        ];
928
929
        return $identVariable;
930
    }
931
932
    /**
933
     * AliasIdentificationVariable = identifier
@@ 1015-1029 (lines=15) @@
1012
     *
1013
     * @return string
1014
     */
1015
    public function ResultVariable()
1016
    {
1017
        $this->match(Lexer::T_IDENTIFIER);
1018
1019
        $resultVariable = $this->lexer->token['value'];
1020
1021
        // Defer ResultVariable validation
1022
        $this->deferredResultVariables[] = [
1023
            'expression'   => $resultVariable,
1024
            'nestingLevel' => $this->nestingLevel,
1025
            'token'        => $this->lexer->token,
1026
        ];
1027
1028
        return $resultVariable;
1029
    }
1030
1031
    /**
1032
     * JoinAssociationPathExpression ::= IdentificationVariable "." (CollectionValuedAssociationField | SingleValuedAssociationField)