Code Duplication    Length = 5-5 lines in 2 locations

src/Views/Compilers/BladeSourceMapCompiler.php 2 locations

@@ 44-48 (lines=5) @@
41
        $pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', $this->contentTags[0], $this->contentTags[1]);
42
43
        if (preg_match_all($pattern, $value, $matches, PREG_OFFSET_CAPTURE)) {
44
            foreach (array_reverse($matches[0]) as $match) {
45
                $position = mb_strlen(substr($value, 0, $match[1]));
46
47
                $value = $this->insertLineNumberAtPosition($position, $value);
48
            }
49
        }
50
51
        return $value;
@@ 64-68 (lines=5) @@
61
        );
62
63
        if ($shouldInsertLineNumbers) {
64
            foreach (array_reverse($matches[0]) as $match) {
65
                $position = mb_strlen(substr($value, 0, $match[1]));
66
67
                $value = $this->insertLineNumberAtPosition($position, $value);
68
            }
69
        }
70
71
        return $value;