Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5960-5962 (lines=3) @@
5957
        if (stripos($str, '@FILE') !== 0) {
5958
            return $str;
5959
        }
5960
        if (strpos($str, "\n") !== false) {
5961
            $str = substr($str, 0, strpos("\n", $str));
5962
        }
5963
5964
        if ($this->getExtFromFilename($str) === '.php') {
5965
            return 'Could not retrieve PHP file.';
@@ 6511-6513 (lines=3) @@
6508
        if (strpos($str, '@INCLUDE') !== 0) {
6509
            return $str;
6510
        }
6511
        if (strpos($str, "\n") !== false) {
6512
            $str = substr($str, 0, strpos("\n", $str));
6513
        }
6514
6515
        $str = substr($str, 9);
6516
        $str = trim($str);