Code Duplication    Length = 10-10 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 1913-1922 (lines=10) @@
1910
        $content = str_replace(array('<?php', '<?=', '<?', '?>'), array("{$sp}b", "{$sp}p", "{$sp}s", "{$sp}e"), $content);
1911
1912
        $pieces = explode('<@IF:', $content);
1913
        foreach ($pieces as $i => $split) {
1914
            if ($i === 0) {
1915
                $content = $split;
1916
                continue;
1917
            }
1918
            list($cmd, $text) = explode('>', $split, 2);
1919
            $cmd = str_replace("'", "\'", $cmd);
1920
            $content .= "<?php if(\$this->_parseCTagCMD('" . $cmd . "')): ?>";
1921
            $content .= $text;
1922
        }
1923
        $pieces = explode('<@ELSEIF:', $content);
1924
        foreach ($pieces as $i => $split) {
1925
            if ($i === 0) {
@@ 1924-1933 (lines=10) @@
1921
            $content .= $text;
1922
        }
1923
        $pieces = explode('<@ELSEIF:', $content);
1924
        foreach ($pieces as $i => $split) {
1925
            if ($i === 0) {
1926
                $content = $split;
1927
                continue;
1928
            }
1929
            list($cmd, $text) = explode('>', $split, 2);
1930
            $cmd = str_replace("'", "\'", $cmd);
1931
            $content .= "<?php elseif(\$this->_parseCTagCMD('" . $cmd . "')): ?>";
1932
            $content .= $text;
1933
        }
1934
1935
        $content = str_replace(array('<@ELSE>', '<@ENDIF>'), array('<?php else:?>', '<?php endif;?>'), $content);
1936
        ob_start();