Code Duplication    Length = 25-25 lines in 2 locations

src/Parser.php 2 locations

@@ 474-498 (lines=25) @@
471
            }
472
        }
473
474
        if ($_success) {
475
            $_value31[] = $this->value;
476
477
            $_position27 = $this->position;
478
            $_cut28 = $this->cut;
479
480
            $this->cut = false;
481
            if (substr($this->string, $this->position, strlen('-')) === '-') {
482
                $_success = true;
483
                $this->value = substr($this->string, $this->position, strlen('-'));
484
                $this->position += strlen('-');
485
            } else {
486
                $_success = false;
487
488
                $this->report($this->position, '\'-\'');
489
            }
490
491
            if (!$_success && !$this->cut) {
492
                $_success = true;
493
                $this->position = $_position27;
494
                $this->value = null;
495
            }
496
497
            $this->cut = $_cut28;
498
        }
499
500
        if ($_success) {
501
            $_value31[] = $this->value;
@@ 1537-1561 (lines=25) @@
1534
1535
        $_success = $this->parse_();
1536
1537
        if ($_success) {
1538
            $_value73[] = $this->value;
1539
1540
            $_position71 = $this->position;
1541
            $_cut72 = $this->cut;
1542
1543
            $this->cut = false;
1544
            if (substr($this->string, $this->position, strlen("\r")) === "\r") {
1545
                $_success = true;
1546
                $this->value = substr($this->string, $this->position, strlen("\r"));
1547
                $this->position += strlen("\r");
1548
            } else {
1549
                $_success = false;
1550
1551
                $this->report($this->position, '"\\r"');
1552
            }
1553
1554
            if (!$_success && !$this->cut) {
1555
                $_success = true;
1556
                $this->position = $_position71;
1557
                $this->value = null;
1558
            }
1559
1560
            $this->cut = $_cut72;
1561
        }
1562
1563
        if ($_success) {
1564
            $_value73[] = $this->value;