Code Duplication    Length = 15-15 lines in 2 locations

class/files/user/UserXoopsVersion.php 2 locations

@@ 966-980 (lines=15) @@
963
     *
964
     * @return string
965
     */
966
    private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $from, $item, $allow)
967
    {
968
        $title = strtoupper($title);//{$from}
969
        $ret = "
970
\$modversion['notification']['{$type}'][] = array(
971
    'name' => '{$name}',
972
    'title' => {$language}{$title}_NOTIFY,
973
    'description' => {$language}{$title}_NOTIFY_DESC,
974
    'subscribe_from' => array('".implode(".php', '", $from).".php'),
975
	'item_name' => '{$item}',
976
    'allow_bookmark' => {$allow});\n
977
";
978
979
        return $ret;
980
    }
981
982
    /*
983
    *  @private function getXoopsVersionNotificationTableName
@@ 996-1010 (lines=15) @@
993
     *
994
     * @return string
995
     */
996
    private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $from, $item = 'cid', $allow = 1)
997
    {
998
        $title = strtoupper($title);
999
        $ret = <<<EOT
1000
\$modversion['notification']['{$type}'][] = array(
1001
    'name' => '{$name}',
1002
    'title' => {$language}{$title}_NOTIFY,
1003
    'description' => {$language}{$title}_NOTIFY_DESC,
1004
    'subscribe_from' => '{$from}.php',
1005
    'item_name' => '{$item}',
1006
    'allow_bookmark' => {$allow});\n\n
1007
EOT;
1008
1009
        return $ret;
1010
    }
1011
1012
    /*
1013
    *  @private function getXoopsVersionNotifications