Code Duplication    Length = 10-14 lines in 3 locations

src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CartWithExistingCustomerStrategy.php 1 location

@@ 15-28 (lines=14) @@
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function process($importingCart)
16
    {
17
        if (!$this->hasContactInfo($importingCart)) {
18
            return null;
19
        }
20
21
        if (!$this->isProcessingAllowed($importingCart)) {
22
            $this->appendDataToContext(self::CONTEXT_CART_POST_PROCESS, $this->context->getValue('itemData'));
23
24
            return null;
25
        }
26
27
        return parent::process($importingCart);
28
    }
29
30
    /**
31
     * @param Cart $cart

src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/NewsletterSubscriberWithExistingCustomerStrategy.php 1 location

@@ 15-24 (lines=10) @@
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function process($entity)
16
    {
17
        if (!$this->isProcessingAllowed($entity)) {
18
            $this->appendDataToContext(self::NEWSLETTER_SUBSCRIBER_POST_PROCESS, $this->context->getValue('itemData'));
19
20
            return null;
21
        }
22
23
        return parent::process($entity);
24
    }
25
26
    /**
27
     * @param NewsletterSubscriber $newsletterSubscriber

src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/OrderWithExistingCustomerStrategy.php 1 location

@@ 21-30 (lines=10) @@
18
     *
19
     * {@inheritdoc}
20
     */
21
    public function process($importingOrder)
22
    {
23
        if (!$this->isProcessingAllowed($importingOrder)) {
24
            $this->appendDataToContext(self::CONTEXT_ORDER_POST_PROCESS, $this->context->getValue('itemData'));
25
26
            return null;
27
        }
28
29
        return parent::process($importingOrder);
30
    }
31
32
    /**
33
     * @param Order $order