Code Duplication    Length = 3-3 lines in 2 locations

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

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