Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 5998-6000 (lines=3) @@
5995
        if (stripos($str, '@FILE') !== 0) {
5996
            return $str;
5997
        }
5998
        if (strpos($str, "\n") !== false) {
5999
            $str = substr($str, 0, strpos("\n", $str));
6000
        }
6001
6002
        if ($this->getExtFromFilename($str) === '.php') {
6003
            return 'Could not retrieve PHP file.';
@@ 6542-6544 (lines=3) @@
6539
        if (strpos($str, '@INCLUDE') !== 0) {
6540
            return $str;
6541
        }
6542
        if (strpos($str, "\n") !== false) {
6543
            $str = substr($str, 0, strpos("\n", $str));
6544
        }
6545
6546
        $str = substr($str, 9);
6547
        $str = trim($str);