Code Duplication    Length = 3-3 lines in 2 locations

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

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