Code Duplication    Length = 5-5 lines in 2 locations

checkout.php 2 locations

@@ 158-162 (lines=5) @@
155
                    Oledrion_utils::redirect(_OLEDRION_ERROR20, OLEDRION_URL, 4);
156
                }
157
                // Check checkout level
158
                if ($checkout_level == 1) {
159
                    Oledrion_utils::redirect(_OLEDRION_FINAL_CHECKOUT, OLEDRION_URL . 'checkout.php?op=confirm&commend_id=' . $commend_id, 1);
160
                } elseif ($checkout_level == 2) {
161
                    Oledrion_utils::redirect(_OLEDRION_SELECT_LOCATION, OLEDRION_URL . 'checkout.php?op=location&commend_id=' . $commend_id, 1);
162
                }
163
164
                $packing = $h_oledrion_packing->get($packing_id);
165
                if (!$packing->getVar('packing_id')) {
@@ 371-375 (lines=5) @@
368
            Oledrion_utils::redirect(_OLEDRION_ERROR20, OLEDRION_URL, 4);
369
        }
370
        // Check checkout level
371
        if ($checkout_level == 1) {
372
            Oledrion_utils::redirect(_OLEDRION_FINAL_CHECKOUT, OLEDRION_URL . 'checkout.php?op=confirm&commend_id=' . $commend_id, 1);
373
        } elseif ($checkout_level == 2) {
374
            Oledrion_utils::redirect(_OLEDRION_SELECT_LOCATION, OLEDRION_URL . 'checkout.php?op=location&commend_id=' . $commend_id, 1);
375
        }
376
        listCart();
377
        $packings = $h_oledrion_packing->getPacking();
378