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

@@ 701-708 (lines=8) @@
698
     * @param $priorities
699
     * @return string
700
     */
701
    private static function generateCase($priorities)
702
    {
703
        $result = 'CASE `id`';
704
        foreach ($priorities as $k => $v) {
705
            $result .= ' when "' . $k . '" then "' . $v . '"';
706
        }
707
        return $result . ' END';
708
    }
709
710
    /**
711
     * @return array