Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 6223-6225 (lines=3) @@
6220
        if (stripos($str, '@FILE') !== 0) {
6221
            return $str;
6222
        }
6223
        if (strpos($str, "\n") !== false) {
6224
            $str = substr($str, 0, strpos("\n", $str));
6225
        }
6226
6227
        if ($this->getExtFromFilename($str) === '.php') {
6228
            return 'Could not retrieve PHP file.';
@@ 6795-6797 (lines=3) @@
6792
        if (strpos($str, '@INCLUDE') !== 0) {
6793
            return $str;
6794
        }
6795
        if (strpos($str, "\n") !== false) {
6796
            $str = substr($str, 0, strpos("\n", $str));
6797
        }
6798
6799
        $str = substr($str, 9);
6800
        $str = trim($str);