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

src/GlLinkChecker.php 2 locations

@@ 177-186 (lines=10) @@
174
        $robotstxt = explode("\n", $robotstxt);
175
        $result    = [];
176
        foreach ($robotstxt as $line) {
177
            if (preg_match('/^\s*Sitemap:(.*)/i', $line, $match)) {
178
                $urlsitemap = trim($match[1]);
179
                $response   = $this->client->get($urlsitemap, ['exceptions' => false]);
180
                if ($response->getStatusCode() != 200) {
181
                    $result['sitemap']['error'][] = $urlsitemap;
182
                } else {
183
                    $result['sitemap']['ok'][$urlsitemap] = $this->checkSitemap($response->getBody()->getContents());
184
                }
185
            }
186
187
            if (preg_match('/^\s*Disallow:(.*)/i', $line, $match)) {
188
                $urldisallow = trim($match[1]);
189
                $response    = $this->client->get($urldisallow, ['exceptions' => false]);
@@ 187-195 (lines=9) @@
184
                }
185
            }
186
187
            if (preg_match('/^\s*Disallow:(.*)/i', $line, $match)) {
188
                $urldisallow = trim($match[1]);
189
                $response    = $this->client->get($urldisallow, ['exceptions' => false]);
190
                if (($response->getStatusCode() != 200) && ($response->getStatusCode() != 403)) {
191
                    $result['disallow']['error'][] = $urldisallow;
192
                } else {
193
                    $result['disallow']['ok'][] = $urldisallow;
194
                }
195
            }
196
        }
197
198
        return $result;