Code Duplication    Length = 6-9 lines in 2 locations

catalog/checkout_shipping.php 1 location

@@ 59-64 (lines=6) @@
56
57
// if the order contains only virtual products, forward the customer to the billing page as
58
// a shipping address is not needed
59
  if ($order->content_type == 'virtual') {
60
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
61
    $shipping = false;
62
    $sendto = false;
63
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
64
  }
65
66
  $total_weight = $cart->show_weight();
67
  $total_count = $cart->count_contents();

catalog/includes/modules/payment/braintree_cc.php 1 location

@@ 288-296 (lines=9) @@
285
286
      if (!tep_session_is_registered('appBraintreeCcNonce') && (OSCOM_APP_PAYPAL_BRAINTREE_CC_ENTRY_FORM == '3')) {
287
        if (($request_type == 'NONSSL') && ((OSCOM_APP_PAYPAL_BRAINTREE_CC_THREE_D_SECURE === '1') || (OSCOM_APP_PAYPAL_BRAINTREE_CC_THREE_D_SECURE === '2'))) {
288
          if (ENABLE_SSL == true) {
289
// prevent redirect loop for incorrectly configured servers
290
            if (!tep_session_is_registered('bt_3ds_ssl_check')) {
291
              $bt_3ds_ssl_check = true;
292
              tep_session_register('bt_3ds_ssl_check');
293
294
              tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
295
            }
296
          }
297
        }
298
299
        if (tep_session_is_registered('bt_3ds_ssl_check')) {