Code Duplication    Length = 8-8 lines in 3 locations

admin/customer.php 1 location

@@ 323-330 (lines=8) @@
320
        $form->display();
321
        break;
322
323
    case 'edit':
324
        $adminObject->addItemButton(AM_EQUIPMENT_ADD_CUSTOMER, 'customer.php?op=new', 'add');
325
        $adminObject->addItemButton(AM_EQUIPMENT_CUSTOMER_LIST, 'customer.php', 'list');
326
        echo $adminObject->displayButton('left');
327
        $customerObject = $customerHandler->get(Request::getString('id', ''));
328
        $form           = $customerObject->getForm();
329
        $form->display();
330
        break;
331
332
    case 'delete':
333
        $customerObject = $customerHandler->get(Request::getString('id', ''));

admin/equipment.php 1 location

@@ 338-345 (lines=8) @@
335
        $form->display();
336
        break;
337
338
    case 'edit':
339
        $adminObject->addItemButton(AM_EQUIPMENT_ADD_EQUIPMENT, 'equipment.php?op=new', 'add');
340
        $adminObject->addItemButton(AM_EQUIPMENT_EQUIPMENT_LIST, 'equipment.php', 'list');
341
        echo $adminObject->displayButton('left');
342
        $equipmentObject = $equipmentHandler->get(Request::getString('id', ''));
343
        $form            = $equipmentObject->getForm();
344
        $form->display();
345
        break;
346
347
    case 'delete':
348
        $equipmentObject = $equipmentHandler->get(Request::getString('id', ''));

admin/rentals.php 1 location

@@ 204-211 (lines=8) @@
201
        $form->display();
202
        break;
203
204
    case 'edit':
205
        $adminObject->addItemButton(AM_EQUIPMENT_ADD_RENTALS, 'rentals.php?op=new', 'add');
206
        $adminObject->addItemButton(AM_EQUIPMENT_RENTALS_LIST, 'rentals.php', 'list');
207
        echo $adminObject->displayButton('left');
208
        $rentalsObject = $rentalsHandler->get(Request::getString('id', ''));
209
        $form          = $rentalsObject->getForm();
210
        $form->display();
211
        break;
212
213
    case 'delete':
214
        $rentalsObject = $rentalsHandler->get(Request::getString('id', ''));