Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5981-5983 (lines=3) @@
5978
        if (stripos($str, '@FILE') !== 0) {
5979
            return $str;
5980
        }
5981
        if (strpos($str, "\n") !== false) {
5982
            $str = substr($str, 0, strpos("\n", $str));
5983
        }
5984
5985
        if ($this->getExtFromFilename($str) === '.php') {
5986
            return 'Could not retrieve PHP file.';
@@ 6532-6534 (lines=3) @@
6529
        if (strpos($str, '@INCLUDE') !== 0) {
6530
            return $str;
6531
        }
6532
        if (strpos($str, "\n") !== false) {
6533
            $str = substr($str, 0, strpos("\n", $str));
6534
        }
6535
6536
        $str = substr($str, 9);
6537
        $str = trim($str);