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

src/Facade/CalDavClient.php 2 locations

@@ 286-306 (lines=21) @@
283
     * @param EventRequestVO $vo
284
     * @return EventCreatedResponse
285
     */
286
    public function createEvent($calendar_url, EventRequestVO $vo)
287
    {
288
        $uid           = $vo->getUID();
289
        $resource_url  = $calendar_url.$uid.self::SchedulingInformationSuffix;
290
        $http_response = $this->makeRequest(
291
            RequestFactory::createPutRequest
292
            (
293
                $resource_url,
294
                CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::EventCreateRequestType, [$vo])->getContent()
295
            )
296
        );
297
        $etag = $http_response->hasHeader(self::ETagHeader) ? $http_response->getHeaderLine(self::ETagHeader) : null;
298
        return new EventCreatedResponse
299
        (
300
            $uid,
301
            $etag,
302
            $resource_url,
303
            (string)$http_response->getBody(),
304
            $http_response->getStatusCode()
305
        );
306
    }
307
308
    /**
309
     * @param string $calendar_url
@@ 314-335 (lines=22) @@
311
     * @param string $etag
312
     * @return EventUpdatedResponse
313
     */
314
    public function updateEvent($calendar_url, EventRequestVO $vo, $etag)
315
    {
316
        $uid           = $vo->getUID();
317
        $resource_url  = $calendar_url.$uid.self::SchedulingInformationSuffix;
318
        $http_response = $this->makeRequest(
319
            RequestFactory::createPutRequest
320
            (
321
                $resource_url,
322
                CalDAVRequestFactory::getInstance()->build(CalDAVRequestFactory::EventUpdateRequestType, [$vo])->getContent(),
323
                $etag
324
            )
325
        );
326
        $etag = $http_response->hasHeader(self::ETagHeader) ? $http_response->getHeaderLine(self::ETagHeader) : null;
327
        return new EventUpdatedResponse
328
        (
329
            $uid,
330
            $etag,
331
            $resource_url,
332
            (string)$http_response->getBody(),
333
            $http_response->getStatusCode()
334
        );
335
    }
336
337
    /**
338
     * @param string $calendar_url