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

application/modules/page/controllers/PageController.php 1 location

@@ 236-239 (lines=4) @@
233
        // get basic data
234
        $parent = Page::findById($model->parent_id);
235
        // if parent exists and not a main page
236
        while ($parent !== null && $parent->id != 1) {
237
            $crumbs[$parent->slug] = $parent->breadcrumbs_label;
238
            $parent = $parent->parent;
239
        }
240
241
        // build array for widget
242
        $url = '';

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

@@ 448-451 (lines=4) @@
445
446
        // get basic data
447
        $parent = $selCat->parent_id > 0 ? Category::findById($selCat->parent_id) : null;
448
        while ($parent !== null) {
449
            $crumbs[$parent->slug] = $parent->breadcrumbs_label;
450
            $parent = $parent->parent;
451
        }
452
453
        // build array for widget
454
        $url = '';