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

app/core/View.php 2 locations

@@ 104-114 (lines=11) @@
101
     * @param  array  $errors
102
     * @return mixed  Rendered output
103
     */
104
    public function renderErrors($errors){
105
106
         $html = $this->render(Config::get('VIEWS_PATH') . 'alerts/errors.php', ["errors" => $errors]);
107
108
         if($this->controller->request->isAjax()){
109
             return $this->renderJson(array("error" => $html));
110
         }else{
111
             $this->controller->response->setContent($html);
112
             return $html;
113
         }
114
     }
115
116
    /**
117
     * Renders success message
@@ 123-133 (lines=11) @@
120
     * @param  string  $message
121
     * @return mixed  Rendered output
122
     */
123
    public function renderSuccess($message){
124
125
         $html = $this->render(Config::get('VIEWS_PATH') . 'alerts/success.php', array("success" => $message));
126
127
         if($this->controller->request->isAjax()){
128
             return $this->renderJson(array("success" => $html));
129
         }else{
130
             $this->controller->response->setContent($html);
131
             return $html;
132
         }
133
     }
134
135
    /** *********************************************** **/
136
    /** **************     JSON View     ************** **/