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

src/fkooman/VPN/Server/Log/ConnectionLog.php 1 location

@@ 164-181 (lines=18) @@
161
        return $stmt->rowCount();
162
    }
163
164
    public function initDatabase()
165
    {
166
        $queries = self::createTableQueries($this->prefix);
167
        foreach ($queries as $q) {
168
            $this->db->query($q);
169
        }
170
171
        $tables = array('connections');
172
        foreach ($tables as $t) {
173
            // make sure the tables are empty
174
#            $this->db->query(
175
#                sprintf(
176
#                    'DELETE FROM %s',
177
#                    $this->prefix.$t
178
#                )
179
#            );
180
        }
181
    }
182
}
183

src/fkooman/VPN/Server/Log/OtpLog.php 1 location

@@ 87-104 (lines=18) @@
84
        return $query;
85
    }
86
87
    public function initDatabase()
88
    {
89
        $queries = self::createTableQueries($this->prefix);
90
        foreach ($queries as $q) {
91
            $this->db->query($q);
92
        }
93
94
        $tables = array('otp_log');
95
        foreach ($tables as $t) {
96
            // make sure the tables are empty
97
#            $this->db->query(
98
#                sprintf(
99
#                    'DELETE FROM %s',
100
#                    $this->prefix.$t
101
#                )
102
#            );
103
        }
104
    }
105
}
106