Code Duplication    Length = 15-15 lines in 2 locations

class/files/user/UserXoopsVersion.php 2 locations

@@ 927-941 (lines=15) @@
924
     *
925
     * @return string
926
     */
927
    private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $from, $item, $allow)
928
    {
929
        $title = strtoupper($title);//{$from}
930
        $ret = "
931
\$modversion['notification']['{$type}'][] = array(
932
    'name' => '{$name}',
933
    'title' => {$language}{$title}_NOTIFY,
934
    'description' => {$language}{$title}_NOTIFY_DESC,
935
    'subscribe_from' => array('".implode(".php', '", $from).".php'),
936
	'item_name' => '{$item}',
937
    'allow_bookmark' => {$allow});\n
938
";
939
940
        return $ret;
941
    }
942
943
    /*
944
    *  @private function getXoopsVersionNotificationTableName
@@ 957-971 (lines=15) @@
954
     *
955
     * @return string
956
     */
957
    private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $from, $item = 'cid', $allow = 1)
958
    {
959
        $title = strtoupper($title);
960
        $ret = <<<EOT
961
\$modversion['notification']['{$type}'][] = array(
962
    'name' => '{$name}',
963
    'title' => {$language}{$title}_NOTIFY,
964
    'description' => {$language}{$title}_NOTIFY_DESC,
965
    'subscribe_from' => '{$from}.php',
966
    'item_name' => '{$item}',
967
    'allow_bookmark' => {$allow});\n\n
968
EOT;
969
970
        return $ret;
971
    }
972
973
    /*
974
    *  @private function getXoopsVersionNotifications