Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1491-1493 (lines=3) @@
1488
            return $this->parse($in, $from + 1, $to, false, 'root', $pointer);
1489
        } elseif ($curBlock === 'root' && preg_match('#^/([a-z_][a-z0-9_]*)?#i', $substr, $match)) {
1490
            // close block
1491
            if (!empty($match[1]) && $match[1] == 'else') {
1492
                throw new CompilationException($this, 'Else blocks must not be closed explicitly, they are automatically closed when their parent block is closed');
1493
            }
1494
            if (!empty($match[1]) && $match[1] == 'elseif') {
1495
                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');
1496
            }
@@ 1494-1496 (lines=3) @@
1491
            if (!empty($match[1]) && $match[1] == 'else') {
1492
                throw new CompilationException($this, 'Else blocks must not be closed explicitly, they are automatically closed when their parent block is closed');
1493
            }
1494
            if (!empty($match[1]) && $match[1] == 'elseif') {
1495
                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');
1496
            }
1497
            if ($pointer !== null) {
1498
                $pointer += strlen($match[0]);
1499
            }