Code Duplication    Length = 5-5 lines in 3 locations

customer.php 1 location

@@ 61-65 (lines=5) @@
58
        unset($customer);
59
    }
60
    // Display Navigation
61
    if ($customerCount > $customerPaginationLimit) {
62
        require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
63
        $pagenav = new XoopsPageNav($customerCount, $customerPaginationLimit, $start, 'start');
64
        $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
65
    }
66
}
67
//keywords
68
if (isset($keywords)) {

equipment.php 1 location

@@ 60-64 (lines=5) @@
57
        unset($equipment);
58
    }
59
    // Display Navigation
60
    if ($equipmentCount > $equipmentPaginationLimit) {
61
        require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
62
        $pagenav = new XoopsPageNav($equipmentCount, $equipmentPaginationLimit, $start, 'start');
63
        $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
64
    }
65
}
66
//keywords
67
if (isset($keywords)) {

rentals.php 1 location

@@ 66-70 (lines=5) @@
63
        unset($rentals);
64
    }
65
    // Display Navigation
66
    if ($rentalsCount > $rentalsPaginationLimit) {
67
        require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
68
        $pagenav = new XoopsPageNav($rentalsCount, $rentalsPaginationLimit, $start, 'start');
69
        $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
70
    }
71
}
72
//keywords
73
if (isset($keywords)) {