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

phpmyfaq/ajaxservice.php 1 location

@@ 529-533 (lines=5) @@
526
                        $oLink = new PMF_Link($url, $faqConfig);
527
                        $oLink->text = PMF_Utils::chopString($result->question, 15);
528
                        $oLink->itemTitle = $result->question;
529
                        if ($faqConfig->get('main.enableMarkdownEditor')) {
530
                            $answerPreview = PMF_Utils::chopString(strip_tags($parsedown->text($result->answer)), 10);
531
                        } else {
532
                            $answerPreview = PMF_Utils::chopString(strip_tags($result->answer), 10);
533
                        }
534
                        $response   .= sprintf('<li>%s<br /><div class="searchpreview">%s...</div></li>',
535
                            $oLink->toHtmlAnchor(),
536
                            $answerPreview

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

@@ 259-263 (lines=5) @@
256
                $categoryInfo = array_values($categoryInfo); //Reset the array keys
257
                $question = PMF_Utils::chopString($result->question, 15);
258
259
                if ($this->_config->get('main.enableMarkdownEditor')) {
260
                    $answerPreview = PMF_Utils::chopString(strip_tags($parsedown->text($result->answer)), 25);
261
                } else {
262
                    $answerPreview = PMF_Utils::chopString(strip_tags($result->answer), 25);
263
                }
264
265
                $searchterm = str_replace(
266
                    ['^', '.', '?', '*', '+', '{', '}', '(', ')', '[', ']', '"'],

phpmyfaq/inc/PMF/Faq.php 1 location

@@ 269-273 (lines=5) @@
266
                $oLink = new PMF_Link($url, $this->_config);
267
                $oLink->itemTitle = $oLink->text = $oLink->tooltip = $row->thema;
268
269
                if ($this->_config->get('main.enableMarkdownEditor')) {
270
                    $answerPreview = PMF_Utils::chopString(strip_tags($parsedown->text($row->record_content)), 25);
271
                } else {
272
                    $answerPreview = PMF_Utils::chopString(strip_tags($row->record_content), 25);
273
                }
274
                $faqdata[] = array(
275
                    'record_id' => $row->id,
276
                    'record_lang' => $row->lang,