Code Duplication    Length = 11-11 lines in 2 locations

class/files/user/UserXoopsVersion.php 2 locations

@@ 787-797 (lines=11) @@
784
     *
785
     * @return string
786
     */
787
    private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $file, $item, $allow, $num)
788
    {
789
        $title = strtoupper($title);
790
        $impFile = implode(".php', '", $file);
791
        $ret = $this->getCommentLine('Category Notify');
792
        $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
793
                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
794
        $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
795
796
        return $ret;
797
    }
798
799
    /*
800
    *  @private function getXoopsVersionNotificationTableName
@@ 813-823 (lines=11) @@
810
     *
811
     * @return string
812
     */
813
    private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $from, $item = 'cid', $allow = 1, $num)
814
    {
815
        $stuTitle = strtoupper($title);
816
        $ucfTitle = ucfirst($title);
817
        $ret = $this->getCommentLine($ucfTitle.' Notify');
818
        $global = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
819
                        'subscribe_from' => "'{$from}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
820
        $ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
821
822
        return $ret;
823
    }
824
825
    /*
826
    *  @private function getXoopsVersionNotifications