Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2654-2659 (lines=6) @@
2651
2652
                return new AST\Literal(AST\Literal::STRING, $this->lexer->token['value']);
2653
            case Lexer::T_INTEGER:
2654
            case Lexer::T_FLOAT:
2655
                $this->match(
2656
                    $this->lexer->isNextToken(Lexer::T_INTEGER) ? Lexer::T_INTEGER : Lexer::T_FLOAT
2657
                );
2658
2659
                return new AST\Literal(AST\Literal::NUMERIC, $this->lexer->token['value']);
2660
            case Lexer::T_TRUE:
2661
            case Lexer::T_FALSE:
2662
                $this->match(
@@ 2661-2666 (lines=6) @@
2658
2659
                return new AST\Literal(AST\Literal::NUMERIC, $this->lexer->token['value']);
2660
            case Lexer::T_TRUE:
2661
            case Lexer::T_FALSE:
2662
                $this->match(
2663
                    $this->lexer->isNextToken(Lexer::T_TRUE) ? Lexer::T_TRUE : Lexer::T_FALSE
2664
                );
2665
2666
                return new AST\Literal(AST\Literal::BOOLEAN, $this->lexer->token['value']);
2667
            default:
2668
                $this->syntaxError('Literal');
2669
        }