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

symphony/content/content.blueprintssections.php 1 location

@@ 316-322 (lines=7) @@
313
    {
314
        $section_id = $this->_context[1];
315
316
        if (!$section = SectionManager::fetch($section_id)) {
317
            Administration::instance()->throwCustomError(
318
                __('The Section, %s, could not be found.', array($section_id)),
319
                __('Unknown Section'),
320
                Page::HTTP_STATUS_NOT_FOUND
321
            );
322
        }
323
324
        $meta = $section->get();
325
        $section_id = $meta['id'];

symphony/content/content.publish.php 2 locations

@@ 1192-1198 (lines=7) @@
1189
1190
        EntryManager::setFetchSorting('id', 'DESC');
1191
1192
        if (!$existingEntry = EntryManager::fetch($entry_id)) {
1193
            Administration::instance()->throwCustomError(
1194
                __('Unknown Entry'),
1195
                __('The Entry, %s, could not be found.', array($entry_id)),
1196
                Page::HTTP_STATUS_NOT_FOUND
1197
            );
1198
        }
1199
        $existingEntry = $existingEntry[0];
1200
1201
        // If there is post data floating around, due to errors, create an entry object
@@ 1400-1406 (lines=7) @@
1397
        $entry_id = intval($this->_context['entry_id']);
1398
1399
        if (is_array($_POST['action']) && (array_key_exists('save', $_POST['action']) || array_key_exists('done', $_POST['action']))) {
1400
            if (!$ret = EntryManager::fetch($entry_id)) {
1401
                Administration::instance()->throwCustomError(
1402
                    __('The Entry, %s, could not be found.', array($entry_id)),
1403
                    __('Unknown Entry'),
1404
                    Page::HTTP_STATUS_NOT_FOUND
1405
                );
1406
            }
1407
1408
            $entry = $ret[0];
1409