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/modules/shop/controllers/BackendProductController.php 1 location

@@ 671-678 (lines=8) @@
668
     * @param $priorities
669
     * @return string
670
     */
671
    private static function generateCase($priorities)
672
    {
673
        $result = 'CASE `id`';
674
        foreach ($priorities as $k => $v) {
675
            $result .= ' when "' . $k . '" then "' . $v . '"';
676
        }
677
        return $result . ' END';
678
    }
679
680
    /**
681
     * @return array

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
    {