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

@@ 339-349 (lines=11) @@
336
     *
337
     * @return UploadSessionCursor
338
     */
339
    public function uploadSessionStart($contents, bool $close = false): UploadSessionCursor
340
    {
341
        $arguments = compact('close');
342
343
        $response = json_decode(
344
            $this->contentEndpointRequest('files/upload_session/start', $arguments, $contents)->getBody(),
345
            true
346
        );
347
348
        return new UploadSessionCursor($response['session_id'], strlen($contents));
349
    }
350
351
    /**
352
     * Append more data to an upload session.
@@ 365-374 (lines=10) @@
362
     *
363
     * @return \Spatie\Dropbox\UploadSessionCursor
364
     */
365
    public function uploadSessionAppend($contents, UploadSessionCursor $cursor, int $chunkSize = null, bool $close = false): UploadSessionCursor
366
    {
367
        $arguments = compact('cursor', 'close');
368
369
        $this->contentEndpointRequest('files/upload_session/append_v2', $arguments, $contents);
370
371
        $cursor->offset += strlen($contents);
372
373
        return $cursor;
374
    }
375
376
    /**
377
     * Finish an upload session and save the uploaded data to the given file path.