Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 889-896 (lines=8) @@
886
     *
887
     * @return \Doctrine\ORM\Query\AST\UpdateStatement
888
     */
889
    public function UpdateStatement()
890
    {
891
        $updateStatement = new AST\UpdateStatement($this->UpdateClause());
892
893
        $updateStatement->whereClause = $this->lexer->isNextToken(Lexer::T_WHERE) ? $this->WhereClause() : null;
894
895
        return $updateStatement;
896
    }
897
898
    /**
899
     * DeleteStatement ::= DeleteClause [WhereClause]
@@ 903-910 (lines=8) @@
900
     *
901
     * @return \Doctrine\ORM\Query\AST\DeleteStatement
902
     */
903
    public function DeleteStatement()
904
    {
905
        $deleteStatement = new AST\DeleteStatement($this->DeleteClause());
906
907
        $deleteStatement->whereClause = $this->lexer->isNextToken(Lexer::T_WHERE) ? $this->WhereClause() : null;
908
909
        return $deleteStatement;
910
    }
911
912
    /**
913
     * IdentificationVariable ::= identifier