Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6043-6045 (lines=3) @@
6040
        if (stripos($str, '@FILE') !== 0) {
6041
            return $str;
6042
        }
6043
        if (strpos($str, "\n") !== false) {
6044
            $str = substr($str, 0, strpos("\n", $str));
6045
        }
6046
6047
        if ($this->getExtFromFilename($str) === '.php') {
6048
            return 'Could not retrieve PHP file.';
@@ 6587-6589 (lines=3) @@
6584
        if (strpos($str, '@INCLUDE') !== 0) {
6585
            return $str;
6586
        }
6587
        if (strpos($str, "\n") !== false) {
6588
            $str = substr($str, 0, strpos("\n", $str));
6589
        }
6590
6591
        $str = substr($str, 9);
6592
        $str = trim($str);