Code Duplication    Length = 11-11 lines in 2 locations

class/files/user/UserXoopsVersion.php 2 locations

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