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

libs/idna_convert/idna_convert.class.php 2 locations

@@ 237-242 (lines=6) @@
234
            $parsed = parse_url($input);
235
            if (isset($parsed['host'])) {
236
                $arr = explode('.', $parsed['host']);
237
                foreach ($arr as $k => $v) {
238
                    $conv = $this->_decode($v);
239
                    if ($conv) {
240
                        $arr[$k] = $conv;
241
                    }
242
                }
243
                $parsed['host'] = join('.', $arr);
244
                $return = (empty($parsed['scheme']) ? '' : $parsed['scheme'] . (strtolower($parsed['scheme']) == 'mailto' ? ':' : '://')).
245
                        (empty($parsed['user']) ? '' : $parsed['user'] . (empty($parsed['pass']) ? '' : ':' . $parsed['pass']) . '@').
@@ 253-256 (lines=4) @@
250
                        (empty($parsed['fragment']) ? '' : '#' . $parsed['fragment']);
251
            } else { // parse_url seems to have failed, try without it
252
                $arr = explode('.', $input);
253
                foreach ($arr as $k => $v) {
254
                    $conv = $this->_decode($v);
255
                    $arr[$k] = ($conv) ? $conv : $v;
256
                }
257
                $return = join('.', $arr);
258
            }
259
        } else { // Otherwise we consider it being a pure domain name string