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

@@ 776-782 (lines=7) @@
773
        }
774
775
        // check LDAP is enabled
776
        if (extension_loaded('ldap') && !is_null($ldapEnabled) && count($ldapSetup)) {
777
            if (!$instanceSetup->createLdapFile($ldapSetup, '')) {
778
                echo '<p class="alert alert-danger"><strong>Error:</strong> Setup cannot write to ./config/ldap.php.</p>';
779
                $this->_system->cleanInstallation();
780
                PMF_System::renderFooter(true);
781
            }
782
        }
783
784
        // check if Elasticsearch is enabled
785
        if (!is_null($esEnabled) && count($esSetup)) {
@@ 785-791 (lines=7) @@
782
        }
783
784
        // check if Elasticsearch is enabled
785
        if (!is_null($esEnabled) && count($esSetup)) {
786
            if (!$instanceSetup->createElasticsearchFile($esSetup, '')) {
787
                echo '<p class="alert alert-danger"><strong>Error:</strong> Setup cannot write to ./config/elasticsearch.php.</p>';
788
                $this->_system->cleanInstallation();
789
                PMF_System::renderFooter(true);
790
            }
791
        }
792
793
        // connect to the database using config/database.php
794
        require PMF_ROOT_DIR.'/config/database.php';
@@ 822-830 (lines=9) @@
819
        $count = 0;
820
        foreach ($query as $executeQuery) {
821
            $result = @$db->query($executeQuery);
822
            if (!$result) {
823
                echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again or send
824
            us a <a href=\"http://www.phpmyfaq.de\" target=\"_blank\">bug report</a>.</p>';
825
                printf('<p class="alert alert-danger"><strong>DB error:</strong> %s</p>', $db->error());
826
                printf('<code>%s</code>', htmlentities($executeQuery));
827
                $this->_system->dropTables($uninst);
828
                $this->_system->cleanInstallation();
829
                PMF_System::renderFooter(true);
830
            }
831
            usleep(1000);
832
            ++$count;
833
            if (!($count % 10)) {
@@ 855-863 (lines=9) @@
852
853
        // add admin account and rights
854
        $admin = new PMF_User($configuration);
855
        if (!$admin->createUser($loginname, $password, 1)) {
856
            printf(
857
                '<p class="alert alert-danger"><strong>Fatal installation error:</strong><br>'.
858
                "Couldn't create the admin user: %s</p>\n",
859
                $admin->error()
860
            );
861
            $this->_system->cleanInstallation();
862
            PMF_System::renderFooter(true);
863
        }
864
        $admin->setStatus('protected');
865
        $adminData = array(
866
            'display_name' => $realname,