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-11 lines in 5 locations

src/Issue/IssueService.php 2 locations

@@ 22-31 (lines=10) @@
19
     *
20
     * @return mixed
21
     */
22
    public function get($issueIdOrKey)
23
    {
24
        $result = $this->exec($this->uri . '/' . $issueIdOrKey);
25
26
        return $this->extractErrors($result, [200], function () use ($result) {
27
            return $this->json_mapper->map(
28
                $result->getRawData(), new Issue()
29
            );
30
        });
31
    }
32
33
    /**
34
     * Search issues.
@@ 308-317 (lines=10) @@
305
     *
306
     * @return Worklog Return Worklog object
307
     */
308
    public function getWorklog($issueIdOrKey)
309
    {
310
        $result = $this->exec($this->uri . '/' . $issueIdOrKey . '/worklog');
311
312
        return $this->extractErrors($result, [200], function () use ($result) {
313
            return $this->json_mapper->map(
314
                $result->getRawData(), new Worklog()
315
            );
316
        });
317
    }
318
319
    /**
320
     * @param $issueIdOrKey

src/Issue/IssueTypeService.php 1 location

@@ 30-40 (lines=11) @@
27
     *
28
     * @return mixed
29
     */
30
    public function get($issuetypeId)
31
    {
32
        $result = $this->exec($this->uri . '/' . $issuetypeId);
33
34
        return $this->extractErrors($result, [200], function () use ($result) {
35
            return $this->json_mapper->map(
36
                $result->getRawData(), new \JiraRestApi\Issue\IssueType
37
            );
38
39
        });
40
    }
41
42
    // ToDO: Create update delete
43

src/Project/ProjectService.php 1 location

@@ 33-42 (lines=10) @@
30
     * @return bool|object
31
     * @throws \JsonMapper_Exception
32
     */
33
    public function get($projectIdOrKey)
34
    {
35
        $result = $this->exec($this->uri . '/' . $projectIdOrKey);
36
37
        return $this->extractErrors($result, [200], function () use ($result) {
38
            return $this->json_mapper->map(
39
                $result->getRawData(), new Project()
40
            );
41
        });
42
    }
43
44
    /**
45
     * @param null $expand

src/Webhook/WebhookService.php 1 location

@@ 38-47 (lines=10) @@
35
     * @return bool|object
36
     * @throws \JsonMapper_Exception
37
     */
38
    public function get($webhookId)
39
    {
40
        $result = $this->exec($this->uri . '/' . $webhookId);
41
42
        return $this->extractErrors($result, [200], function () use ($result) {
43
            return $this->json_mapper->map(
44
                $result->getRawData(), new Webhook()
45
            );
46
        });
47
    }
48
49
    /**
50
     * @param Webhook $webhook