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

phpmyfaq/src/phpMyFAQ/User.php 2 locations

@@ 431-442 (lines=12) @@
428
     *
429
     * @return bool
430
     */
431
    public function checkDisplayName($name)
432
    {
433
        if (!$this->userdata instanceof UserData) {
434
            $this->userdata = new UserData($this->config);
435
        }
436
437
        if ($name === $this->userdata->fetch('display_name', $name)) {
438
            return true;
439
        } else {
440
            return false;
441
        }
442
    }
443
444
    /**
445
     * Checks if email address is already used. Returns true, if already in use.
@@ 451-462 (lines=12) @@
448
     *
449
     * @return bool
450
     */
451
    public function checkMailAddress($name)
452
    {
453
        if (!$this->userdata instanceof UserData) {
454
            $this->userdata = new UserData($this->config);
455
        }
456
457
        if ($name === $this->userdata->fetch('email', $name)) {
458
            return true;
459
        } else {
460
            return false;
461
        }
462
    }
463
464
    /**
465
     * search users by login.