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 = 9-9 lines in 2 locations

application/modules/shop/controllers/BackendOrderController.php 2 locations

@@ 557-565 (lines=9) @@
554
555
                if (0 === intval($model->customer_id)) {
556
                    $customer = Customer::createEmptyCustomer(intval($model->user_id));
557
                    if ($customer->load($data) && $customer->save()) {
558
                        if (!empty($customer->getPropertyGroup())) {
559
                            $customer->getPropertyGroup()->appendToObjectModel($customer);
560
                            $data[$customer->getAbstractModel()->formName()] = isset($data['CustomerNew']) ? $data['CustomerNew'] : [];
561
                        }
562
                        $customer->saveModelWithProperties($data);
563
                        $customer->refresh();
564
                        $model->customer_id = $customer->id;
565
                    }
566
                } else {
567
                    $customer = Customer::findOne(['id' => $model->customer_id]);
568
                }
@@ 572-580 (lines=9) @@
569
570
                if (0 === $model->contragent_id || null === Contragent::findOne(['id' => $model->contragent_id, 'customer_id' => $model->customer_id])) {
571
                    $contragent = Contragent::createEmptyContragent($customer);
572
                    if ($contragent->load($data) && $contragent->save()) {
573
                        if (!empty($contragent->getPropertyGroup())) {
574
                            $contragent->getPropertyGroup()->appendToObjectModel($contragent);
575
                            $data[$contragent->getAbstractModel()->formName()] = isset($data['ContragentNew']) ? $data['ContragentNew'] : [];
576
                        }
577
                        $contragent->saveModelWithProperties($data);
578
                        $contragent->refresh();
579
                        $model->contragent_id = $contragent->id;
580
                    }
581
                } else {
582
                    $contragent = Contragent::findOne(['id' => $model->contragent_id]);
583
                }