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

phpmyfaq/src/phpMyFAQ/Helper/SearchHelper.php 1 location

@@ 264-269 (lines=6) @@
261
                $searchItems = explode(' ', $searchTerm);
262
263
                if ($this->_config->get('search.enableHighlighting') && Strings::strlen($searchItems[0]) > 1) {
264
                    foreach ($searchItems as $item) {
265
                        if (Strings::strlen($item) > 2) {
266
                            $question = Utils::setHighlightedString($question, $item);
267
                            $answerPreview = Utils::setHighlightedString($answerPreview, $item);
268
                        }
269
                    }
270
                }
271
272
                // Build the link to the faq record

phpmyfaq/faq.php 1 location

@@ 112-117 (lines=6) @@
109
    $highlight = preg_quote($highlight, '/');
110
    $searchItems = explode(' ', $highlight);
111
112
    foreach ($searchItems as $item) {
113
        if (Strings::strlen($item) > 2) {
114
            $question = Utils::setHighlightedString($question, $item);
115
            $answer = Utils::setHighlightedString($answer, $item);
116
        }
117
    }
118
}
119
120
$linkVerifier = new Linkverifier($faqConfig);