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

@@ 294-318 (lines=25) @@
291
     * @return string|null Returns the new object id or <code>null</code> if the repository sent an empty
292
     *      result (which should not happen)
293
     */
294
    public function createFolder(
295
        $repositoryId,
296
        PropertiesInterface $properties,
297
        $folderId,
298
        array $policies = array(),
299
        AclInterface $addAces = null,
300
        AclInterface $removeAces = null,
301
        ExtensionDataInterface $extension = null
302
    ) {
303
        $url = $this->getObjectUrl($repositoryId, $folderId);
304
        $queryArray = $this->createQueryArray(
305
            Constants::CMISACTION_CREATE_FOLDER,
306
            $properties,
307
            $policies,
308
            $addAces,
309
            $removeAces,
310
            $extension
311
        );
312
313
        $responseData = $this->post($url, $queryArray)->json();
314
315
        $newObject = $this->getJsonConverter()->convertObject($responseData);
316
317
        return ($newObject === null) ? null : $newObject->getId();
318
    }
319
320
    /**
321
     * Creates an item object of the specified type (given by the cmis:objectTypeId property).
@@ 411-435 (lines=25) @@
408
     * @return string|null Returns the new item id of the relationship object or <code>null</code> if the repository
409
     *      sent an empty result (which should not happen)
410
     */
411
    public function createRelationship(
412
        $repositoryId,
413
        PropertiesInterface $properties,
414
        array $policies = array(),
415
        AclInterface $addAces = null,
416
        AclInterface $removeAces = null,
417
        ExtensionDataInterface $extension = null
418
    ) {
419
        $url = $this->getRepositoryUrl($repositoryId);
420
421
        $queryArray = $this->createQueryArray(
422
            Constants::CMISACTION_CREATE_RELATIONSHIP,
423
            $properties,
424
            $policies,
425
            $addAces,
426
            $removeAces,
427
            $extension
428
        );
429
430
        $responseData = $this->post($url, $queryArray)->json();
431
432
        $newObject = $this->getJsonConverter()->convertObject($responseData);
433
434
        return ($newObject === null) ? null : $newObject->getId();
435
    }
436
437
    /**
438
     * Deletes the content stream for the specified document object.