Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 689-705 (lines=17) @@
686
      }
687
    }
688
689
    function uninstall($module) {
690
      tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'OSCOM_APP_PAYPAL_BRAINTREE_" . tep_db_input($module) . "_%'");
691
692
      $m_class = 'OSCOM_Braintree_' . $module;
693
694
      if ( !class_exists($m_class) ) {
695
        $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php');
696
697
        include(DIR_FS_CATALOG . 'includes/apps/braintree/modules/' . $module . '/' . $module . '.php');
698
      }
699
700
      $m = new $m_class();
701
702
      if ( method_exists($m, 'uninstall') ) {
703
        $m->uninstall($this);
704
      }
705
    }
706
707
    function logUpdate($message, $version) {
708
      if ( is_writable(DIR_FS_CATALOG . 'includes/apps/braintree/work') ) {

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

@@ 741-757 (lines=17) @@
738
      }
739
    }
740
741
    function uninstall($module) {
742
      tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'OSCOM_APP_PAYPAL_" . tep_db_input($module) . "_%'");
743
744
      $m_class = 'OSCOM_PayPal_' . $module;
745
746
      if ( !class_exists($m_class) ) {
747
        $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php');
748
749
        include(DIR_FS_CATALOG . 'includes/apps/paypal/modules/' . $module . '/' . $module . '.php');
750
      }
751
752
      $m = new $m_class();
753
754
      if ( method_exists($m, 'uninstall') ) {
755
        $m->uninstall($this);
756
      }
757
    }
758
759
    function logUpdate($message, $version) {
760
      if ( is_writable(DIR_FS_CATALOG . 'includes/apps/paypal/work') ) {