Code Duplication    Length = 10-10 lines in 2 locations

src/Compiler.php 2 locations

@@ 39-48 (lines=10) @@
36
        return $viewContents;
37
    }
38
39
    protected function parseSelfClosingTags(string $viewContents, Component $component): string
40
    {
41
        $pattern = "/
42
            <
43
                \s*
44
                {$component->getTag()}
45
                \s*
46
                (?<attributes>
47
                    (?:
48
                        \s+
49
                        [\w\-:.\$]+
50
                        (
51
                            =
@@ 73-82 (lines=10) @@
70
        }, $viewContents);
71
    }
72
73
    protected function parseOpeningTags(string $viewContents, Component $component): string
74
    {
75
        $pattern = "/
76
            <
77
                \s*
78
                {$component->getTag()}
79
                (?<attributes>
80
                    (?:
81
                        \s+
82
                        [\w\-:.\$]+
83
                        (
84
                            =
85
                            (?: