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

src/Session.php 2 locations

@@ 700-709 (lines=10) @@
697
     * @return ObjectTypeInterface the new type definition
698
     * @throws CmisNotSupportedException If repository version 1.0
699
     */
700
    public function createType(TypeDefinitionInterface $type)
701
    {
702
        if ($this->getRepositoryInfo()->getCmisVersion() == CmisVersion::cast(CmisVersion::CMIS_1_0)) {
703
            throw new CmisNotSupportedException('This method is not supported for CMIS 1.0 repositories.');
704
        }
705
706
        return $this->convertTypeDefinition(
707
            $this->getBinding()->getRepositoryService()->createType($this->getRepositoryInfo()->getId(), $type)
708
        );
709
    }
710
711
    /**
712
     * Deletes an object and, if it is a document, all versions in the version series.
@@ 734-742 (lines=9) @@
731
     * @param string $typeId the ID of the type to delete
732
     * @throws CmisNotSupportedException If repository version 1.0
733
     */
734
    public function deleteType($typeId)
735
    {
736
        if ($this->getRepositoryInfo()->getCmisVersion() == CmisVersion::cast(CmisVersion::CMIS_1_0)) {
737
            throw new CmisNotSupportedException('This method is not supported for CMIS 1.0 repositories.');
738
        }
739
740
        $this->getBinding()->getRepositoryService()->deleteType($this->getRepositoryId(), $typeId);
741
        $this->removeObjectFromCache($this->createObjectId($typeId));
742
    }
743
744
    /**
745
     * Fetches the ACL of an object from the repository.