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

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

@@ 181-203 (lines=23) @@
178
        );
179
        $cacheKey .= ' : ' . $pages->offset;
180
        $pagelist = Yii::$app->cache->get($cacheKey);
181
        if ($pagelist === false) {
182
            $pagelist = Page::find()->where(
183
                [
184
                    'in',
185
                    '`id`',
186
                    array_slice(
187
                        $ids,
188
                        $pages->offset,
189
                        $pages->limit
190
                    )
191
                ]
192
            )->addOrderBy('sort_order')->with('images')->all();
193
            Yii::$app->cache->set(
194
                $cacheKey,
195
                $pagelist,
196
                86400,
197
                new TagDependency(
198
                    [
199
                        'tags' => ActiveRecordHelper::getCommonTag(Page::className()),
200
                    ]
201
                )
202
            );
203
        }
204
        Yii::$app->response->format = Response::FORMAT_JSON;
205
        return [
206
            'view' => $this->renderPartial(

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

@@ 388-410 (lines=23) @@
385
        );
386
        $cacheKey .= ' : ' . $pages->offset;
387
        $products = Yii::$app->cache->get($cacheKey);
388
        if ($products === false) {
389
            $products = Product::find()->where(
390
                [
391
                    'in',
392
                    '`id`',
393
                    array_slice(
394
                        $ids,
395
                        $pages->offset,
396
                        $pages->limit
397
                    )
398
                ]
399
            )->addOrderBy('sort_order')->with('images')->all();
400
            Yii::$app->cache->set(
401
                $cacheKey,
402
                $products,
403
                86400,
404
                new TagDependency(
405
                    [
406
                        'tags' => ActiveRecordHelper::getCommonTag(Product::className()),
407
                    ]
408
                )
409
            );
410
        }
411
        Yii::$app->response->format = Response::FORMAT_JSON;
412
        return [
413
            'view' => $this->renderAjax(