Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 549-561 (lines=13) @@
546
    /**
547
     * {@inheritdoc}
548
     */
549
    public function createNewsletterSubscriber(array $subscriberData)
550
    {
551
        if ($this->isExtensionInstalled()) {
552
            $result = $this->call(
553
                SoapTransport::ACTION_ORO_NEWSLETTER_SUBSCRIBER_CREATE,
554
                ['subscriberData' => $subscriberData]
555
            );
556
557
            return ConverterUtils::objectToArray($result);
558
        }
559
560
        throw new ExtensionRequiredException();
561
    }
562
563
    /**
564
     * {@inheritdoc}
@@ 566-578 (lines=13) @@
563
    /**
564
     * {@inheritdoc}
565
     */
566
    public function updateNewsletterSubscriber($subscriberId, array $subscriberData)
567
    {
568
        if ($this->isExtensionInstalled()) {
569
            $result = $this->call(
570
                SoapTransport::ACTION_ORO_NEWSLETTER_SUBSCRIBER_UPDATE,
571
                ['subscriberId' => $subscriberId, 'subscriberData' => $subscriberData]
572
            );
573
574
            return ConverterUtils::objectToArray($result);
575
        }
576
577
        throw new ExtensionRequiredException();
578
    }
579
580
    /**
581
     * {@inheritdoc}