Code Duplication    Length = 3-3 lines in 2 locations

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

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