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

symphony/content/content.blueprintspages.php 1 location

@@ 641-643 (lines=3) @@
638
            $fields = $_POST['fields'];
639
            $this->_errors = array();
640
641
            if (!isset($fields['title']) || trim($fields['title']) == '') {
642
                $this->_errors['title'] = __('This is a required field');
643
            }
644
645
            if (trim($fields['type']) != '' && preg_match('/(index|404|403)/i', $fields['type'])) {
646
                $types = preg_split('/\s*,\s*/', strtolower($fields['type']), -1, PREG_SPLIT_NO_EMPTY);

symphony/content/content.blueprintssections.php 1 location

@@ 662-665 (lines=4) @@
659
            }
660
661
            // Check to ensure all the required section fields are filled
662
            if (!isset($meta['navigation_group']) || strlen(trim($meta['navigation_group'])) == 0) {
663
                $this->_errors['navigation_group'] = __('This is a required field.');
664
                $canProceed = false;
665
            }
666
667
            // Basic custom field checking
668
            if (is_array($fields) && !empty($fields)) {