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

@@ 242-270 (lines=29) @@
239
     * @return string|null Returns the new object id or <code>null</code> if the repository sent an empty
240
     *      result (which should not happen)
241
     */
242
    public function createFolder(
243
        $repositoryId,
244
        PropertiesInterface $properties,
245
        $folderId,
246
        array $policies = array(),
247
        AclInterface $addAces = null,
248
        AclInterface $removeAces = null,
249
        ExtensionDataInterface $extension = null
250
    ) {
251
        $url = $this->getObjectUrl($repositoryId, $folderId);
252
        $url->getQuery()->modify(
253
            array(
254
                Constants::CONTROL_CMISACTION => Constants::CMISACTION_CREATE_FOLDER,
255
                Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false'
256
            )
257
        );
258
259
        $url->getQuery()->modify($this->convertPropertiesToQueryArray($properties));
260
261
        $this->appendPoliciesToUrl($url, $policies);
262
        $this->appendAddAcesToUrl($url, $addAces);
263
        $this->appendRemoveAcesToUrl($url, $removeAces);
264
265
        $responseData = $this->post($url)->json();
266
267
        $newObject = $this->getJsonConverter()->convertObject($responseData);
268
269
        return ($newObject === null) ? null : $newObject->getId();
270
    }
271
272
    /**
273
     * Creates an item object of the specified type (given by the cmis:objectTypeId property).
@@ 367-394 (lines=28) @@
364
     * @return string|null Returns the new item id of the relationship object or <code>null</code> if the repository
365
     *      sent an empty result (which should not happen)
366
     */
367
    public function createRelationship(
368
        $repositoryId,
369
        PropertiesInterface $properties,
370
        array $policies = array(),
371
        AclInterface $addAces = null,
372
        AclInterface $removeAces = null,
373
        ExtensionDataInterface $extension = null
374
    ) {
375
        $url = $this->getRepositoryUrl($repositoryId);
376
377
        $url->getQuery()->modify(
378
            array(
379
                Constants::CONTROL_CMISACTION => Constants::CMISACTION_CREATE_RELATIONSHIP,
380
                Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false'
381
            )
382
        );
383
384
        $url->getQuery()->modify($this->convertPropertiesToQueryArray($properties));
385
        $this->appendPoliciesToUrl($url, $policies);
386
        $this->appendAddAcesToUrl($url, $addAces);
387
        $this->appendRemoveAcesToUrl($url, $removeAces);
388
389
        $responseData = $this->post($url)->json();
390
391
        $newObject = $this->getJsonConverter()->convertObject($responseData);
392
393
        return ($newObject === null) ? null : $newObject->getId();
394
    }
395
396
    /**
397
     * Deletes the content stream for the specified document object.