Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5733-5735 (lines=3) @@
5730
            if (is_array($val)) {
5731
                foreach ($val as $key2 => $val2) {
5732
                    $val2 = $this->parseText($val2, $ph);
5733
                    if (preg_match($regexUrl, $val2, $url)) {
5734
                        $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val2);
5735
                    }
5736
                    if (preg_match($regexEmail, $val2, $url)) {
5737
                        $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2);
5738
                    }
@@ 5743-5745 (lines=3) @@
5740
                }
5741
            } else {
5742
                $val = $this->parseText($val, $ph);
5743
                if (preg_match($regexUrl, $val, $url)) {
5744
                    $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val);
5745
                }
5746
                if (preg_match($regexEmail, $val, $url)) {
5747
                    $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val);
5748
                }