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

src/Bindings/Browser/ObjectService.php 2 locations

@@ 262-290 (lines=29) @@
259
     * @return string|null Returns the new object id or <code>null</code> if the repository sent an empty
260
     *      result (which should not happen)
261
     */
262
    public function createFolder(
263
        $repositoryId,
264
        PropertiesInterface $properties,
265
        $folderId,
266
        array $policies = array(),
267
        AclInterface $addAces = null,
268
        AclInterface $removeAces = null,
269
        ExtensionDataInterface $extension = null
270
    ) {
271
        $url = $this->getObjectUrl($repositoryId, $folderId);
272
        $url->getQuery()->modify(
273
            array(
274
                Constants::CONTROL_CMISACTION => Constants::CMISACTION_CREATE_FOLDER,
275
                Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false'
276
            )
277
        );
278
279
        $url->getQuery()->modify($this->convertPropertiesToQueryArray($properties));
280
281
        $this->appendPoliciesToUrl($url, $policies);
282
        $this->appendAddAcesToUrl($url, $addAces);
283
        $this->appendRemoveAcesToUrl($url, $removeAces);
284
285
        $responseData = $this->post($url)->json();
286
287
        $newObject = $this->getJsonConverter()->convertObject($responseData);
288
289
        return ($newObject === null) ? null : $newObject->getId();
290
    }
291
292
    /**
293
     * Creates an item object of the specified type (given by the cmis:objectTypeId property).
@@ 387-414 (lines=28) @@
384
     * @return string|null Returns the new item id of the relationship object or <code>null</code> if the repository
385
     *      sent an empty result (which should not happen)
386
     */
387
    public function createRelationship(
388
        $repositoryId,
389
        PropertiesInterface $properties,
390
        array $policies = array(),
391
        AclInterface $addAces = null,
392
        AclInterface $removeAces = null,
393
        ExtensionDataInterface $extension = null
394
    ) {
395
        $url = $this->getRepositoryUrl($repositoryId);
396
397
        $url->getQuery()->modify(
398
            array(
399
                Constants::CONTROL_CMISACTION => Constants::CMISACTION_CREATE_RELATIONSHIP,
400
                Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false'
401
            )
402
        );
403
404
        $url->getQuery()->modify($this->convertPropertiesToQueryArray($properties));
405
        $this->appendPoliciesToUrl($url, $policies);
406
        $this->appendAddAcesToUrl($url, $addAces);
407
        $this->appendRemoveAcesToUrl($url, $removeAces);
408
409
        $responseData = $this->post($url)->json();
410
411
        $newObject = $this->getJsonConverter()->convertObject($responseData);
412
413
        return ($newObject === null) ? null : $newObject->getId();
414
    }
415
416
    /**
417
     * Deletes the content stream for the specified document object.