Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 556-568 (lines=13) @@
553
      return $this->_title;
554
    }
555
556
    function getVersion() {
557
      if ( !isset($this->_version) ) {
558
        $version = trim(file_get_contents(DIR_FS_CATALOG . 'includes/apps/braintree/version.txt'));
559
560
        if ( is_numeric($version) ) {
561
          $this->_version = $version;
562
        } else {
563
          trigger_error('OSCOM APP [BRAINTREE]: Could not read App version number.');
564
        }
565
      }
566
567
      return $this->_version;
568
    }
569
570
    function getApiVersion() {
571
      return $this->_api_version;

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

@@ 610-622 (lines=13) @@
607
      return $this->_title;
608
    }
609
610
    function getVersion() {
611
      if ( !isset($this->_version) ) {
612
        $version = trim(file_get_contents(DIR_FS_CATALOG . 'includes/apps/paypal/version.txt'));
613
614
        if ( is_numeric($version) ) {
615
          $this->_version = $version;
616
        } else {
617
          trigger_error('OSCOM APP [PAYPAL]: Could not read App version number.');
618
        }
619
      }
620
621
      return $this->_version;
622
    }
623
624
    function getApiVersion() {
625
      return $this->_api_version;