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

@@ 1316-1331 (lines=16) @@
1313
     *
1314
     * @return bool
1315
     */
1316
    public function deleteCategory($category_id, $category_lang, $delete_all = false)
1317
    {
1318
        $query = sprintf('
1319
            DELETE FROM
1320
                %sfaqcategories
1321
            WHERE
1322
                id = %d',
1323
            PMF_Db::getTablePrefix(),
1324
            $category_id);
1325
        if (!$delete_all) {
1326
            $query .= " AND lang = '".$category_lang."'";
1327
        }
1328
        $this->_config->getDb()->query($query);
1329
1330
        return true;
1331
    }
1332
    /**
1333
     * Deletes a category relation.
1334
     *
@@ 1341-1356 (lines=16) @@
1338
     *
1339
     * @return bool
1340
     */
1341
    public function deleteCategoryRelation($category_id, $category_lang, $delete_all = false)
1342
    {
1343
        $query = sprintf('
1344
            DELETE FROM
1345
                %sfaqcategoryrelations
1346
            WHERE
1347
                category_id = %d',
1348
            PMF_Db::getTablePrefix(),
1349
            $category_id);
1350
        if (!$delete_all) {
1351
            $query .= " AND category_lang = '".$category_lang."'";
1352
        }
1353
        $this->_config->getDb()->query($query);
1354
1355
        return true;
1356
    }
1357
1358
    /**
1359
     * Create array with translated categories.