Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 708-710 (lines=3) @@
705
    }
706
707
    function logUpdate($message, $version) {
708
      if ( is_writable(DIR_FS_CATALOG . 'includes/apps/braintree/work') ) {
709
        file_put_contents(DIR_FS_CATALOG . 'includes/apps/braintree/work/update_log-' . $version . '.php', '[' . date('d-M-Y H:i:s') . '] ' . $message . "\n", FILE_APPEND);
710
      }
711
    }
712
713
    public function loadLanguageFile($filename, $lang = null) {

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

@@ 760-762 (lines=3) @@
757
    }
758
759
    function logUpdate($message, $version) {
760
      if ( is_writable(DIR_FS_CATALOG . 'includes/apps/paypal/work') ) {
761
        file_put_contents(DIR_FS_CATALOG . 'includes/apps/paypal/work/update_log-' . $version . '.php', '[' . date('d-M-Y H:i:s') . '] ' . $message . "\n", FILE_APPEND);
762
      }
763
    }
764
765
    public function loadLanguageFile($filename, $lang = null) {