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

src/Provider/Http/NeutrinoApiCom.php 1 location

@@ 129-131 (lines=3) @@
126
         * no json returned?
127
         */
128
        $contentType = $response->getHeader('Content-Type');
129
        if (! isset($contentType[0]) || $contentType[0] != 'application/json;charset=UTF-8') {
130
            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
131
        }
132
133
        $content = json_decode($response->getBody()->getContents());
134

src/Provider/Http/UdgerCom.php 1 location

@@ 138-140 (lines=3) @@
135
         * no json returned?
136
         */
137
        $contentType = $response->getHeader('Content-Type');
138
        if (! isset($contentType[0]) || $contentType[0] != 'application/json') {
139
            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
140
        }
141
142
        $content = json_decode($response->getBody()->getContents());
143

src/Provider/Http/UserAgentApiCom.php 1 location

@@ 133-135 (lines=3) @@
130
         * no json returned?
131
         */
132
        $contentType = $response->getHeader('Content-Type');
133
        if (! isset($contentType[0]) || $contentType[0] != 'application/json') {
134
            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
135
        }
136
137
        $content = json_decode($response->getBody()->getContents());
138

src/Provider/Http/UserAgentStringCom.php 1 location

@@ 110-112 (lines=3) @@
107
         * no json returned?
108
         */
109
        $contentType = $response->getHeader('Content-Type');
110
        if (! isset($contentType[0]) || $contentType[0] != 'application/json') {
111
            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
112
        }
113
114
        $content = json_decode($response->getBody()->getContents());
115

src/Provider/Http/DeviceAtlasCom.php 1 location

@@ 112-114 (lines=3) @@
109
         * no json returned?
110
         */
111
        $contentType = $response->getHeader('Content-Type');
112
        if (! isset($contentType[0]) || $contentType[0] != 'application/json; charset=UTF-8') {
113
            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
114
        }
115
116
        $content = json_decode($response->getBody()->getContents());
117

src/Provider/Http/WhatIsMyBrowserCom.php 1 location

@@ 115-117 (lines=3) @@
112
         * no json returned?
113
         */
114
        $contentType = $response->getHeader('Content-Type');
115
        if (! isset($contentType[0]) || $contentType[0] != 'application/json') {
116
            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
117
        }
118
119
        $content = json_decode($response->getBody()->getContents());
120