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

phpmyfaq/inc/PMF/Category.php 2 locations

@@ 1225-1240 (lines=16) @@
1222
     * @param  boolean $delete_all    Delete all languages?
1223
     * @return boolean
1224
     */
1225
    public function deleteCategory($category_id, $category_lang, $delete_all = false)
1226
    {
1227
        $query = sprintf("
1228
            DELETE FROM
1229
                %sfaqcategories
1230
            WHERE
1231
                id = %d",
1232
            PMF_Db::getTablePrefix(),
1233
            $category_id);
1234
        if (!$delete_all) {
1235
           $query .= " AND lang = '".$category_lang."'";
1236
        }
1237
        $this->_config->getDb()->query($query);
1238
1239
        return true;
1240
    }
1241
    /**
1242
     * Deletes a category relation
1243
     *
@@ 1249-1264 (lines=16) @@
1246
     * @param  boolean $delete_all    Delete all languages?
1247
     * @return boolean
1248
     */
1249
    public function deleteCategoryRelation($category_id, $category_lang, $delete_all = false)
1250
    {
1251
        $query = sprintf("
1252
            DELETE FROM
1253
                %sfaqcategoryrelations
1254
            WHERE
1255
                category_id = %d",
1256
            PMF_Db::getTablePrefix(),
1257
            $category_id);
1258
        if (!$delete_all) {
1259
           $query .= " AND category_lang = '".$category_lang."'";
1260
        }
1261
        $this->_config->getDb()->query($query);
1262
1263
        return true;
1264
    }
1265
1266
    /**
1267
     * Create array with translated categories