Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

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