Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6001-6003 (lines=3) @@
5998
            if (is_array($val)) {
5999
                foreach ($val as $key2 => $val2) {
6000
                    $val2 = $this->parseText($val2, $ph);
6001
                    if (preg_match($regexUrl, $val2, $url)) {
6002
                        $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val2);
6003
                    }
6004
                    if (preg_match($regexEmail, $val2, $url)) {
6005
                        $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2);
6006
                    }
@@ 6011-6013 (lines=3) @@
6008
                }
6009
            } else {
6010
                $val = $this->parseText($val, $ph);
6011
                if (preg_match($regexUrl, $val, $url)) {
6012
                    $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val);
6013
                }
6014
                if (preg_match($regexEmail, $val, $url)) {
6015
                    $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val);
6016
                }