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

tests/GetNearestPostOfficeTest.php 2 locations

@@ 29-49 (lines=21) @@
26
        $this->assertInstanceOf('\\LinusShops\\CanadaPost\\Service', $service);
27
    }
28
29
    public function testGetNearestPostOfficeLookupByPostalCode()
30
    {
31
        $factory = new \LinusShops\CanadaPost\ServiceFactory(
32
            CP_SANDBOX_ENDPOINT,
33
            CP_USER,
34
            CP_PASSWORD
35
        );
36
37
        /** @var \LinusShops\CanadaPost\Services\GetNearestPostOffice $service */
38
        $service = $factory->getService('GetNearestPostOffice');
39
40
        $response = $service
41
            ->setParameter('d2po', 'true')
42
            ->setParameter('postalCode', LOOKUP_CODE)
43
            ->setParameter('city', LOOKUP_CITY)
44
            ->setParameter('province', LOOKUP_PROVINCE)
45
            ->send();
46
47
        $doc = new DOMDocument();
48
        $this->assertTrue($doc->loadXML($response->getBody()), "Response not valid XML");
49
    }
50
51
    public function testGetNearestPostOfficeLookupByLongLat()
52
    {
@@ 51-69 (lines=19) @@
48
        $this->assertTrue($doc->loadXML($response->getBody()), "Response not valid XML");
49
    }
50
51
    public function testGetNearestPostOfficeLookupByLongLat()
52
    {
53
        $factory = new \LinusShops\CanadaPost\ServiceFactory(
54
            CP_SANDBOX_ENDPOINT,
55
            CP_USER,
56
            CP_PASSWORD
57
        );
58
59
        /** @var \LinusShops\CanadaPost\Services\GetNearestPostOffice $service */
60
        $service = $factory->getService('GetNearestPostOffice');
61
        $response = $service
62
            ->setParameter('d2po', 'true')
63
            ->setParameter('longitude', LOOKUP_LONG)
64
            ->setParameter('latitude', LOOKUP_LAT)
65
            ->send();
66
67
        $doc = new DOMDocument();
68
        $this->assertTrue($doc->loadXML($response->getBody()), "Response not valid XML");
69
    }
70
71
    public function testSetMaximumOffices()
72
    {