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

phpmyfaq/inc/PMF/Faq.php 2 locations

@@ 2000-2031 (lines=32) @@
1997
        $topten = [];
1998
        $data = [];
1999
2000
        while ($row = $this->_config->getDb()->fetchObject($result)) {
2001
            if ($this->groupSupport) {
2002
                if (!in_array($row->user_id, array(-1, $this->user)) || !in_array($row->group_id, $this->groups)) {
2003
                    continue;
2004
                }
2005
            } else {
2006
                if (!in_array($row->user_id, array(-1, $this->user))) {
2007
                    continue;
2008
                }
2009
            }
2010
2011
            $data['visits'] = $row->visits;
2012
            $data['question'] = $row->thema;
2013
            $data['date'] = $row->updated;
2014
            $data['last_visit'] = $row->last_visit;
2015
2016
            $title = $row->thema;
2017
            $url = sprintf(
2018
                '%sindex.php?%saction=artikel&cat=%d&id=%d&artlang=%s',
2019
                $this->_config->getDefaultUrl(),
2020
                $sids,
2021
                $row->category_id,
2022
                $row->id,
2023
                $row->lang
2024
            );
2025
            $oLink = new PMF_Link($url, $this->_config);
2026
            $oLink->itemTitle = $row->thema;
2027
            $oLink->tooltip = $title;
2028
            $data['url'] = $oLink->toString();
2029
2030
            $topten[] = $data;
2031
        }
2032
2033
        return $topten;
2034
    }
@@ 2101-2132 (lines=32) @@
2098
        $latest = [];
2099
        $data = [];
2100
2101
        while (($row = $this->_config->getDb()->fetchObject($result))) {
2102
            if ($this->groupSupport) {
2103
                if (!in_array($row->user_id, array(-1, $this->user)) || !in_array($row->group_id, $this->groups)) {
2104
                    continue;
2105
                }
2106
            } else {
2107
                if (!in_array($row->user_id, array(-1, $this->user))) {
2108
                    continue;
2109
                }
2110
            }
2111
2112
            $data['date'] = $row->updated;
2113
            $data['question'] = $row->thema;
2114
            $data['answer'] = $row->content;
2115
            $data['visits'] = $row->visits;
2116
2117
            $title = $row->thema;
2118
            $url = sprintf(
2119
                '%sindex.php?%saction=artikel&cat=%d&id=%d&artlang=%s',
2120
                $this->_config->getDefaultUrl(),
2121
                $sids,
2122
                $row->category_id,
2123
                $row->id,
2124
                $row->lang
2125
            );
2126
            $oLink = new PMF_Link($url, $this->_config);
2127
            $oLink->itemTitle = $row->thema;
2128
            $oLink->tooltip = $title;
2129
            $data['url'] = $oLink->toString();
2130
2131
            $latest[] = $data;
2132
        }
2133
2134
        return $latest;
2135
    }