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

symphony/lib/toolkit/fields/field.taglist.php 1 location

@@ 420-423 (lines=4) @@
417
                    return self::__OK__;
418
                }
419
420
                if (!General::validateString($data, $this->get('validator'))) {
421
                    $message = __("'%s' contains invalid data. Please check the contents.", array($this->get('label')));
422
423
                    return self::__INVALID_FIELDS__;
424
                }
425
            }
426

symphony/lib/toolkit/fields/field.upload.php 2 locations

@@ 382-388 (lines=7) @@
379
            if ($this->get('validator') !== null) {
380
                $rule = $this->get('validator');
381
382
                if (General::validateString($file, $rule) === false) {
383
                    $message = __('File chosen in ā€˜%s’ does not match allowable file types for that field.', array(
384
                        $this->get('label')
385
                    ));
386
387
                    return self::__INVALID_FIELDS__;
388
                }
389
            }
390
            // If the developer did not specified any validator, check for the
391
            // blacklisted file types instead
@@ 395-401 (lines=7) @@
392
            else {
393
                $blacklist = Symphony::Configuration()->get('upload_blacklist', 'admin');
394
395
                if (!empty($blacklist) && General::validateString($file, $blacklist)) {
396
                    $message = __('File chosen in ā€˜%s’ is blacklisted for that field.', array(
397
                        $this->get('label')
398
                    ));
399
400
                    return self::__INVALID_FIELDS__;
401
                }
402
            }
403
404
            return self::__OK__;