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

@@ 1339-1354 (lines=16) @@
1336
     *
1337
     * @return bool
1338
     */
1339
    public function deleteCategory($category_id, $category_lang, $delete_all = false)
1340
    {
1341
        $query = sprintf('
1342
            DELETE FROM
1343
                %sfaqcategories
1344
            WHERE
1345
                id = %d',
1346
            PMF_Db::getTablePrefix(),
1347
            $category_id);
1348
        if (!$delete_all) {
1349
            $query .= " AND lang = '".$category_lang."'";
1350
        }
1351
        $this->_config->getDb()->query($query);
1352
1353
        return true;
1354
    }
1355
    /**
1356
     * Deletes a category relation.
1357
     *
@@ 1364-1379 (lines=16) @@
1361
     *
1362
     * @return bool
1363
     */
1364
    public function deleteCategoryRelation($category_id, $category_lang, $delete_all = false)
1365
    {
1366
        $query = sprintf('
1367
            DELETE FROM
1368
                %sfaqcategoryrelations
1369
            WHERE
1370
                category_id = %d',
1371
            PMF_Db::getTablePrefix(),
1372
            $category_id);
1373
        if (!$delete_all) {
1374
            $query .= " AND category_lang = '".$category_lang."'";
1375
        }
1376
        $this->_config->getDb()->query($query);
1377
1378
        return true;
1379
    }
1380
1381
    /**
1382
     * Create array with translated categories.