Code Duplication    Length = 6-6 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1368-1373 (lines=6) @@
1365
        }
1366
1367
        while ($first === ' ' || $first === "\n" || $first === "\t" || $first === "\r") {
1368
            if ($curBlock === 'root' && substr($in, $from, strlen($this->rd)) === $this->rd) {
1369
                // end template tag
1370
                $pointer += strlen($this->rd);
1371
                if ($this->debug) {
1372
                    echo 'TEMPLATE PARSING ENDED' . "\n";
1373
                }
1374
1375
                return false;
1376
            }
@@ 1516-1521 (lines=6) @@
1513
1514
                return $this->removeBlock($match[1]);
1515
            }
1516
        } elseif ($curBlock === 'root' && substr($substr, 0, strlen($this->rd)) === $this->rd) {
1517
            // end template tag
1518
            if ($this->debug) {
1519
                echo 'TAG PARSING ENDED' . "\n";
1520
            }
1521
            $pointer += strlen($this->rd);
1522
1523
            return false;
1524
        } elseif (is_array($parsingParams) && preg_match('#^(([\'"]?)[a-z0-9_]+\2\s*=' . ($curBlock === 'array' ? '>?' : '') . ')(?:\s+|[^=]).*#i', $substr, $match)) {