Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6304-6306 (lines=3) @@
6301
        if (stripos($str, '@FILE') !== 0) {
6302
            return $str;
6303
        }
6304
        if (strpos($str, "\n") !== false) {
6305
            $str = substr($str, 0, strpos("\n", $str));
6306
        }
6307
6308
        if ($this->getExtFromFilename($str) === '.php') {
6309
            return 'Could not retrieve PHP file.';
@@ 6849-6851 (lines=3) @@
6846
        if (strpos($str, '@INCLUDE') !== 0) {
6847
            return $str;
6848
        }
6849
        if (strpos($str, "\n") !== false) {
6850
            $str = substr($str, 0, strpos("\n", $str));
6851
        }
6852
6853
        $str = substr($str, 9);
6854
        $str = trim($str);