Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6042-6044 (lines=3) @@
6039
        if (stripos($str, '@FILE') !== 0) {
6040
            return $str;
6041
        }
6042
        if (strpos($str, "\n") !== false) {
6043
            $str = substr($str, 0, strpos("\n", $str));
6044
        }
6045
6046
        if ($this->getExtFromFilename($str) === '.php') {
6047
            return 'Could not retrieve PHP file.';
@@ 6586-6588 (lines=3) @@
6583
        if (strpos($str, '@INCLUDE') !== 0) {
6584
            return $str;
6585
        }
6586
        if (strpos($str, "\n") !== false) {
6587
            $str = substr($str, 0, strpos("\n", $str));
6588
        }
6589
6590
        $str = substr($str, 9);
6591
        $str = trim($str);