Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 382-388 (lines=7) @@
379
380
      $result = curl_exec($curl);
381
382
      if (isset($opts['returnFull']) && ($opts['returnFull'] === true)) {
383
        $result = array(
384
          'response' => $result,
385
          'error' => curl_error($curl),
386
          'info' => curl_getinfo($curl)
387
        );
388
      }
389
390
      curl_close($curl);
391

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

@@ 457-463 (lines=7) @@
454
455
      $result = curl_exec($curl);
456
457
      if (isset($opts['returnFull']) && ($opts['returnFull'] === true)) {
458
        $result = array(
459
          'response' => $result,
460
          'error' => curl_error($curl),
461
          'info' => curl_getinfo($curl)
462
        );
463
      }
464
465
      curl_close($curl);
466