Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 5746-5748 (lines=3) @@
5743
            if (is_array($val)) {
5744
                foreach ($val as $key2 => $val2) {
5745
                    $val2 = $this->parseText($val2, $ph);
5746
                    if (preg_match($regexUrl, $val2, $url)) {
5747
                        $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val2);
5748
                    }
5749
                    if (preg_match($regexEmail, $val2, $url)) {
5750
                        $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2);
5751
                    }
@@ 5756-5758 (lines=3) @@
5753
                }
5754
            } else {
5755
                $val = $this->parseText($val, $ph);
5756
                if (preg_match($regexUrl, $val, $url)) {
5757
                    $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val);
5758
                }
5759
                if (preg_match($regexEmail, $val, $url)) {
5760
                    $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val);
5761
                }