Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 5989-5991 (lines=3) @@
5986
        if (stripos($str, '@FILE') !== 0) {
5987
            return $str;
5988
        }
5989
        if (strpos($str, "\n") !== false) {
5990
            $str = substr($str, 0, strpos("\n", $str));
5991
        }
5992
5993
        if ($this->getExtFromFilename($str) === '.php') {
5994
            return 'Could not retrieve PHP file.';
@@ 6533-6535 (lines=3) @@
6530
        if (strpos($str, '@INCLUDE') !== 0) {
6531
            return $str;
6532
        }
6533
        if (strpos($str, "\n") !== false) {
6534
            $str = substr($str, 0, strpos("\n", $str));
6535
        }
6536
6537
        $str = substr($str, 9);
6538
        $str = trim($str);