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

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