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/DeviceAtlasCom.php 1 location

@@ 118-120 (lines=3) @@
115
116
        $content = json_decode($response->getBody()->getContents());
117
118
        if (! $content instanceof stdClass || ! isset($content->properties)) {
119
            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
120
        }
121
122
        /*
123
         * No result found?

src/Provider/Http/NeutrinoApiCom.php 1 location

@@ 158-160 (lines=3) @@
155
        /*
156
         * Missing data?
157
         */
158
        if (! $content instanceof stdClass) {
159
            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
160
        }
161
162
        return $content;
163
    }

src/Provider/Http/UdgerCom.php 1 location

@@ 154-156 (lines=3) @@
151
        /*
152
         * Missing data?
153
         */
154
        if (! $content instanceof stdClass || ! isset($content->info)) {
155
            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
156
        }
157
158
        return $content;
159
    }

src/Provider/Http/UserAgentApiCom.php 1 location

@@ 149-151 (lines=3) @@
146
        /*
147
         * Missing data?
148
         */
149
        if (! $content instanceof stdClass || ! isset($content->data)) {
150
            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Data is missing "' . $response->getBody()->getContents() . '"');
151
        }
152
153
        return $content->data;
154
    }

src/Provider/Http/UserAgentStringCom.php 1 location

@@ 116-118 (lines=3) @@
113
114
        $content = json_decode($response->getBody()->getContents());
115
116
        if (! $content instanceof stdClass) {
117
            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
118
        }
119
120
        return $content;
121
    }

src/Provider/Http/WhatIsMyBrowserCom.php 1 location

@@ 146-148 (lines=3) @@
143
            throw new Exception\InvalidCredentialsException('Your API key "' . $this->apiKey . '" is not valid for ' . $this->getName());
144
        }
145
146
        if (!isset($content->result) || $content->result !== 'success') {
147
            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
148
        }
149
150
        /*
151
         * Missing data?