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

src/Component/RemoteClients/ChronosApiClient.php 1 location

@@ 105-113 (lines=9) @@
102
     * @param string $url
103
     * @return array
104
     */
105
    private function sendGetJsonRequest($url)
106
    {
107
        $response = $this->httpClient->get($url);
108
        if (200 == $response->getStatusCode()) {
109
            return $response->json();
110
        }
111
112
        return [];
113
    }
114
115
    /**
116
     * Returns true if the client can be connected to.

src/Component/RemoteClients/MarathonApiClient.php 1 location

@@ 27-35 (lines=9) @@
24
     * @link: https://mesos.github.io/chronos/docs/api.html#listing-jobs
25
     * @return array
26
     */
27
    public function listingJobs()
28
    {
29
        $response = $this->httpClient->get('/v2/apps');
30
        if (200 == $response->getStatusCode()) {
31
            return $response->json();
32
        }
33
34
        return [];
35
    }
36
37
    /**
38
     * @param JobEntityInterface $jobEntity