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

src/Service/Geocoder/Response/GeocoderResult.php 1 location

@@ 100-115 (lines=16) @@
97
     *
98
     * @return AddressComponent[]
99
     */
100
    public function getAddressComponents($type = null)
101
    {
102
        if ($type === null) {
103
            return $this->addressComponents;
104
        }
105
106
        $addressComponents = [];
107
108
        foreach ($this->addressComponents as $addressComponent) {
109
            if (in_array($type, $addressComponent->getTypes(), true)) {
110
                $addressComponents[] = $addressComponent;
111
            }
112
        }
113
114
        return $addressComponents;
115
    }
116
117
    /**
118
     * @param AddressComponent[] $addressComponents

src/Service/Place/Base/Place.php 1 location

@@ 533-548 (lines=16) @@
530
     *
531
     * @return AddressComponent[]
532
     */
533
    public function getAddressComponents($type = null)
534
    {
535
        if ($type === null) {
536
            return $this->addressComponents;
537
        }
538
539
        $addressComponents = [];
540
541
        foreach ($this->addressComponents as $addressComponent) {
542
            if (in_array($type, $addressComponent->getTypes(), true)) {
543
                $addressComponents[] = $addressComponent;
544
            }
545
        }
546
547
        return $addressComponents;
548
    }
549
550
    /**
551
     * @param AddressComponent[] $addressComponents