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

src/Bindings/Browser/ObjectService.php 2 locations

@@ 276-300 (lines=25) @@
273
     * @return string|null Returns the new object id or <code>null</code> if the repository sent an empty
274
     *      result (which should not happen)
275
     */
276
    public function createFolder(
277
        $repositoryId,
278
        PropertiesInterface $properties,
279
        $folderId,
280
        array $policies = array(),
281
        AclInterface $addAces = null,
282
        AclInterface $removeAces = null,
283
        ExtensionDataInterface $extension = null
284
    ) {
285
        $url = $this->getObjectUrl($repositoryId, $folderId);
286
        $queryArray = $this->createQueryArray(
287
            Constants::CMISACTION_CREATE_FOLDER,
288
            $properties,
289
            $policies,
290
            $addAces,
291
            $removeAces,
292
            $extension
293
        );
294
295
        $responseData = $this->post($url, $queryArray)->json();
296
297
        $newObject = $this->getJsonConverter()->convertObject($responseData);
298
299
        return ($newObject === null) ? null : $newObject->getId();
300
    }
301
302
    /**
303
     * Creates an item object of the specified type (given by the cmis:objectTypeId property).
@@ 393-417 (lines=25) @@
390
     * @return string|null Returns the new item id of the relationship object or <code>null</code> if the repository
391
     *      sent an empty result (which should not happen)
392
     */
393
    public function createRelationship(
394
        $repositoryId,
395
        PropertiesInterface $properties,
396
        array $policies = array(),
397
        AclInterface $addAces = null,
398
        AclInterface $removeAces = null,
399
        ExtensionDataInterface $extension = null
400
    ) {
401
        $url = $this->getRepositoryUrl($repositoryId);
402
403
        $queryArray = $this->createQueryArray(
404
            Constants::CMISACTION_CREATE_RELATIONSHIP,
405
            $properties,
406
            $policies,
407
            $addAces,
408
            $removeAces,
409
            $extension
410
        );
411
412
        $responseData = $this->post($url, $queryArray)->json();
413
414
        $newObject = $this->getJsonConverter()->convertObject($responseData);
415
416
        return ($newObject === null) ? null : $newObject->getId();
417
    }
418
419
    /**
420
     * Deletes the content stream for the specified document object.