Code Duplication    Length = 11-11 lines in 4 locations

catalog/includes/apps/paypal/hooks/admin/orders/action.php 1 location

@@ 18-28 (lines=11) @@
15
  }
16
17
  class paypal_hook_admin_orders_action {
18
    function paypal_hook_admin_orders_action() {
19
      global $OSCOM_PayPal;
20
21
      if ( !isset($OSCOM_PayPal) || !is_object($OSCOM_PayPal) || (get_class($OSCOM_PayPal) != 'OSCOM_PayPal') ) {
22
        $OSCOM_PayPal = new OSCOM_PayPal();
23
      }
24
25
      $this->_app = $OSCOM_PayPal;
26
27
      $this->_app->loadLanguageFile('hooks/admin/orders/action.php');
28
    }
29
30
    function execute() {
31
      global $HTTP_GET_VARS, $HTTP_POST_VARS;

catalog/includes/apps/paypal/hooks/admin/orders/tab.php 1 location

@@ 18-28 (lines=11) @@
15
  }
16
17
  class paypal_hook_admin_orders_tab {
18
    function paypal_hook_admin_orders_tab() {
19
      global $OSCOM_PayPal;
20
21
      if ( !isset($OSCOM_PayPal) || !is_object($OSCOM_PayPal) || (get_class($OSCOM_PayPal) != 'OSCOM_PayPal') ) {
22
        $OSCOM_PayPal = new OSCOM_PayPal();
23
      }
24
25
      $this->_app = $OSCOM_PayPal;
26
27
      $this->_app->loadLanguageFile('hooks/admin/orders/tab.php');
28
    }
29
30
    function execute() {
31
      global $HTTP_GET_VARS, $oID, $base_url;

catalog/includes/apps/braintree/hooks/admin/orders/action.php 1 location

@@ 20-30 (lines=11) @@
17
  class braintree_hook_admin_orders_action {
18
    var $server = 1;
19
20
    function braintree_hook_admin_orders_action() {
21
      global $OSCOM_Braintree;
22
23
      if ( !isset($OSCOM_Braintree) || !is_object($OSCOM_Braintree) || (get_class($OSCOM_Braintree) != 'OSCOM_Braintree') ) {
24
        $OSCOM_Braintree = new OSCOM_Braintree();
25
      }
26
27
      $this->_app = $OSCOM_Braintree;
28
29
      $this->_app->loadLanguageFile('hooks/admin/orders/action.php');
30
    }
31
32
    function execute() {
33
      global $HTTP_GET_VARS, $HTTP_POST_VARS;

catalog/includes/apps/braintree/hooks/admin/orders/tab.php 1 location

@@ 18-28 (lines=11) @@
15
  }
16
17
  class braintree_hook_admin_orders_tab {
18
    function braintree_hook_admin_orders_tab() {
19
      global $OSCOM_Braintree;
20
21
      if ( !isset($OSCOM_Braintree) || !is_object($OSCOM_Braintree) || (get_class($OSCOM_Braintree) != 'OSCOM_Braintree') ) {
22
        $OSCOM_Braintree = new OSCOM_Braintree();
23
      }
24
25
      $this->_app = $OSCOM_Braintree;
26
27
      $this->_app->loadLanguageFile('hooks/admin/orders/tab.php');
28
    }
29
30
    function execute() {
31
      global $HTTP_GET_VARS, $oID, $base_url;