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 = 20-20 lines in 2 locations

src/app/code/community/EbayEnterprise/ProductImport/Model/Observers.php 1 location

@@ 25-44 (lines=20) @@
22
     * @param  Varien_Event_Observer $observer
23
     * @return self
24
     */
25
    public function processDom(Varien_Event_Observer $observer)
26
    {
27
        Varien_Profiler::start(__METHOD__);
28
        $event = $observer->getEvent();
29
        $fileDetail = $event->getFileDetail();
30
        $importConfig = Mage::getModel('ebayenterprise_catalog/feed_import_config');
31
        $importData = $importConfig->getImportConfigData();
32
        $feedConfig = $fileDetail['core_feed']->getFeedConfig();
33
34
        // only process the import if the event type is in the allowabled event type configuration for this feed
35
        if (in_array($feedConfig['event_type'], explode(',', $importData['allowable_event_type']))) {
36
            $fileDetail['doc'] = $event->getDoc();
37
            Mage::getModel('ebayenterprise_catalog/feed_file', $fileDetail)->process(
38
                $importConfig,
39
                Mage::getModel('ebayenterprise_catalog/feed_import_items')
40
            );
41
        }
42
        Varien_Profiler::stop(__METHOD__);
43
        return $this;
44
    }
45
}
46

src/app/code/community/EbayEnterprise/Eb2cGiftwrap/Model/Observers.php 1 location

@@ 61-80 (lines=20) @@
58
     * @param  Varien_Event_Observer $observer
59
     * @return self
60
     */
61
    public function processDom(Varien_Event_Observer $observer)
62
    {
63
        Varien_Profiler::start(__METHOD__);
64
        $event = $observer->getEvent();
65
        $fileDetail = $event->getFileDetail();
66
        $importConfig = Mage::getModel('eb2cgiftwrap/feed_import_config');
67
        $importData = $importConfig->getImportConfigData();
68
        $feedConfig = $fileDetail['core_feed']->getFeedConfig();
69
70
        // only process the import if the event type is in the allowabled event type configuration for this feed
71
        if (in_array($feedConfig['event_type'], explode(',', $importData['allowable_event_type']))) {
72
            $fileDetail['doc'] = $event->getDoc();
73
            Mage::getModel('ebayenterprise_catalog/feed_file', $fileDetail)->process(
74
                $importConfig,
75
                Mage::getModel('eb2cgiftwrap/feed_import_items')
76
            );
77
        }
78
        Varien_Profiler::stop(__METHOD__);
79
        return $this;
80
    }
81
82
    /**
83
     * Add order level gifting to the payload for order create requests.