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 = 9-9 lines in 3 locations

src/app/code/community/EbayEnterprise/Address/Test/Block/SuggestionsTest.php 1 location

@@ 31-39 (lines=9) @@
28
     * Replace the customer session object with a mock.
29
     * @return PHPUnit_Framework_MockObject_MockObject - the mock session model
30
     */
31
    protected function _mockCustomerSession()
32
    {
33
        $sessionMock = $this->getModelMockBuilder('customer/session')
34
            ->disableOriginalConstructor() // This one removes session_start and other methods usage
35
            ->setMethods(null) // Enables original methods usage, because by default it overrides all methods
36
            ->getMock();
37
        $this->replaceByMock('singleton', 'customer/session', $sessionMock);
38
        return $sessionMock;
39
    }
40
41
    /**
42
     * Test set up - mock out customer session.

src/app/code/community/EbayEnterprise/Address/Test/Model/ValidatorTest.php 2 locations

@@ 126-134 (lines=9) @@
123
     * Replace the customer session object with a mock.
124
     * @return PHPUnit_Framework_MockObject_MockObject - the mock session model
125
     */
126
    protected function _mockCustomerSession()
127
    {
128
        $sessionMock = $this->getModelMockBuilder('customer/session')
129
            ->disableOriginalConstructor() // This one removes session_start and other methods usage
130
            ->setMethods(null) // Enables original methods usage, because by default it overrides all methods
131
            ->getMock();
132
        $this->replaceByMock('singleton', 'customer/session', $sessionMock);
133
        return $sessionMock;
134
    }
135
136
    /**
137
     * Replace the customer session object with a mock.
@@ 140-148 (lines=9) @@
137
     * Replace the customer session object with a mock.
138
     * @return PHPUnit_Framework_MockObject_MockObject - the mock session model
139
     */
140
    protected function _mockCheckoutSession()
141
    {
142
        $sessionMock = $this->getModelMockBuilder('checkout/session')
143
            ->disableOriginalConstructor() // This one removes session_start and other methods usage
144
            ->setMethods(null) // Enables original methods usage, because by default it overrides all methods
145
            ->getMock();
146
        $this->replaceByMock('singleton', 'checkout/session', $sessionMock);
147
        return $sessionMock;
148
    }
149
150
    /**
151
     * Stub validator response methods with expected bahaviors.