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

src/Http/Request/Addresses/CreateObject.php 1 location

@@ 34-41 (lines=8) @@
31
     * @return string
32
     * @throws InvalidAttributeException
33
     */
34
    public function getObjectPurpose()
35
    {
36
        $allowed = [static::OBJECT_PURPOSE_QUOTE, static::OBJECT_PURPOSE_PURCHASE];
37
38
        return $this->attributes->mustHave('object_purpose')->asString(function ($value) use ($allowed) {
39
            return in_array($value, $allowed, true);
40
        });
41
    }
42
43
    /**
44
     * First and Last Name of the addressee

src/Http/Request/Shipments/CreateObject.php 1 location

@@ 35-42 (lines=8) @@
32
     * @return string
33
     * @throws InvalidAttributeException
34
     */
35
    public function getObjectPurpose()
36
    {
37
        $allowed = [static::OBJECT_PURPOSE_QUOTE, static::OBJECT_PURPOSE_PURCHASE];
38
39
        return $this->attributes->mustHave('object_purpose')->asString(function ($value) use ($allowed) {
40
            return in_array($value, $allowed, true);
41
        });
42
    }
43
44
    /**
45
     * ID of the Address object that should be used as sender Address.