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

app/controllers/UserController.php 2 locations

@@ 98-102 (lines=5) @@
95
96
        $result = $this->user->revokeEmail($userId, $token);
97
98
        if(!$result){
99
            return $this->error(404);
100
        }else{
101
            $this->view->renderWithLayouts(Config::get('VIEWS_PATH') . "layout/default/", Config::get('VIEWS_PATH') . 'user/profile.php', ["emailUpdates" => ["success" => "Your email updates has been revoked successfully."]]);
102
        }
103
    }
104
105
    /**
@@ 123-126 (lines=4) @@
120
            return $this->error(404);
121
        }else if(!$result && !empty($errors)){
122
            $this->view->renderWithLayouts(Config::get('VIEWS_PATH') . "layout/default/", Config::get('VIEWS_PATH') . 'user/profile.php', ["emailUpdates" => ["errors" => $this->user->errors()]]);
123
        }else{
124
            $this->view->renderWithLayouts(Config::get('VIEWS_PATH') . "layout/default/", Config::get('VIEWS_PATH') . 'user/profile.php',
125
                ["emailUpdates" => ["success" => "Your email updates has been updated successfully."]]);
126
        }
127
    }
128
129
    /**