Code Duplication    Length = 25-25 lines in 2 locations

src/Parser/Parser.php 2 locations

@@ 1771-1795 (lines=25) @@
1768
            }
1769
        }
1770
1771
        if ($_success) {
1772
            $_value91[] = $this->value;
1773
1774
            $_position87 = $this->position;
1775
            $_cut88 = $this->cut;
1776
1777
            $this->cut = false;
1778
            if (substr($this->string, $this->position, strlen('-')) === '-') {
1779
                $_success = true;
1780
                $this->value = substr($this->string, $this->position, strlen('-'));
1781
                $this->position += strlen('-');
1782
            } else {
1783
                $_success = false;
1784
1785
                $this->report($this->position, '\'-\'');
1786
            }
1787
1788
            if (!$_success && !$this->cut) {
1789
                $_success = true;
1790
                $this->position = $_position87;
1791
                $this->value = null;
1792
            }
1793
1794
            $this->cut = $_cut88;
1795
        }
1796
1797
        if ($_success) {
1798
            $_value91[] = $this->value;
@@ 1991-2015 (lines=25) @@
1988
1989
        $_success = $this->parse_();
1990
1991
        if ($_success) {
1992
            $_value99[] = $this->value;
1993
1994
            $_position97 = $this->position;
1995
            $_cut98 = $this->cut;
1996
1997
            $this->cut = false;
1998
            if (substr($this->string, $this->position, strlen("\r")) === "\r") {
1999
                $_success = true;
2000
                $this->value = substr($this->string, $this->position, strlen("\r"));
2001
                $this->position += strlen("\r");
2002
            } else {
2003
                $_success = false;
2004
2005
                $this->report($this->position, '"\\r"');
2006
            }
2007
2008
            if (!$_success && !$this->cut) {
2009
                $_success = true;
2010
                $this->position = $_position97;
2011
                $this->value = null;
2012
            }
2013
2014
            $this->cut = $_cut98;
2015
        }
2016
2017
        if ($_success) {
2018
            $_value99[] = $this->value;