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

protected/extensions/retailcrm/components/lib/ApiClient.php 9 locations

@@ 529-542 (lines=14) @@
526
     * @param array $data delivery service data
527
     * @return ApiResponse
528
     */
529
    public function deliveryServicesEdit(array $data)
530
    {
531
        if (!isset($data['code'])) {
532
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
533
        }
534
535
        return $this->client->makeRequest(
536
            '/reference/delivery-services/' . $data['code'] . '/edit',
537
            Client::METHOD_POST,
538
            array(
539
                'deliveryService' => json_encode($data)
540
            )
541
        );
542
    }
543
544
    /**
545
     * Edit deliveryType
@@ 550-563 (lines=14) @@
547
     * @param array $data delivery type data
548
     * @return ApiResponse
549
     */
550
    public function deliveryTypesEdit(array $data)
551
    {
552
        if (!isset($data['code'])) {
553
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
554
        }
555
556
        return $this->client->makeRequest(
557
            '/reference/delivery-types/' . $data['code'] . '/edit',
558
            Client::METHOD_POST,
559
            array(
560
                'deliveryType' => json_encode($data)
561
            )
562
        );
563
    }
564
565
    /**
566
     * Edit orderMethod
@@ 571-584 (lines=14) @@
568
     * @param array $data order method data
569
     * @return ApiResponse
570
     */
571
    public function orderMethodsEdit(array $data)
572
    {
573
        if (!isset($data['code'])) {
574
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
575
        }
576
577
        return $this->client->makeRequest(
578
            '/reference/order-methods/' . $data['code'] . '/edit',
579
            Client::METHOD_POST,
580
            array(
581
                'orderMethod' => json_encode($data)
582
            )
583
        );
584
    }
585
586
    /**
587
     * Edit orderType
@@ 592-605 (lines=14) @@
589
     * @param array $data order type data
590
     * @return ApiResponse
591
     */
592
    public function orderTypesEdit(array $data)
593
    {
594
        if (!isset($data['code'])) {
595
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
596
        }
597
598
        return $this->client->makeRequest(
599
            '/reference/order-types/' . $data['code'] . '/edit',
600
            Client::METHOD_POST,
601
            array(
602
                'orderType' => json_encode($data)
603
            )
604
        );
605
    }
606
607
    /**
608
     * Edit paymentStatus
@@ 613-626 (lines=14) @@
610
     * @param array $data payment status data
611
     * @return ApiResponse
612
     */
613
    public function paymentStatusesEdit(array $data)
614
    {
615
        if (!isset($data['code'])) {
616
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
617
        }
618
619
        return $this->client->makeRequest(
620
            '/reference/payment-statuses/' . $data['code'] . '/edit',
621
            Client::METHOD_POST,
622
            array(
623
                'paymentStatus' => json_encode($data)
624
            )
625
        );
626
    }
627
628
    /**
629
     * Edit paymentType
@@ 634-647 (lines=14) @@
631
     * @param array $data payment type data
632
     * @return ApiResponse
633
     */
634
    public function paymentTypesEdit(array $data)
635
    {
636
        if (!isset($data['code'])) {
637
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
638
        }
639
640
        return $this->client->makeRequest(
641
            '/reference/payment-types/' . $data['code'] . '/edit',
642
            Client::METHOD_POST,
643
            array(
644
                'paymentType' => json_encode($data)
645
            )
646
        );
647
    }
648
649
    /**
650
     * Edit productStatus
@@ 655-668 (lines=14) @@
652
     * @param array $data product status data
653
     * @return ApiResponse
654
     */
655
    public function productStatusesEdit(array $data)
656
    {
657
        if (!isset($data['code'])) {
658
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
659
        }
660
661
        return $this->client->makeRequest(
662
            '/reference/product-statuses/' . $data['code'] . '/edit',
663
            Client::METHOD_POST,
664
            array(
665
                'productStatus' => json_encode($data)
666
            )
667
        );
668
    }
669
670
    /**
671
     * Edit order status
@@ 676-689 (lines=14) @@
673
     * @param array $data status data
674
     * @return ApiResponse
675
     */
676
    public function statusesEdit(array $data)
677
    {
678
        if (!isset($data['code'])) {
679
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
680
        }
681
682
        return $this->client->makeRequest(
683
            '/reference/statuses/' . $data['code'] . '/edit',
684
            Client::METHOD_POST,
685
            array(
686
                'status' => json_encode($data)
687
            )
688
        );
689
    }
690
691
    /**
692
     * Edit site
@@ 697-710 (lines=14) @@
694
     * @param array $data site data
695
     * @return ApiResponse
696
     */
697
    public function sitesEdit(array $data)
698
    {
699
        if (!isset($data['code'])) {
700
            throw new \InvalidArgumentException('Data must contain "code" parameter.');
701
        }
702
703
        return $this->client->makeRequest(
704
            '/reference/sites/' . $data['code'] . '/edit',
705
            Client::METHOD_POST,
706
            array(
707
                'site' => json_encode($data)
708
            )
709
        );
710
    }
711
712
    /**
713
     * Update CRM basic statistic