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 2 locations

src/Entity/Address.php 1 location

@@ 26-34 (lines=9) @@
23
        mayHaveAsArray  as public getMessages;
24
    }
25
26
    public function getIsResidential()
27
    {
28
        $is_residential = $this->attributes->mayHave('is_residential')->value();
29
        if ($is_residential === null) {
30
            return null;
31
        }
32
33
        return (bool)$is_residential;
34
    }
35
}
36

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

@@ 223-231 (lines=9) @@
220
     *
221
     * @return null|bool
222
     */
223
    public function getIsResidential()
224
    {
225
        $is_residential = $this->attributes->mayHave('is_residential')->value();
226
        if ($is_residential === null) {
227
            return null;
228
        }
229
230
        return (bool)$is_residential;
231
    }
232
233
    public function toArray()
234
    {