Code Duplication    Length = 25-25 lines in 2 locations

src/Parser/Parser.php 2 locations

@@ 1775-1799 (lines=25) @@
1772
            }
1773
        }
1774
1775
        if ($_success) {
1776
            $_value91[] = $this->value;
1777
1778
            $_position87 = $this->position;
1779
            $_cut88 = $this->cut;
1780
1781
            $this->cut = false;
1782
            if (substr($this->string, $this->position, strlen('-')) === '-') {
1783
                $_success = true;
1784
                $this->value = substr($this->string, $this->position, strlen('-'));
1785
                $this->position += strlen('-');
1786
            } else {
1787
                $_success = false;
1788
1789
                $this->report($this->position, '\'-\'');
1790
            }
1791
1792
            if (!$_success && !$this->cut) {
1793
                $_success = true;
1794
                $this->position = $_position87;
1795
                $this->value = null;
1796
            }
1797
1798
            $this->cut = $_cut88;
1799
        }
1800
1801
        if ($_success) {
1802
            $_value91[] = $this->value;
@@ 1921-1945 (lines=25) @@
1918
1919
        $_success = $this->parse_();
1920
1921
        if ($_success) {
1922
            $_value97[] = $this->value;
1923
1924
            $_position95 = $this->position;
1925
            $_cut96 = $this->cut;
1926
1927
            $this->cut = false;
1928
            if (substr($this->string, $this->position, strlen("\r")) === "\r") {
1929
                $_success = true;
1930
                $this->value = substr($this->string, $this->position, strlen("\r"));
1931
                $this->position += strlen("\r");
1932
            } else {
1933
                $_success = false;
1934
1935
                $this->report($this->position, '"\\r"');
1936
            }
1937
1938
            if (!$_success && !$this->cut) {
1939
                $_success = true;
1940
                $this->position = $_position95;
1941
                $this->value = null;
1942
            }
1943
1944
            $this->cut = $_cut96;
1945
        }
1946
1947
        if ($_success) {
1948
            $_value97[] = $this->value;