Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6293-6295 (lines=3) @@
6290
        if (stripos($str, '@FILE') !== 0) {
6291
            return $str;
6292
        }
6293
        if (strpos($str, "\n") !== false) {
6294
            $str = substr($str, 0, strpos("\n", $str));
6295
        }
6296
6297
        if ($this->getExtFromFilename($str) === '.php') {
6298
            return 'Could not retrieve PHP file.';
@@ 6837-6839 (lines=3) @@
6834
        if (strpos($str, '@INCLUDE') !== 0) {
6835
            return $str;
6836
        }
6837
        if (strpos($str, "\n") !== false) {
6838
            $str = substr($str, 0, strpos("\n", $str));
6839
        }
6840
6841
        $str = substr($str, 9);
6842
        $str = trim($str);