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

application/backend/widgets/FloatingPanel.php 2 locations

@@ 90-105 (lines=16) @@
87
                        }
88
89
                    }
90
                } else {
91
                    // no properties selected - go to category edit page
92
93
                    if (isset($_GET['last_category_id'])) {
94
                        $reviewsLink = $this->getReviewEditParams("Category", intval($_GET['last_category_id']));
95
                        $cat = app\modules\shop\models\Category::findById($_GET['last_category_id']);
96
                        $items[] = [
97
                            'label' => Icon::show('pencil') . ' ' . Yii::t('app', 'Edit category'),
98
                            'url' => [
99
                                '/shop/backend-category/edit',
100
                                'id' => $cat->id,
101
                                'parent_id' => $cat->parent_id,
102
                            ],
103
                        ];
104
                    }
105
                }
106
107
                break;
108
            case 'shop/product/show':
@@ 123-135 (lines=13) @@
120
            
121
            case '/page/page/show':
122
            case '/page/page/list':
123
                if (isset($_GET['id'])) {
124
                    $page = app\modules\page\models\Page::findById($_GET['id']);
125
                    $reviewsLink = $this->getReviewEditParams("Page", $_GET['id']);
126
                    $items[] = [
127
                        'label' => Icon::show('pencil') . ' ' . Yii::t('app', 'Edit page'),
128
                        'url' => [
129
                            '/page/backend/edit',
130
                            'id' => $page->id,
131
                            'parent_id' =>$page->parent_id,
132
133
                        ],
134
                    ];
135
                }
136
                break;
137
        }
138