Code Duplication    Length = 11-13 lines in 2 locations

admin/alumni.php 1 location

@@ 285-295 (lines=11) @@
282
        $form->display();
283
        break;
284
285
    case 'edit_listing':
286
        $xoops->header();
287
        $lid        = Request::getInt('lid', 0);
288
        $adminObject = new Xoops\Module\Admin();
289
        $adminObject->addItemButton(AlumniLocale::ADD_LISTING, 'alumni.php?op=new_listing', 'add');
290
        $adminObject->addItemButton(AlumniLocale::LISTINGLIST, 'alumni.php', 'list');
291
        echo $adminObject->renderButton('left', '');
292
        $obj  = $listingHandler->get($lid);
293
        $form = $xoops->getModuleForm($obj, 'listing');
294
        $form->display();
295
        break;
296
297
    case 'delete_listing':
298
        $xoops->header();

admin/category.php 1 location

@@ 249-261 (lines=13) @@
246
        $form->display();
247
        break;
248
249
    case 'edit_category':
250
251
        $cid   = Request::getInt('cid', 0);
252
        $xoops = Xoops::getInstance();
253
        $xoops->header();
254
        $adminObject = new \Xoops\Module\Admin();
255
        $adminObject->displayNavigation('category.php');
256
        $adminObject->addItemButton(AlumniLocale::LIST_CATS, 'alumni.php', 'list');
257
        $adminObject->renderButton('left', '');
258
        $obj  = $categoriesHandler->get($cid);
259
        $form = $xoops->getModuleForm($obj, 'category');
260
        $form->display();
261
        break;
262
263
    case 'delete_category':
264
        $xoops = Xoops::getInstance();