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

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