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

@@ 686-693 (lines=8) @@
683
     * @param $priorities
684
     * @return string
685
     */
686
    private static function generateCase($priorities)
687
    {
688
        $result = 'CASE `id`';
689
        foreach ($priorities as $k => $v) {
690
            $result .= ' when "' . $k . '" then "' . $v . '"';
691
        }
692
        return $result . ' END';
693
    }
694
695
    /**
696
     * @return array