Code Duplication    Length = 13-13 lines in 2 locations

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

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