Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 1081-1085 (lines=5) @@
1078
1079
            $field = $this->lexer->token['value'];
1080
1081
            while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1082
                $this->match(Lexer::T_DOT);
1083
                $this->match(Lexer::T_IDENTIFIER);
1084
                $field .= '.'.$this->lexer->token['value'];
1085
            }
1086
        }
1087
1088
        // Creating AST node
@@ 1809-1813 (lines=5) @@
1806
        $field = $this->lexer->token['value'];
1807
1808
        // First field in partial expression might be embeddable property
1809
        while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1810
            $this->match(Lexer::T_DOT);
1811
            $this->match(Lexer::T_IDENTIFIER);
1812
            $field .= '.'.$this->lexer->token['value'];
1813
        }
1814
1815
        $partialFieldSet[] = $field;
1816
@@ 1823-1827 (lines=5) @@
1820
1821
            $field = $this->lexer->token['value'];
1822
1823
            while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1824
                $this->match(Lexer::T_DOT);
1825
                $this->match(Lexer::T_IDENTIFIER);
1826
                $field .= '.'.$this->lexer->token['value'];
1827
            }
1828
1829
            $partialFieldSet[] = $field;
1830
        }