Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/document.parser.class.inc.php 2 locations

@@ 6001-6003 (lines=3) @@
5998
        if (stripos($str, '@FILE') !== 0) {
5999
            return $str;
6000
        }
6001
        if (strpos($str, "\n") !== false) {
6002
            $str = substr($str, 0, strpos("\n", $str));
6003
        }
6004
6005
        if ($this->getExtFromFilename($str) === '.php') {
6006
            return 'Could not retrieve PHP file.';
@@ 6552-6554 (lines=3) @@
6549
        if (strpos($str, '@INCLUDE') !== 0) {
6550
            return $str;
6551
        }
6552
        if (strpos($str, "\n") !== false) {
6553
            $str = substr($str, 0, strpos("\n", $str));
6554
        }
6555
6556
        $str = substr($str, 9);
6557
        $str = trim($str);