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

app/core/components/SecurityComponent.php 2 locations

@@ 202-205 (lines=4) @@
199
            $exclude[] = 'submit';
200
        }
201
202
        if($this->request->countData($exclude) !== count($config['fields'])){
203
            Logger::log("Form Tampering", "User: ". Session::getUserId() ." is tampering the form with invalid number of fields", __FILE__, __LINE__);
204
            return false;
205
        }
206
207
        foreach($config['fields'] as $field){
208
@@ 209-212 (lines=4) @@
206
207
        foreach($config['fields'] as $field){
208
209
            if(!array_key_exists($field, $this->request->data)){
210
                Logger::log("Form Tampering", "User: ". Session::getUserId() ." is tampering the form with invalid fields", __FILE__, __LINE__);
211
                return false;
212
            }
213
        }
214
215
        // by default, validate csrf token as well.