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

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