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

application/modules/shop/models/Product.php 2 locations

@@ 637-643 (lines=7) @@
634
635
        }
636
        if ($categories !== false) {
637
            if (strpos($categories, $multipleValuesDelimiter) > 0) {
638
                $categories = explode($multipleValuesDelimiter, $categories);
639
            } elseif (strpos($multipleValuesDelimiter, '/') === 0) {
640
                $categories = preg_split($multipleValuesDelimiter, $categories);
641
            } else {
642
                $categories = [$categories];
643
            }
644
            $typecast = 'id';
645
646
            if (isset($additionalFields['categories'])) {
@@ 593-599 (lines=7) @@
590
591
        $images = isset($fields['images']) ? $fields['images'] : (isset($fields['image']) ? $fields['image'] : false);
592
        if ($images !== false) {
593
            if (strpos($images, $multipleValuesDelimiter) > 0) {
594
                $images = explode($multipleValuesDelimiter, $images);
595
            } elseif (strpos($multipleValuesDelimiter, '/') === 0) {
596
                $images = preg_split($multipleValuesDelimiter, $images);
597
            } else {
598
                $images = [$images];
599
            }
600
            $input_array = [];
601
            foreach ($images as $image_src) {
602
                $input_array[] = [