GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 13-13 lines in 2 locations

src/app/code/community/EbayEnterprise/Tax/Helper/Data.php 1 location

@@ 107-119 (lines=13) @@
104
     * @param string $countryCode The two letter code for a country (US, CA, DE, etc...)
105
     * @return string|null The HTS Code for the product/country combination. Null if no HTS code is available.
106
     */
107
    public function getProductHtsCodeByCountry(Mage_Catalog_Model_Product $product, $countryCode)
108
    {
109
        $htsCodes = unserialize($product->getHtsCodes());
110
        if (is_array($htsCodes)) {
111
            foreach ($htsCodes as $htsCode) {
112
                if ($countryCode === $htsCode['destination_country']) {
113
                    return $htsCode['hts_code'];
114
                }
115
            }
116
        }
117
118
        return null;
119
    }
120
121
    /**
122
     * Make an API request to the TDF service for the quote and return any

src/app/code/community/EbayEnterprise/Catalog/Helper/Data.php 1 location

@@ 717-729 (lines=13) @@
714
     * @param string $countryCode the two letter code for a country (US, CA, DE, etc...)
715
     * @return string | null the htscode matching the country code for that product otherwise null
716
     */
717
    public function getProductHtsCodeByCountry(Mage_Catalog_Model_Product $product, $countryCode)
718
    {
719
        $htsCodes = unserialize($product->getHtsCodes());
720
        if ($htsCodes) {
721
            foreach ($htsCodes as $htsCode) {
722
                if ($countryCode === $htsCode['destination_country']) {
723
                    return $htsCode['hts_code'];
724
                }
725
            }
726
        }
727
728
        return null;
729
    }
730
731
    /**
732
     * Save an EAV collection, disabling the indexer if the collection is