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

src/Client.php 2 locations

@@ 348-358 (lines=11) @@
345
     *
346
     * @return UploadSessionCursor
347
     */
348
    public function uploadSessionStart($contents, bool $close = false): UploadSessionCursor
349
    {
350
        $arguments = compact('close');
351
352
        $response = json_decode(
353
            $this->contentEndpointRequest('files/upload_session/start', $arguments, $contents)->getBody(),
354
            true
355
        );
356
357
        return new UploadSessionCursor($response['session_id'], strlen($contents));
358
    }
359
360
    /**
361
     * Append more data to an upload session.
@@ 374-383 (lines=10) @@
371
     *
372
     * @return \Spatie\Dropbox\UploadSessionCursor
373
     */
374
    public function uploadSessionAppend($contents, UploadSessionCursor $cursor, int $chunkSize = null, bool $close = false): UploadSessionCursor
375
    {
376
        $arguments = compact('cursor', 'close');
377
378
        $this->contentEndpointRequest('files/upload_session/append_v2', $arguments, $contents);
379
380
        $cursor->offset += strlen($contents);
381
382
        return $cursor;
383
    }
384
385
    /**
386
     * Finish an upload session and save the uploaded data to the given file path.