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

app/controllers/AdminController.php 1 location

@@ 128-138 (lines=11) @@
125
     * delete a user
126
     *
127
     */
128
    public function deleteUser(){
129
130
        $userId = Encryption::decryptIdWithDash($this->request->data("user_id"));
131
132
        if(!$this->user->exists($userId)){
133
            return $this->error(404);
134
        }
135
136
        $this->admin->deleteUser(Session::getUserId(), $userId);
137
        $this->view->renderJson(array("success" => true));
138
    }
139
140
    /**
141
     * view backups if exist

app/controllers/CommentsController.php 1 location

@@ 139-150 (lines=12) @@
136
        $this->view->renderJson(array("data" => $commentsHTML));
137
    }
138
139
    public function delete(){
140
141
        $commentId = Encryption::decryptIdWithDash($this->request->data("comment_id"));
142
143
        if(!$this->comment->exists($commentId)){
144
            return $this->error(404);
145
        }
146
147
        $this->comment->deleteById($commentId);
148
149
        $this->view->renderJson(array("success" => true));
150
    }
151
152
    public function isAuthorized(){
153

app/controllers/FilesController.php 1 location

@@ 58-69 (lines=12) @@
55
        }
56
    }
57
58
    public function delete(){
59
60
        $fileId = Encryption::decryptIdWithDash($this->request->data("file_id"));
61
62
        if(!$this->file->exists($fileId)){
63
            return $this->error(404);
64
        }
65
66
        $this->file->deleteById($fileId);
67
68
        $this->view->renderJson(array("success" => true));
69
    }
70
71
    public function isAuthorized(){
72