Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1499-1501 (lines=3) @@
1496
            return $this->parse($in, $from + 1, $to, false, 'root', $pointer);
1497
        } elseif ($curBlock === 'root' && preg_match('#^/([a-z_][a-z0-9_]*)?#i', $substr, $match)) {
1498
            // close block
1499
            if (!empty($match[1]) && $match[1] == 'else') {
1500
                throw new CompilationException($this, 'Else blocks must not be closed explicitly, they are automatically closed when their parent block is closed');
1501
            }
1502
            if (!empty($match[1]) && $match[1] == 'elseif') {
1503
                throw new CompilationException($this, 'Elseif blocks must not be closed explicitly, they are automatically closed when their parent block is closed or a new else/elseif block is declared after them');
1504
            }
@@ 1502-1504 (lines=3) @@
1499
            if (!empty($match[1]) && $match[1] == 'else') {
1500
                throw new CompilationException($this, 'Else blocks must not be closed explicitly, they are automatically closed when their parent block is closed');
1501
            }
1502
            if (!empty($match[1]) && $match[1] == 'elseif') {
1503
                throw new CompilationException($this, 'Elseif blocks must not be closed explicitly, they are automatically closed when their parent block is closed or a new else/elseif block is declared after them');
1504
            }
1505
            if ($pointer !== null) {
1506
                $pointer += strlen($match[0]);
1507
            }