Code Duplication    Length = 10-10 lines in 2 locations

manager/includes/src/Core.php 2 locations

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