Code Duplication    Length = 11-11 lines in 2 locations

class/files/user/UserXoopsVersion.php 2 locations

@@ 770-780 (lines=11) @@
767
     *
768
     * @return string
769
     */
770
    private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $from, $item, $allow, $num)
771
    {
772
        $title = strtoupper($title);//{$from}
773
        $implodeFrom = implode(".php', '", $from);
774
        $ret = $this->getCommentLine('Category Notify');
775
        $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
776
                        'subscribe_from' => "array('{$implodeFrom}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
777
        $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
778
779
        return $ret;
780
    }
781
782
    /*
783
    *  @private function getXoopsVersionNotificationTableName
@@ 796-806 (lines=11) @@
793
     *
794
     * @return string
795
     */
796
    private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $from, $item = 'cid', $allow = 1, $num)
797
    {
798
        $stuTitle = strtoupper($title);
799
        $ucfTitle = ucfirst($title);
800
        $ret = $this->getCommentLine($ucfTitle.' Notify');
801
        $global = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
802
                        'subscribe_from' => "'{$from}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
803
        $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
804
805
        return $ret;
806
    }
807
808
    /*
809
    *  @private function getXoopsVersionNotifications