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

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