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

src/DataObjects/Document.php 2 locations

@@ 333-356 (lines=24) @@
330
     * @return DocumentInterface|null the updated document, or <code>null</code> if the repository did not return
331
     *      an object ID
332
     */
333
    public function deleteContentStream($refresh = true)
334
    {
335
        $newObjectId = $this->getId();
336
        $changeToken = $this->getPropertyValue(PropertyIds::CHANGE_TOKEN);
337
338
        $this->getBinding()->getObjectService()->deleteContentStream(
339
            $this->getRepositoryId(),
340
            $newObjectId,
341
            $changeToken
342
        );
343
344
        if ($refresh === true) {
345
            $this->refresh();
346
        }
347
348
        if ($newObjectId === null) {
349
            return null;
350
        }
351
352
        return $this->getSession()->getObject(
353
            $this->getSession()->createObjectId($newObjectId),
354
            $this->getCreationContext()
355
        );
356
    }
357
358
    /**
359
     * Fetches all versions of this document using the given OperationContext.
@@ 469-491 (lines=23) @@
466
     * @return ObjectIdInterface|null the updated object ID, or <code>null</code> if the repository did not return
467
     *      an object ID
468
     */
469
    public function setContentStream(StreamInterface $contentStream, $overwrite, $refresh = true)
470
    {
471
        $newObjectId = $this->getId();
472
        $changeToken = $this->getPropertyValue(PropertyIds::CHANGE_TOKEN);
473
474
        $this->getBinding()->getObjectService()->setContentStream(
475
            $this->getRepositoryId(),
476
            $newObjectId,
477
            $this->getObjectFactory()->convertContentStream($contentStream),
478
            $overwrite,
479
            $changeToken
480
        );
481
482
        if ($refresh === true) {
483
            $this->refresh();
484
        }
485
486
        if ($newObjectId === null) {
487
            return null;
488
        }
489
490
        return $this->getSession()->createObjectId($newObjectId);
491
    }
492
493
    /**
494
     * Returns the checkin comment (CMIS property cmis:checkinComment).