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

@@ 373-395 (lines=23) @@
370
        );
371
        $cacheKey .= ' : ' . $pages->offset;
372
        $products = Yii::$app->cache->get($cacheKey);
373
        if ($products === false) {
374
            $products = Product::find()->where(
375
                [
376
                    'in',
377
                    '`id`',
378
                    array_slice(
379
                        $ids,
380
                        $pages->offset,
381
                        $pages->limit
382
                    )
383
                ]
384
            )->addOrderBy('sort_order')->with('images')->all();
385
            Yii::$app->cache->set(
386
                $cacheKey,
387
                $products,
388
                86400,
389
                new TagDependency(
390
                    [
391
                        'tags' => ActiveRecordHelper::getCommonTag(Product::className()),
392
                    ]
393
                )
394
            );
395
        }
396
        Yii::$app->response->format = Response::FORMAT_JSON;
397
        return [
398
            'view' => $this->renderAjax(