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 = 18-18 lines in 4 locations

src/app/code/community/EbayEnterprise/Order/Test/Controller/OrderControllerTest.php 4 locations

@@ 359-376 (lines=18) @@
356
     * EbayEnterprise_Order_OrderController::renderLayout() will be called. Finally, the method
357
     * EbayEnterprise_Order_OrderController::romViewAction() will return null.
358
     */
359
    public function testRomViewAction()
360
    {
361
        /** @var Mock_Zend_Controller_Request_Abstract */
362
        $request = $this->getMockForAbstractClass('Zend_Controller_Request_Abstract');
363
        /** @var Mock_Zend_Controller_Response_Abstract */
364
        $response = $this->getMockForAbstractClass('Zend_Controller_Response_Abstract');
365
366
        /** @var Mock_EbayEnterprise_Order_OrderController */
367
        $controller = $this->getMockBuilder('EbayEnterprise_Order_OrderController')
368
            ->setMethods(['_viewAction'])
369
            ->setConstructorArgs([$request, $response])
370
            ->getMock();
371
        $controller->expects($this->once())
372
            ->method('_viewAction')
373
            ->will($this->returnValue(null));
374
375
        $this->assertNull($controller->romViewAction());
376
    }
377
378
    /**
379
     * Test that the controller method EbayEnterprise_Order_OrderController::romGuestViewAction()
@@ 387-404 (lines=18) @@
384
     * EbayEnterprise_Order_OrderController::renderLayout() will be called. Finally, the method
385
     * EbayEnterprise_Order_OrderController::romGuestViewAction() will return null.
386
     */
387
    public function testRomGuestViewAction()
388
    {
389
        /** @var Mock_Zend_Controller_Request_Abstract */
390
        $request = $this->getMockForAbstractClass('Zend_Controller_Request_Abstract');
391
        /** @var Mock_Zend_Controller_Response_Abstract */
392
        $response = $this->getMockForAbstractClass('Zend_Controller_Response_Abstract');
393
394
        /** @var Mock_EbayEnterprise_Order_OrderController */
395
        $controller = $this->getMockBuilder('EbayEnterprise_Order_OrderController')
396
            ->setMethods(['_viewAction'])
397
            ->setConstructorArgs([$request, $response])
398
            ->getMock();
399
        $controller->expects($this->once())
400
            ->method('_viewAction')
401
            ->will($this->returnValue(null));
402
403
        $this->assertNull($controller->romGuestViewAction());
404
    }
405
406
    /**
407
     * @return array
@@ 498-515 (lines=18) @@
495
     * is invoked and it will call the method EbayEnterprise_Order_OrderController::romCancelAction().
496
     * Finally, the method EbayEnterprise_Order_OrderController::romGuestCancelAction() will return null.
497
     */
498
    public function testromGuestCancelAction()
499
    {
500
        /** @var Mock_Zend_Controller_Request_Abstract */
501
        $request = $this->getMockForAbstractClass('Zend_Controller_Request_Abstract');
502
        /** @var Mock_Zend_Controller_Response_Abstract */
503
        $response = $this->getMockForAbstractClass('Zend_Controller_Response_Abstract');
504
505
        /** @var Mock_EbayEnterprise_Order_OrderController */
506
        $controller = $this->getMockBuilder('EbayEnterprise_Order_OrderController')
507
            ->setMethods(['romCancelAction'])
508
            ->setConstructorArgs([$request, $response])
509
            ->getMock();
510
        $controller->expects($this->once())
511
            ->method('romCancelAction')
512
            ->will($this->returnValue(null));
513
514
        $this->assertNull($controller->romGuestCancelAction());
515
    }
516
517
    /**
518
     * Test that the controller method EbayEnterprise_Order_OrderController::_setRefererUrlInSession()
@@ 684-701 (lines=18) @@
681
     * EbayEnterprise_Order_OrderController::renderLayout() will be called. Finally, the method
682
     * EbayEnterprise_Order_OrderController::_showOrderCancelPage() will return itself.
683
     */
684
    public function testShowOrderCancelPage()
685
    {
686
        /** @var Mock_Zend_Controller_Request_Abstract */
687
        $request = $this->getMockForAbstractClass('Zend_Controller_Request_Abstract');
688
        /** @var Mock_Zend_Controller_Response_Abstract */
689
        $response = $this->getMockForAbstractClass('Zend_Controller_Response_Abstract');
690
691
        /** @var Mock_EbayEnterprise_Order_OrderController */
692
        $controller = $this->getMockBuilder('EbayEnterprise_Order_OrderController')
693
            ->setMethods(['_viewAction'])
694
            ->setConstructorArgs([$request, $response])
695
            ->getMock();
696
        $controller->expects($this->once())
697
            ->method('_viewAction')
698
            ->will($this->returnValue(null));
699
700
        $this->assertSame($controller, EcomDev_Utils_Reflection::invokeRestrictedMethod($controller, '_showOrderCancelPage', []));
701
    }
702
703
    /**
704
     * @return array