Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 6014-6016 (lines=3) @@
6011
            if (is_array($val)) {
6012
                foreach ($val as $key2 => $val2) {
6013
                    $val2 = $this->parseText($val2, $ph);
6014
                    if (preg_match($regexUrl, $val2, $url)) {
6015
                        $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val2);
6016
                    }
6017
                    if (preg_match($regexEmail, $val2, $url)) {
6018
                        $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2);
6019
                    }
@@ 6024-6026 (lines=3) @@
6021
                }
6022
            } else {
6023
                $val = $this->parseText($val, $ph);
6024
                if (preg_match($regexUrl, $val, $url)) {
6025
                    $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val);
6026
                }
6027
                if (preg_match($regexEmail, $val, $url)) {
6028
                    $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val);
6029
                }