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

symphony/content/content.blueprintspages.php 2 locations

@@ 460-470 (lines=11) @@
457
        $events = ResourceManager::fetch(ResourceManager::RESOURCE_TYPE_EVENT, array(), array(), 'name ASC');
458
        $options = array();
459
460
        if (is_array($events) && !empty($events)) {
461
            if (!isset($fields['events'])) {
462
                $fields['events'] = array();
463
            }
464
465
            foreach ($events as $name => $about) {
466
                $options[] = array(
467
                    $name, in_array($name, $fields['events']), $about['name']
468
                );
469
            }
470
        }
471
472
        $label->appendChild(Widget::Select('fields[events][]', $options, array('multiple' => 'multiple')));
473
        $group->appendChild($label);
@@ 483-493 (lines=11) @@
480
        $datasources = ResourceManager::fetch(ResourceManager::RESOURCE_TYPE_DS, array(), array(), 'name ASC');
481
        $options = array();
482
483
        if (is_array($datasources) && !empty($datasources)) {
484
            if (!isset($fields['data_sources'])) {
485
                $fields['data_sources'] = array();
486
            }
487
488
            foreach ($datasources as $name => $about) {
489
                $options[] = array(
490
                    $name, in_array($name, $fields['data_sources']), $about['name']
491
                );
492
            }
493
        }
494
495
        $label->appendChild(Widget::Select('fields[data_sources][]', $options, array('multiple' => 'multiple')));
496
        $group->appendChild($label);