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

application/traits/SortModels.php 1 location

@@ 40-47 (lines=8) @@
37
        )->execute() > 0;
38
    }
39
40
    public static function generateCase($priorities)
41
    {
42
        $result = 'CASE `id`';
43
        foreach ($priorities as $k => $v) {
44
            $result .= ' when "' . $k . '" then "' . $v . '"';
45
        }
46
        return $result . ' END';
47
    }
48
49
    public static function moveIdBefore($id, $id_before, $field = 'sort_order')
50
    {

application/modules/shop/controllers/BackendProductController.php 1 location

@@ 715-722 (lines=8) @@
712
     * @param $priorities
713
     * @return string
714
     */
715
    private static function generateCase($priorities)
716
    {
717
        $result = 'CASE `id`';
718
        foreach ($priorities as $k => $v) {
719
            $result .= ' when "' . $k . '" then "' . $v . '"';
720
        }
721
        return $result . ' END';
722
    }
723
724
    /**
725
     * @return array