Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/document.parser.class.inc.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.';
@@ 6549-6551 (lines=3) @@
6546
        if (strpos($str, '@INCLUDE') !== 0) {
6547
            return $str;
6548
        }
6549
        if (strpos($str, "\n") !== false) {
6550
            $str = substr($str, 0, strpos("\n", $str));
6551
        }
6552
6553
        $str = substr($str, 9);
6554
        $str = trim($str);