Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5990-5992 (lines=3) @@
5987
        if (stripos($str, '@FILE') !== 0) {
5988
            return $str;
5989
        }
5990
        if (strpos($str, "\n") !== false) {
5991
            $str = substr($str, 0, strpos("\n", $str));
5992
        }
5993
5994
        if ($this->getExtFromFilename($str) === '.php') {
5995
            return 'Could not retrieve PHP file.';
@@ 6538-6540 (lines=3) @@
6535
        if (strpos($str, '@INCLUDE') !== 0) {
6536
            return $str;
6537
        }
6538
        if (strpos($str, "\n") !== false) {
6539
            $str = substr($str, 0, strpos("\n", $str));
6540
        }
6541
6542
        $str = substr($str, 9);
6543
        $str = trim($str);