Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

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