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 = 11-14 lines in 3 locations

src/LPTracker/LPTracker.php 3 locations

@@ 612-625 (lines=14) @@
609
     * @return Lead
610
     * @throws LPTrackerSDKException
611
     */
612
    public function changeLeadFunnel($lead, $newFunnelId)
613
    {
614
        if ($lead instanceof Lead) {
615
            $lead = $lead->getId();
616
        } else {
617
            $lead = (int) $lead;
618
        }
619
        $url = '/lead/' . $lead . '/funnel';
620
        $data = [
621
            'funnel' => $newFunnelId,
622
        ];
623
        $response = LPTrackerRequest::sendRequest($url, $data, 'PUT', $this->token, $this->address);
624
        return new Lead($response);
625
    }
626
627
    /**
628
     * @param Lead|int $lead
@@ 656-669 (lines=14) @@
653
     * @throws exceptions\LPTrackerResponseException
654
     * @throws exceptions\LPTrackerServerException
655
     */
656
    public function addCommentToLead($lead, $text)
657
    {
658
        if ($lead instanceof Lead) {
659
            $lead = $lead->getId();
660
        } else {
661
            $lead = (int) $lead;
662
        }
663
        $url = '/lead/' . $lead . '/comment';
664
        $data = [
665
            'text' => $text,
666
        ];
667
        $response = LPTrackerRequest::sendRequest($url, $data, 'POST', $this->token, $this->address);
668
        return new Comment($response);
669
    }
670
671
    /**
672
     * @param Lead|int $lead
@@ 756-766 (lines=11) @@
753
     * @throws exceptions\LPTrackerResponseException
754
     * @throws exceptions\LPTrackerServerException
755
     */
756
    public function createCustom($project, $options)
757
    {
758
        if ($project instanceof Project) {
759
            $project = $project->getId();
760
        } else {
761
            $project = (int) $project;
762
        }
763
        $actionUrl = '/custom/' . $project . '/create';
764
        $response = LPTrackerRequest::sendRequest($actionUrl, $options, 'POST', $this->token, $this->address);
765
        return new CustomField($response);
766
    }
767
768
    /**
769
     * @param Project|int $project