Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

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