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 = 18-20 lines in 2 locations

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

@@ 512-529 (lines=18) @@
509
            Filtering:
510
        -------------------------------------------------------------------------*/
511
512
        public function displayFilteringOptions(XMLElement &$wrapper)
513
        {
514
            $existing_options = $this->getToggleStates();
515
516
            if (is_array($existing_options) && !empty($existing_options)) {
517
                $optionlist = new XMLElement('ul');
518
                $optionlist->setAttribute('class', 'tags');
519
                $optionlist->setAttribute('data-interactive', 'data-interactive');
520
521
                foreach ($existing_options as $option) {
522
                    $optionlist->appendChild(
523
                        new XMLElement('li', General::sanitize($option))
524
                    );
525
                };
526
527
                $wrapper->appendChild($optionlist);
528
            }
529
        }
530
531
        /*-------------------------------------------------------------------------
532
            Grouping:

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

@@ 615-634 (lines=20) @@
612
            Filtering:
613
        -------------------------------------------------------------------------*/
614
615
        public function displayFilteringOptions(XMLElement &$wrapper)
616
        {
617
            if ($this->get('pre_populate_source') !== null) {
618
                $existing_tags = $this->getToggleStates();
619
620
                if (is_array($existing_tags) && !empty($existing_tags)) {
621
                    $taglist = new XMLElement('ul');
622
                    $taglist->setAttribute('class', 'tags');
623
                    $taglist->setAttribute('data-interactive', 'data-interactive');
624
625
                    foreach ($existing_tags as $tag) {
626
                        $taglist->appendChild(
627
                            new XMLElement('li', General::sanitize($tag))
628
                        );
629
                    }
630
631
                    $wrapper->appendChild($taglist);
632
                }
633
            }
634
        }
635
636
        public function buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = false)
637
        {