Code Duplication    Length = 13-13 lines in 2 locations

src/OroCRM/Bundle/MagentoBundle/Provider/Transport/SoapTransport.php 2 locations

@@ 566-578 (lines=13) @@
563
    /**
564
     * {@inheritdoc}
565
     */
566
    public function createNewsletterSubscriber(array $subscriberData)
567
    {
568
        if ($this->isExtensionInstalled()) {
569
            $result = $this->call(
570
                SoapTransport::ACTION_ORO_NEWSLETTER_SUBSCRIBER_CREATE,
571
                ['subscriberData' => $subscriberData]
572
            );
573
574
            return ConverterUtils::objectToArray($result);
575
        }
576
577
        throw new ExtensionRequiredException();
578
    }
579
580
    /**
581
     * {@inheritdoc}
@@ 583-595 (lines=13) @@
580
    /**
581
     * {@inheritdoc}
582
     */
583
    public function updateNewsletterSubscriber($subscriberId, array $subscriberData)
584
    {
585
        if ($this->isExtensionInstalled()) {
586
            $result = $this->call(
587
                SoapTransport::ACTION_ORO_NEWSLETTER_SUBSCRIBER_UPDATE,
588
                ['subscriberId' => $subscriberId, 'subscriberData' => $subscriberData]
589
            );
590
591
            return ConverterUtils::objectToArray($result);
592
        }
593
594
        throw new ExtensionRequiredException();
595
    }
596
597
    /**
598
     * {@inheritdoc}