Code Duplication    Length = 3-3 lines in 2 locations

src/Lexer.php 2 locations

@@ 535-537 (lines=3) @@
532
533
        // Bash style comments. (#comment\n)
534
        if (Context::isComment($token)) {
535
            while (
536
                ++$this->last < $this->len
537
                && $this->str[$this->last] !== "\n"
538
            ) {
539
                $token .= $this->str[$this->last];
540
            }
@@ 613-615 (lines=3) @@
610
        if (Context::isComment($token, $end)) {
611
            // Checking if this comment did not end already (```--\n```).
612
            if ($this->str[$this->last] !== "\n") {
613
                while (
614
                    ++$this->last < $this->len
615
                    && $this->str[$this->last] !== "\n"
616
                ) {
617
                    $token .= $this->str[$this->last];
618
                }