Code Duplication    Length = 13-16 lines in 2 locations

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

@@ 1192-1204 (lines=13) @@
1189
     *
1190
     * @return \Doctrine\ORM\Query\AST\SimpleSelectClause
1191
     */
1192
    public function SimpleSelectClause()
1193
    {
1194
        $isDistinct = false;
1195
        $this->match(Lexer::T_SELECT);
1196
1197
        if ($this->lexer->isNextToken(Lexer::T_DISTINCT)) {
1198
            $this->match(Lexer::T_DISTINCT);
1199
1200
            $isDistinct = true;
1201
        }
1202
1203
        return new AST\SimpleSelectClause($this->SimpleSelectExpression(), $isDistinct);
1204
    }
1205
1206
    /**
1207
     * UpdateClause ::= "UPDATE" AbstractSchemaName ["AS"] AliasIdentificationVariable "SET" UpdateItem {"," UpdateItem}*
@@ 2591-2606 (lines=16) @@
2588
     *
2589
     * @return \Doctrine\ORM\Query\AST\EmptyCollectionComparisonExpression
2590
     */
2591
    public function EmptyCollectionComparisonExpression()
2592
    {
2593
        $emptyCollectionCompExpr = new AST\EmptyCollectionComparisonExpression(
2594
            $this->CollectionValuedPathExpression()
2595
        );
2596
        $this->match(Lexer::T_IS);
2597
2598
        if ($this->lexer->isNextToken(Lexer::T_NOT)) {
2599
            $this->match(Lexer::T_NOT);
2600
            $emptyCollectionCompExpr->not = true;
2601
        }
2602
2603
        $this->match(Lexer::T_EMPTY);
2604
2605
        return $emptyCollectionCompExpr;
2606
    }
2607
2608
    /**
2609
     * CollectionMemberExpression ::= EntityExpression ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression