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

@@ 191-213 (lines=23) @@
188
        );
189
        $cacheKey .= ' : ' . $pages->offset;
190
        $pagelist = Yii::$app->cache->get($cacheKey);
191
        if ($pagelist === false) {
192
            $pagelist = Page::find()->where(
193
                [
194
                    'in',
195
                    '`id`',
196
                    array_slice(
197
                        $ids,
198
                        $pages->offset,
199
                        $pages->limit
200
                    )
201
                ]
202
            )->addOrderBy('sort_order')->with('images')->all();
203
            Yii::$app->cache->set(
204
                $cacheKey,
205
                $pagelist,
206
                86400,
207
                new TagDependency(
208
                    [
209
                        'tags' => ActiveRecordHelper::getCommonTag(Page::className()),
210
                    ]
211
                )
212
            );
213
        }
214
        Yii::$app->response->format = Response::FORMAT_JSON;
215
        return [
216
            'view' => $this->renderPartial(

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

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