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

src/app/code/community/EbayEnterprise/GiftCard/Model/Giftcard.php 1 location

@@ 76-99 (lines=24) @@
73
     *                          - 'mask' => EbayEnterprise_GiftCard_Model_Mask
74
     *                          - 'config' => EbayEnterprise_Eb2cCore_Model_Config_Registry
75
     */
76
    public function __construct(array $initParams = [])
77
    {
78
        list(
79
            $this->tenderTypeHelper,
80
            $this->helper,
81
            $this->coreHelper,
82
            $this->logger,
83
            $this->context,
84
            $this->apiLogger,
85
            $this->mask,
86
            $this->memo,
87
            $this->config
88
        ) = $this->checkTypes(
89
            $this->nullCoalesce($initParams, 'tender_type_helper', Mage::helper('ebayenterprise_giftcard/tendertype')),
90
            $this->nullCoalesce($initParams, 'helper', Mage::helper('ebayenterprise_giftcard')),
91
            $this->nullCoalesce($initParams, 'core_helper', Mage::helper('eb2ccore')),
92
            $this->nullCoalesce($initParams, 'logger', Mage::helper('ebayenterprise_magelog')),
93
            $this->nullCoalesce($initParams, 'context', Mage::helper('ebayenterprise_magelog/context')),
94
            $this->nullCoalesce($initParams, 'api_logger', new NullLogger),
95
            $this->nullCoalesce($initParams, 'mask', Mage::getModel('ebayenterprise_giftcard/mask')),
96
            $this->nullCoalesce($initParams, 'memo', Mage::getModel('ebayenterprise_giftcard/giftcard_memo')),
97
            $this->nullCoalesce($initParams, 'config', Mage::helper('ebayenterprise_giftcard')->getConfigModel())
98
        );
99
    }
100
101
    /**
102
     * Type checks for self::__construct $initParams.

src/app/code/community/EbayEnterprise/Order/Model/Observer.php 1 location

@@ 45-68 (lines=24) @@
42
    /**
43
     * Initialize properties
44
     */
45
    public function __construct(array $args = [])
46
    {
47
        list(
48
            $this->factory,
49
            $this->logger,
50
            $this->orderHelper,
51
            $this->orderCfg,
52
            $this->orderEventHelper,
53
            $this->shipmentEventHelper,
54
            $this->giftCardHelper,
55
            $this->coreHelper,
56
            $this->logContext
57
        ) = $this->checkTypes(
58
            $this->nullCoalesce('factory', $args, Mage::helper('ebayenterprise_order/factory')),
59
            $this->nullCoalesce('logger', $args, Mage::helper('ebayenterprise_magelog')),
60
            $this->nullCoalesce('helper', $args, Mage::helper('ebayenterprise_order')),
61
            $this->nullCoalesce('config', $args, Mage::helper('ebayenterprise_order')->getConfigModel()),
62
            $this->nullCoalesce('event_helper', $args, Mage::helper('ebayenterprise_order/event')),
63
            $this->nullCoalesce('shipment_event_helper', $args, Mage::helper('ebayenterprise_order/event_shipment')),
64
            $this->nullCoalesce('giftcard_helper', $args, Mage::helper('ebayenterprise_order/giftcard')),
65
            $this->nullCoalesce('core_helper', $args, Mage::helper('eb2ccore')),
66
            $this->nullCoalesce('log_context', $args, Mage::helper('ebayenterprise_magelog/context'))
67
        );
68
    }
69
70
    /**
71
     * ensure correct types are being injected