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

tests/GetNearestPostOfficeTest.php 2 locations

@@ 71-92 (lines=22) @@
68
        $this->assertTrue($doc->loadXML($response->getBody()), "Response not valid XML");
69
    }
70
71
    public function testSetMaximumOffices()
72
    {
73
        $factory = new \LinusShops\CanadaPost\ServiceFactory(
74
            CP_SANDBOX_ENDPOINT,
75
            CP_USER,
76
            CP_PASSWORD
77
        );
78
79
        /** @var \LinusShops\CanadaPost\Services\GetNearestPostOffice $service */
80
        $service = $factory->getService('GetNearestPostOffice');
81
        $response = $service
82
            ->setParameter('d2po', 'true')
83
            ->setParameter('longitude', LOOKUP_LONG)
84
            ->setParameter('latitude', LOOKUP_LAT)
85
            ->setParameter('maximum', 5)
86
            ->send();
87
88
        $doc = new DOMDocument();
89
        $this->assertTrue($doc->loadXML($response->getBody()), "Response not valid XML");
90
        $children = $doc->firstChild->childNodes;
91
        $this->assertEquals(5, $children->length);
92
    }
93
94
    public function testSetLanguage()
95
    {
@@ 94-115 (lines=22) @@
91
        $this->assertEquals(5, $children->length);
92
    }
93
94
    public function testSetLanguage()
95
    {
96
        $factory = new \LinusShops\CanadaPost\ServiceFactory(
97
            CP_SANDBOX_ENDPOINT,
98
            CP_USER,
99
            CP_PASSWORD
100
        );
101
102
        /** @var \LinusShops\CanadaPost\Services\GetNearestPostOffice $service */
103
        $service = $factory->getService('GetNearestPostOffice');
104
        $response = $service
105
            ->setLanguage('fr-CA')
106
            ->setParameter('d2po', 'true')
107
            ->setParameter('longitude', LOOKUP_LONG)
108
            ->setParameter('latitude', LOOKUP_LAT)
109
            ->send();
110
111
        $doc = new DOMDocument();
112
        $this->assertTrue($doc->loadXML($response->getBody()), "Response not valid XML");
113
        $children = $doc->firstChild->childNodes;
114
        $this->assertEquals(10, $children->length);
115
    }
116
117
    public function testDoubleLookup()
118
    {