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

phpmyfaq/admin/record.add.php 1 location

@@ 177-181 (lines=5) @@
174
            // Open question answered
175
            $openQuestionId = Filter::filterInput(INPUT_POST, 'openQuestionId', FILTER_VALIDATE_INT);
176
            if (0 !== $openQuestionId) {
177
                if ($faqConfig->get('records.enableDeleteQuestion')) { // deletes question
178
                    $faq->deleteQuestion($openQuestionId);
179
                } else { // adds this faq record id to the related open question
180
                    $faq->updateQuestionAnswer($openQuestionId, $recordId, $categories['rubrik'][0]);
181
                }
182
183
                $url = sprintf(
184
                    '%s?action=faq&cat=%d&id=%d&artlang=%s',

phpmyfaq/ajaxservice.php 1 location

@@ 390-396 (lines=7) @@
387
            $faq->addCategoryRelations($categories, $recordId, $newData['lang']);
388
389
            $openQuestionId = Filter::filterInput(INPUT_POST, 'openQuestionID', FILTER_VALIDATE_INT);
390
            if ($openQuestionId) {
391
                if ($faqConfig->get('records.enableDeleteQuestion')) {
392
                    $faq->deleteQuestion($openQuestionId);
393
                } else { // adds this faq record id to the related open question
394
                    $faq->updateQuestionAnswer($openQuestionId, $recordId, $categories[0]);
395
                }
396
            }
397
398
            // Activate visits
399
            $visits = new Visits($faqConfig);