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

src/LPTracker/LPTracker.php 2 locations

@@ 181-190 (lines=10) @@
178
     * @throws exceptions\LPTrackerResponseException
179
     * @throws exceptions\LPTrackerServerException
180
     */
181
    public function setProjectCallbackUrl($project, $callbackUrl)
182
    {
183
        if ($project instanceof Project) {
184
            $project = $project->getId();
185
        } else {
186
            $project = (int) $project;
187
        }
188
        $url = '/project/' . $project . '/callback-url';
189
        LPTrackerRequest::sendRequest($url, ['url' => $callbackUrl], 'PUT', $this->token, $this->address);
190
    }
191
192
    /**
193
     * @return Employee[]
@@ 752-761 (lines=10) @@
749
    /**
750
     * @param Lead|int $lead
751
     */
752
    public function callLead($lead)
753
    {
754
        if ($lead instanceof Lead) {
755
            $lead = $lead->getId();
756
        } else {
757
            $lead = (int) $lead;
758
        }
759
        $url = '/lead/' . $lead . '/call';
760
        LPTrackerRequest::sendRequest($url, [], 'POST', $this->token, $this->address);
761
    }
762
763
    /**
764
     * @param Lead|int $lead