Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5959-5961 (lines=3) @@
5956
            if (is_array($val)) {
5957
                foreach ($val as $key2 => $val2) {
5958
                    $val2 = $this->parseText($val2, $ph);
5959
                    if (preg_match($regexUrl, $val2, $url)) {
5960
                        $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ",
5961
                            $val2);
5962
                    }
5963
                    if (preg_match($regexEmail, $val2, $url)) {
5964
                        $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2);
@@ 5970-5972 (lines=3) @@
5967
                }
5968
            } else {
5969
                $val = $this->parseText($val, $ph);
5970
                if (preg_match($regexUrl, $val, $url)) {
5971
                    $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val);
5972
                }
5973
                if (preg_match($regexEmail, $val, $url)) {
5974
                    $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val);
5975
                }