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 = 7-9 lines in 4 locations

phpmyfaq/inc/PMF/Installer.php 4 locations

@@ 801-807 (lines=7) @@
798
        }
799
800
        // check LDAP is enabled
801
        if (extension_loaded('ldap') && !is_null($ldapEnabled) && count($ldapSetup)) {
802
            if (!$instanceSetup->createLdapFile($ldapSetup, '')) {
803
                echo '<p class="alert alert-danger"><strong>Error:</strong> Setup cannot write to ./config/ldap.php.</p>';
804
                $this->_system->cleanInstallation();
805
                PMF_System::renderFooter(true);
806
            }
807
        }
808
809
        // check if Elasticsearch is enabled
810
        if (!is_null($esEnabled) && count($esSetup)) {
@@ 810-816 (lines=7) @@
807
        }
808
809
        // check if Elasticsearch is enabled
810
        if (!is_null($esEnabled) && count($esSetup)) {
811
            if (!$instanceSetup->createElasticsearchFile($esSetup, '')) {
812
                echo '<p class="alert alert-danger"><strong>Error:</strong> Setup cannot write to ./config/elasticsearch.php.</p>';
813
                $this->_system->cleanInstallation();
814
                PMF_System::renderFooter(true);
815
            }
816
        }
817
818
        // connect to the database using config/database.php
819
        require PMF_ROOT_DIR.'/config/database.php';
@@ 847-855 (lines=9) @@
844
        $count = 0;
845
        foreach ($query as $executeQuery) {
846
            $result = @$db->query($executeQuery);
847
            if (!$result) {
848
                echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again or send
849
            us a <a href=\"http://www.phpmyfaq.de\" target=\"_blank\">bug report</a>.</p>';
850
                printf('<p class="alert alert-danger"><strong>DB error:</strong> %s</p>', $db->error());
851
                printf('<code>%s</code>', htmlentities($executeQuery));
852
                $this->_system->dropTables($uninst);
853
                $this->_system->cleanInstallation();
854
                PMF_System::renderFooter(true);
855
            }
856
            usleep(1000);
857
            ++$count;
858
            if (!($count % 10)) {
@@ 880-888 (lines=9) @@
877
878
        // add admin account and rights
879
        $admin = new PMF_User($configuration);
880
        if (!$admin->createUser($loginname, $password, 1)) {
881
            printf(
882
                '<p class="alert alert-danger"><strong>Fatal installation error:</strong><br>'.
883
                "Couldn't create the admin user: %s</p>\n",
884
                $admin->error()
885
            );
886
            $this->_system->cleanInstallation();
887
            PMF_System::renderFooter(true);
888
        }
889
        $admin->setStatus('protected');
890
        $adminData = array(
891
            'display_name' => $realname,