Code Duplication    Length = 12-13 lines in 4 locations

plugins/simplenewsletter.php 1 location

@@ 35-46 (lines=12) @@
32
/**
33
 * @return array
34
 */
35
function xnewsletter_plugin_getinfo_simplenewsletter() {
36
    global $xoopsDB;
37
38
    $pluginInfo = [];
39
    $pluginInfo['name'] = 'simplenewsletter';
40
    $pluginInfo['icon'] = XOOPS_URL . '/modules/simplenewsletter/images/news_subscribe.png';
41
    $pluginInfo['tables'][0] = $xoopsDB->prefix('simplenewsletter_members');
42
    $pluginInfo['descr'] = 'Import from simplenewsletter';
43
    $pluginInfo['hasform'] = 0;
44
45
    return $pluginInfo;
46
}
47
48
/**
49
 * @param $cat_id

plugins/csv.php 1 location

@@ 36-48 (lines=13) @@
33
/**
34
 * @return array
35
 */
36
function xnewsletter_plugin_getinfo_csv()
37
{
38
    global $xoopsDB;
39
40
    $pluginInfo         = [];
41
    $pluginInfo['name'] = 'csv';
42
    $pluginInfo['icon'] = XNEWSLETTER_URL . '/plugins/csv.png';
43
    //$pluginInfo['modulepath'] = XNEWSLETTER_ROOT_PATH . "/plugins/csv.php";
44
    $pluginInfo['tables'][0] = '';
45
    $pluginInfo['descr']     = 'Import CSV';
46
    $pluginInfo['hasform']   = 1;
47
48
    return $pluginInfo;
49
}
50
51
/**

plugins/evennews.php 1 location

@@ 36-48 (lines=13) @@
33
/**
34
 * @return array
35
 */
36
function xnewsletter_plugin_getinfo_evennews()
37
{
38
    global $xoopsDB;
39
40
    $pluginInfo         = [];
41
    $pluginInfo['name'] = 'evennews';
42
    $pluginInfo['icon'] = XOOPS_URL . '/modules/evennews/images/logo.png';
43
    //$pluginInfo['modulepath'] = XOOPS_ROOT_PATH . "/modules/evennews/xoops_version.php";
44
    $pluginInfo['tables'][0] = $xoopsDB->prefix('evennews_members');
45
    $pluginInfo['descr']     = 'Import from evennews';
46
    $pluginInfo['hasform']   = 0;
47
48
    return $pluginInfo;
49
}
50
51
/**

plugins/rmbulletin.php 1 location

@@ 36-48 (lines=13) @@
33
/**
34
 * @return array
35
 */
36
function xnewsletter_plugin_getinfo_rmbulletin()
37
{
38
    global $xoopsDB;
39
40
    $pluginInfo         = [];
41
    $pluginInfo['name'] = 'rmbulletin';
42
    $pluginInfo['icon'] = XOOPS_URL . '/modules/rmbulletin/images/logo.png';
43
    //$pluginInfo['modulepath'] = XOOPS_ROOT_PATH . "/modules/rmbulletin/xoops_version.php";
44
    $pluginInfo['tables'][0] = $xoopsDB->prefix('rmb_users');
45
    $pluginInfo['descr']     = 'Import from RM-Bulletin';
46
    $pluginInfo['hasform']   = 0;
47
48
    return $pluginInfo;
49
}
50
51
/**