Code Duplication    Length = 11-11 lines in 2 locations

Subscribers/Lifecycle.php 1 location

@@ 433-443 (lines=11) @@
430
    /**
431
     * @return bool
432
     */
433
    private function hasPriceType()
434
    {
435
        if ($this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_PURCHASE
436
            || $this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_RETAIL
437
            || $this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_BOTH
438
        ) {
439
            return true;
440
        }
441
442
        return false;
443
    }
444
}
445

Subscribers/Article.php 1 location

@@ 603-613 (lines=11) @@
600
    /**
601
     * @return bool
602
     */
603
    private function hasPriceType()
604
    {
605
        if ($this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_PURCHASE
606
            || $this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_RETAIL
607
            || $this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_BOTH
608
        ) {
609
            return true;
610
        }
611
612
        return false;
613
    }
614
}
615