Code Duplication    Length = 13-13 lines in 3 locations

plugins/smartpartner.php 1 location

@@ 10-22 (lines=13) @@
7
 * Licence: GNU
8
 */
9
10
function smartobject_plugin_smartpartner()
11
{
12
    $pluginInfo = [];
13
14
    $pluginInfo['items']['partner']['caption'] = 'Partner';
15
    $pluginInfo['items']['partner']['url']     = 'partner.php?partnerid=%u';
16
    $pluginInfo['items']['partner']['request'] = 'partnerid';
17
18
    $pluginInfo['items']['category']['caption'] = 'Category';
19
    $pluginInfo['items']['category']['url']     = 'index.php?view_category_id=%u';
20
    $pluginInfo['items']['category']['request'] = 'view_category_id';
21
22
    return $pluginInfo;
23
}
24

plugins/smartsection.php 1 location

@@ 10-22 (lines=13) @@
7
 * Licence: GNU
8
 */
9
10
function smartobject_plugin_smartsection()
11
{
12
    $pluginInfo = [];
13
14
    $pluginInfo['items']['item']['caption'] = 'Article';
15
    $pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
16
    $pluginInfo['items']['item']['request'] = 'itemid';
17
18
    $pluginInfo['items']['category']['caption'] = 'Category';
19
    $pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
20
    $pluginInfo['items']['category']['request'] = 'categoryid';
21
22
    return $pluginInfo;
23
}
24

plugins/smartshop.php 1 location

@@ 10-22 (lines=13) @@
7
 * Licence: GNU
8
 */
9
10
function smartobject_plugin_smartshop()
11
{
12
    $pluginInfo = [];
13
14
    $pluginInfo['items']['item']['caption'] = 'Item';
15
    $pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
16
    $pluginInfo['items']['item']['request'] = 'itemid';
17
18
    $pluginInfo['items']['category']['caption'] = 'Category';
19
    $pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
20
    $pluginInfo['items']['category']['request'] = 'categoryid';
21
22
    return $pluginInfo;
23
}
24