Code Duplication    Length = 34-34 lines in 2 locations

src/Parser/Parser.php 2 locations

@@ 1905-1938 (lines=34) @@
1902
        return $_success;
1903
    }
1904
1905
    protected function parseCOMMENT_END()
1906
    {
1907
        $_position = $this->position;
1908
1909
        if (isset($this->cache['COMMENT_END'][$_position])) {
1910
            $_success = $this->cache['COMMENT_END'][$_position]['success'];
1911
            $this->position = $this->cache['COMMENT_END'][$_position]['position'];
1912
            $this->value = $this->cache['COMMENT_END'][$_position]['value'];
1913
1914
            return $_success;
1915
        }
1916
1917
        if (substr($this->string, $this->position, strlen('-->')) === '-->') {
1918
            $_success = true;
1919
            $this->value = substr($this->string, $this->position, strlen('-->'));
1920
            $this->position += strlen('-->');
1921
        } else {
1922
            $_success = false;
1923
1924
            $this->report($this->position, '\'-->\'');
1925
        }
1926
1927
        $this->cache['COMMENT_END'][$_position] = array(
1928
            'success' => $_success,
1929
            'position' => $this->position,
1930
            'value' => $this->value
1931
        );
1932
1933
        if (!$_success) {
1934
            $this->report($_position, "-->");
1935
        }
1936
1937
        return $_success;
1938
    }
1939
1940
    protected function parseCOMMENT_END_COLD_FUSION()
1941
    {
@@ 1940-1973 (lines=34) @@
1937
        return $_success;
1938
    }
1939
1940
    protected function parseCOMMENT_END_COLD_FUSION()
1941
    {
1942
        $_position = $this->position;
1943
1944
        if (isset($this->cache['COMMENT_END_COLD_FUSION'][$_position])) {
1945
            $_success = $this->cache['COMMENT_END_COLD_FUSION'][$_position]['success'];
1946
            $this->position = $this->cache['COMMENT_END_COLD_FUSION'][$_position]['position'];
1947
            $this->value = $this->cache['COMMENT_END_COLD_FUSION'][$_position]['value'];
1948
1949
            return $_success;
1950
        }
1951
1952
        if (substr($this->string, $this->position, strlen('--->')) === '--->') {
1953
            $_success = true;
1954
            $this->value = substr($this->string, $this->position, strlen('--->'));
1955
            $this->position += strlen('--->');
1956
        } else {
1957
            $_success = false;
1958
1959
            $this->report($this->position, '\'--->\'');
1960
        }
1961
1962
        $this->cache['COMMENT_END_COLD_FUSION'][$_position] = array(
1963
            'success' => $_success,
1964
            'position' => $this->position,
1965
            'value' => $this->value
1966
        );
1967
1968
        if (!$_success) {
1969
            $this->report($_position, "--->");
1970
        }
1971
1972
        return $_success;
1973
    }
1974
1975
    protected function parseEOL()
1976
    {