Code Duplication    Length = 6-6 lines in 3 locations

subscriptions.php 3 locations

@@ 328-333 (lines=6) @@
325
    case 'orderselect':
326
        orderselect();
327
        break;
328
    case 'orderpayment':
329
        $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_subscriptions.tpl';
330
        include XOOPS_ROOT_PATH . '/header.php';
331
        orderpayment();
332
        $xoopsTpl->assign('xoops_module_header', $xoops_module_header);
333
        break;
334
    case 'terminate':
335
        $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_subscriptions.tpl';
336
        include XOOPS_ROOT_PATH . '/header.php';
@@ 334-339 (lines=6) @@
331
        orderpayment();
332
        $xoopsTpl->assign('xoops_module_header', $xoops_module_header);
333
        break;
334
    case 'terminate':
335
        $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_subscriptions.tpl';
336
        include XOOPS_ROOT_PATH . '/header.php';
337
        terminate();
338
        $xoopsTpl->assign('xoops_module_header', $xoops_module_header);
339
        break;
340
    case 'terminate_confirm':
341
        include XOOPS_ROOT_PATH . '/header.php';
342
        terminate_confirm();
@@ 348-353 (lines=6) @@
345
        include XOOPS_ROOT_PATH . '/header.php';
346
        renew();
347
        break;
348
    default:
349
        $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_subscriptions.tpl';
350
        include XOOPS_ROOT_PATH . '/header.php';
351
        showsubscription();
352
        $xoopsTpl->assign('xoops_module_header', $xoops_module_header);
353
        break;
354
}
355
356
include XOOPS_ROOT_PATH . '/footer.php';