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

src/Session.php 2 locations

@@ 486-508 (lines=23) @@
483
     * @throws CmisInvalidArgumentException Throws an <code>CmisInvalidArgumentException</code> if empty
484
     *      property list is given
485
     */
486
    public function createFolder(
487
        array $properties,
488
        ObjectIdInterface $folderId,
489
        array $policies = array(),
490
        array $addAces = array(),
491
        array $removeAces = array()
492
    ) {
493
        if (empty($properties)) {
494
            throw new CmisInvalidArgumentException('Properties must not be empty!');
495
        }
496
497
        $objectId = $this->getBinding()->getObjectService()->createFolder(
498
            $this->getRepositoryId(),
499
            $this->getObjectFactory()->convertProperties($properties),
500
            $folderId->getId(),
501
            $this->getObjectFactory()->convertPolicies($policies),
502
            $this->getObjectFactory()->convertAces($addAces),
503
            $this->getObjectFactory()->convertAces($removeAces),
504
            null
505
        );
506
507
        return $this->createObjectId($objectId);
508
    }
509
510
    /**
511
     * Creates a new item.
@@ 522-544 (lines=23) @@
519
     * @throws CmisInvalidArgumentException Throws an <code>CmisInvalidArgumentException</code> if empty
520
     *      property list is given
521
     */
522
    public function createItem(
523
        array $properties,
524
        ObjectIdInterface $folderId,
525
        array $policies = array(),
526
        array $addAces = array(),
527
        array $removeAces = array()
528
    ) {
529
        if (empty($properties)) {
530
            throw new CmisInvalidArgumentException('Properties must not be empty!');
531
        }
532
533
        $objectId = $this->getBinding()->getObjectService()->createItem(
534
            $this->getRepositoryId(),
535
            $this->getObjectFactory()->convertProperties($properties),
536
            $folderId->getId(),
537
            $this->getObjectFactory()->convertPolicies($policies),
538
            $this->getObjectFactory()->convertAces($addAces),
539
            $this->getObjectFactory()->convertAces($removeAces),
540
            null
541
        );
542
543
        return $this->createObjectId($objectId);
544
    }
545
546
    /**
547
     * Creates an object ID from a String.