Code Duplication    Length = 3-3 lines in 2 locations

src/Lexer.php 2 locations

@@ 569-571 (lines=3) @@
566
567
        // Bash style comments. (#comment\n)
568
        if (Context::isComment($token)) {
569
            while (
570
                ++$this->last < $this->len
571
                && $this->str[$this->last] !== "\n"
572
            ) {
573
                $token .= $this->str[$this->last];
574
            }
@@ 638-640 (lines=3) @@
635
            if (Context::isComment($token)) {
636
                // Checking if this comment did not end already (```--\n```).
637
                if ($this->str[$this->last] !== "\n") {
638
                    while (
639
                        ++$this->last < $this->len
640
                        && $this->str[$this->last] !== "\n"
641
                    ) {
642
                        $token .= $this->str[$this->last];
643
                    }