Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6040-6042 (lines=3) @@
6037
            if (is_array($val)) {
6038
                foreach ($val as $key2 => $val2) {
6039
                    $val2 = $this->parseText($val2, $ph);
6040
                    if (preg_match($regexUrl, $val2, $url)) {
6041
                        $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val2);
6042
                    }
6043
                    if (preg_match($regexEmail, $val2, $url)) {
6044
                        $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2);
6045
                    }
@@ 6050-6052 (lines=3) @@
6047
                }
6048
            } else {
6049
                $val = $this->parseText($val, $ph);
6050
                if (preg_match($regexUrl, $val, $url)) {
6051
                    $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val);
6052
                }
6053
                if (preg_match($regexEmail, $val, $url)) {
6054
                    $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val);
6055
                }