Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 339-341 (lines=3) @@
336
        curl_setopt($curl, CURLOPT_POSTFIELDS, $parameters);
337
      }
338
339
      if ( isset($headers) && is_array($headers) && !empty($headers) ) {
340
        curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
341
      }
342
343
      if ( isset($server['user']) && isset($server['pass']) ) {
344
        curl_setopt($curl, CURLOPT_USERPWD, $server['user'] . ':' . $server['pass']);

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

@@ 410-412 (lines=3) @@
407
        curl_setopt($curl, CURLOPT_POSTFIELDS, $parameters);
408
      }
409
410
      if ( isset($headers) && is_array($headers) && !empty($headers) ) {
411
        curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
412
      }
413
414
      if ( isset($server['user']) && isset($server['pass']) ) {
415
        curl_setopt($curl, CURLOPT_USERPWD, $server['user'] . ':' . $server['pass']);