Code Duplication    Length = 13-16 lines in 2 locations

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

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