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/artikel.php 1 location

@@ 93-98 (lines=6) @@
90
    $highlight = preg_quote($highlight, '/');
91
    $searchItems = explode(' ', $highlight);
92
93
    foreach ($searchItems as $item) {
94
        if (PMF_String::strlen($item) > 2) {
95
            $question = PMF_Utils::setHighlightedString($question, $item);
96
            $answer = PMF_Utils::setHighlightedString($answer, $item);
97
        }
98
    }
99
}
100
101
$linkVerifier = new PMF_Linkverifier($faqConfig);

phpmyfaq/inc/PMF/Helper/Search.php 1 location

@@ 259-264 (lines=6) @@
256
                $searchItems = explode(' ', $searchterm);
257
258
                if ($this->_config->get('search.enableHighlighting') && PMF_String::strlen($searchItems[0]) > 1) {
259
                    foreach ($searchItems as $item) {
260
                        if (PMF_String::strlen($item) > 2) {
261
                            $question = PMF_Utils::setHighlightedString($question, $item);
262
                            $answerPreview = PMF_Utils::setHighlightedString($answerPreview, $item);
263
                        }
264
                    }
265
                }
266
267
                // Build the link to the faq record