Code Duplication    Length = 10-10 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 1668-1677 (lines=10) @@
1665
        $content = str_replace(array('<?php', '<?=', '<?', '?>'), array("{$sp}b", "{$sp}p", "{$sp}s", "{$sp}e"), $content);
1666
1667
        $pieces = explode('<@IF:', $content);
1668
        foreach ($pieces as $i => $split) {
1669
            if ($i === 0) {
1670
                $content = $split;
1671
                continue;
1672
            }
1673
            list($cmd, $text) = explode('>', $split, 2);
1674
            $cmd = str_replace("'", "\'", $cmd);
1675
            $content .= "<?php if(\$this->_parseCTagCMD('" . $cmd . "')): ?>";
1676
            $content .= $text;
1677
        }
1678
        $pieces = explode('<@ELSEIF:', $content);
1679
        foreach ($pieces as $i => $split) {
1680
            if ($i === 0) {
@@ 1679-1688 (lines=10) @@
1676
            $content .= $text;
1677
        }
1678
        $pieces = explode('<@ELSEIF:', $content);
1679
        foreach ($pieces as $i => $split) {
1680
            if ($i === 0) {
1681
                $content = $split;
1682
                continue;
1683
            }
1684
            list($cmd, $text) = explode('>', $split, 2);
1685
            $cmd = str_replace("'", "\'", $cmd);
1686
            $content .= "<?php elseif(\$this->_parseCTagCMD('" . $cmd . "')): ?>";
1687
            $content .= $text;
1688
        }
1689
1690
        $content = str_replace(array('<@ELSE>', '<@ENDIF>'), array('<?php else:?>', '<?php endif;?>'), $content);
1691
        ob_start();