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

phpmyfaq/inc/PMF/Faq.php 1 location

@@ 2702-2722 (lines=21) @@
2699
     *
2700
     * @author  Thorsten Rinne <[email protected]>
2701
     */
2702
    public function deletePermission($mode, $record_id)
2703
    {
2704
        if (!($mode == 'user' || $mode == 'group')) {
2705
            return false;
2706
        }
2707
        if (!is_int($record_id)) {
2708
            return false;
2709
        }
2710
2711
        $query = sprintf('
2712
            DELETE FROM
2713
                %sfaqdata_%s
2714
            WHERE
2715
                record_id = %d',
2716
            PMF_Db::getTablePrefix(),
2717
            $mode,
2718
            $record_id);
2719
        $this->_config->getDb()->query($query);
2720
2721
        return true;
2722
    }
2723
2724
    /**
2725
     * Returns the record permissions for users and groups.

phpmyfaq/inc/PMF/Category.php 1 location

@@ 1528-1550 (lines=23) @@
1525
     *
1526
     * @return bool
1527
     */
1528
    public function deletePermission($mode, $categories)
1529
    {
1530
        if (!($mode == 'user' || $mode == 'group')) {
1531
            return false;
1532
        }
1533
        if (!is_array($categories)) {
1534
            return false;
1535
        }
1536
1537
        foreach ($categories as $category_id) {
1538
            $query = sprintf('
1539
                DELETE FROM
1540
                    %sfaqcategory_%s
1541
                WHERE
1542
                    category_id = %d',
1543
                PMF_Db::getTablePrefix(),
1544
                $mode,
1545
                $category_id);
1546
            $this->_config->getDb()->query($query);
1547
        }
1548
1549
        return true;
1550
    }
1551
1552
    /**
1553
     * Returns the category permissions for users and groups.