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 = 3-3 lines in 4 locations

application/modules/shop/controllers/CartController.php 4 locations

@@ 218-220 (lines=3) @@
215
        }
216
217
        $order = $this->loadOrder(true);
218
        if (null === $order->stage || true === $order->getImmutability(Order::IMMUTABLE_USER)) {
219
            throw new BadRequestHttpException;
220
        }
221
222
        $result = [
223
            'products' => [],
@@ 279-281 (lines=3) @@
276
        $orderItem = $this->loadOrderItem($id);
277
        $order = $this->loadOrder();
278
279
        if (null === $order->stage || true === $order->getImmutability(Order::IMMUTABLE_USER)) {
280
            throw new BadRequestHttpException;
281
        }
282
283
        $model = $orderItem->product;
284
        $product = [
@@ 333-335 (lines=3) @@
330
        $result = [];
331
332
        $order = $this->loadOrder();
333
        if (null === $order->stage || true === $order->getImmutability(Order::IMMUTABLE_USER)) {
334
            throw new BadRequestHttpException;
335
        }
336
337
        $orderItem = $this->loadOrderItem($id);
338
        $model = $orderItem->product;
@@ 379-381 (lines=3) @@
376
        $result = [];
377
378
        $order = $this->loadOrder();
379
        if (null === $order->stage || true === $order->getImmutability(Order::IMMUTABLE_USER)) {
380
            throw new BadRequestHttpException;
381
        }
382
383
        $products = array_reduce($order->items, function($res, $item) {
384
            $res[] = [