Code Duplication    Length = 4-4 lines in 2 locations

main/inc/lib/display.lib.php 2 locations

@@ 597-600 (lines=4) @@
594
        }
595
        // Encrypt email
596
        $hmail = '';
597
        for ($i = 0; $i < strlen($email); $i ++) {
598
            $hmail .= '&#'.ord($email {
599
            $i }).';';
600
        }
601
        $hclickable_text = null;
602
        // Encrypt clickable text if @ is present
603
        if (strpos($clickable_text, '@')) {
@@ 636-639 (lines=4) @@
633
        }
634
        // Encrypt email
635
        $hmail = '';
636
        for ($i = 0; $i < strlen($email); $i ++) {
637
            $hmail .= '&#'.ord($email {
638
            $i }).';';
639
        }
640
        // icon html code
641
        $icon_html_source = self::return_icon($icon_file, $hmail, '', $icon_size);
642
        // Return encrypted mailto hyperlink