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

phpmyfaq/inc/PMF/User/CurrentUser.php 2 locations

@@ 583-598 (lines=16) @@
580
     *
581
     * @return bool
582
     */
583
    protected function setRememberMe($rememberMe)
584
    {
585
        $update = sprintf("
586
            UPDATE
587
                %sfaquser
588
            SET
589
                remember_me = '%s'
590
            WHERE
591
                user_id = %d",
592
            PMF_Db::getTablePrefix(),
593
            $this->config->getDb()->escape($rememberMe),
594
            $this->getUserId()
595
        );
596
597
        return $this->config->getDb()->query($update);
598
    }
599
600
    /**
601
     * Sets login success/failure.
@@ 607-624 (lines=18) @@
604
     *
605
     * @return bool
606
     */
607
    protected function setSuccess($success)
608
    {
609
        $this->loginState = (int) $success;
610
611
        $update = sprintf('
612
            UPDATE
613
                %sfaquser
614
            SET
615
                success = %d
616
            WHERE
617
                user_id = %d',
618
            PMF_Db::getTablePrefix(),
619
            $this->loginState,
620
            $this->getUserId()
621
        );
622
623
        return $this->config->getDb()->query($update);
624
    }
625
626
    /**
627
     * Sets IP and session timestamp, success flag to false.