Code Duplication    Length = 5-5 lines in 3 locations

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

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