Code Duplication    Length = 4-4 lines in 2 locations

catalog/includes/apps/braintree/OSCOM_Braintree.php 1 location

@@ 375-378 (lines=4) @@
372
        }
373
      }
374
375
      if ( defined('OSCOM_APP_PAYPAL_BRAINTREE_PROXY') && tep_not_null(OSCOM_APP_PAYPAL_BRAINTREE_PROXY) ) {
376
        curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true);
377
        curl_setopt($curl, CURLOPT_PROXY, OSCOM_APP_PAYPAL_BRAINTREE_PROXY);
378
      }
379
380
      $result = curl_exec($curl);
381

catalog/includes/apps/paypal/OSCOM_PayPal.php 1 location

@@ 450-453 (lines=4) @@
447
        }
448
      }
449
450
      if ( defined('OSCOM_APP_PAYPAL_PROXY') && tep_not_null(OSCOM_APP_PAYPAL_PROXY) ) {
451
        curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true);
452
        curl_setopt($curl, CURLOPT_PROXY, OSCOM_APP_PAYPAL_PROXY);
453
      }
454
455
      $result = curl_exec($curl);
456