Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 680-682 (lines=3) @@
677
    }
678
679
    function logUpdate($message, $version) {
680
      if ( is_writable(DIR_FS_CATALOG . 'includes/apps/braintree/work') ) {
681
        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);
682
      }
683
    }
684
685
    public function loadLanguageFile($filename, $lang = null) {

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

@@ 734-736 (lines=3) @@
731
    }
732
733
    function logUpdate($message, $version) {
734
      if ( is_writable(DIR_FS_CATALOG . 'includes/apps/paypal/work') ) {
735
        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);
736
      }
737
    }
738
739
    public function loadLanguageFile($filename, $lang = null) {