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

src/Service/Place/Detail/PlaceDetailService.php 1 location

@@ 204-213 (lines=10) @@
201
     *
202
     * @return Photo
203
     */
204
    private function buildPhoto(array $data)
205
    {
206
        $photo = new Photo();
207
        $photo->setReference($data['photo_reference']);
208
        $photo->setWidth($data['width']);
209
        $photo->setHeight($data['height']);
210
        $photo->setHtmlAttributions($data['html_attributions']);
211
212
        return $photo;
213
    }
214
215
    /**
216
     * @param mixed[] $data

src/Service/Place/Search/PlaceSearchService.php 1 location

@@ 188-197 (lines=10) @@
185
     *
186
     * @return Photo
187
     */
188
    private function buildPhoto(array $data)
189
    {
190
        $photo = new Photo();
191
        $photo->setReference($data['photo_reference']);
192
        $photo->setWidth($data['width']);
193
        $photo->setHeight($data['height']);
194
        $photo->setHtmlAttributions($data['html_attributions']);
195
196
        return $photo;
197
    }
198
199
    /**
200
     * @param mixed[] $data