Code Duplication    Length = 7-7 lines in 3 locations

admin/groupperm.php 3 locations

@@ 41-47 (lines=7) @@
38
    switch ($op) {
39
40
        case 'alumni_view':
41
        default:
42
            $title_of_form = constant($modinfo_lang . '_VIEWFORM');
43
            $perm_name     = 'alumni_view';
44
            $restriction   = '';
45
            $anonymous     = true;
46
            $form          = new XoopsGroupPermForm($title_of_form, $moduleId, $perm_name, $perm_desc, 'admin/groupperm.php', $anonymous);
47
            break;
48
49
        case 'alumni_submit':
50
        default:
@@ 50-56 (lines=7) @@
47
            break;
48
49
        case 'alumni_submit':
50
        default:
51
            $title_of_form = constant($modinfo_lang . '_SUBMITFORM');
52
            $perm_name     = 'alumni_submit';
53
            $restriction   = '';
54
            $anonymous     = false;
55
            $form          = new XoopsGroupPermForm($title_of_form, $moduleId, $perm_name, $perm_desc, 'admin/groupperm.php', $anonymous);
56
            break;
57
58
        case 'alumni_premium':
59
            $title_of_form = constant($modinfo_lang . '_PREMIUM');
@@ 58-64 (lines=7) @@
55
            $form          = new XoopsGroupPermForm($title_of_form, $moduleId, $perm_name, $perm_desc, 'admin/groupperm.php', $anonymous);
56
            break;
57
58
        case 'alumni_premium':
59
            $title_of_form = constant($modinfo_lang . '_PREMIUM');
60
            $perm_name     = 'alumni_premium';
61
            $restriction   = '';
62
            $anonymous     = false;
63
            $form          = new XoopsGroupPermForm($title_of_form, $moduleId, $perm_name, $perm_desc, 'admin/groupperm.php', $anonymous);
64
            break;
65
    }
66
67
    $opform   = new XoopsSimpleForm('', 'opform', 'groupperm.php', 'get');