Code Duplication    Length = 5-6 lines in 2 locations

src/LesserPhp/Parser.php 2 locations

@@ 1653-1657 (lines=5) @@
1650
            $skip = 0;
1651
            $newlines = 0;
1652
            switch ($min[0]) {
1653
                case 'url(':
1654
                    if (preg_match('/url\(.*?\)/', $text, $m, 0, $count)) {
1655
                        $count += strlen($m[0]) - strlen($min[0]);
1656
                    }
1657
                    break;
1658
                case '"':
1659
                case "'":
1660
                    if (preg_match('/' . $min[0] . '.*?(?<!\\\\)' . $min[0] . '/', $text, $m, 0, $count)) {
@@ 1672-1677 (lines=6) @@
1669
                        $skip -= $count;
1670
                    }
1671
                    break;
1672
                case '/*':
1673
                    if (preg_match('/\/\*.*?\*\//s', $text, $m, 0, $count)) {
1674
                        $skip = strlen($m[0]);
1675
                        $newlines = substr_count($m[0], "\n");
1676
                    }
1677
                    break;
1678
            }
1679
1680
            if ($skip == 0) {