Code Duplication    Length = 11-11 lines in 2 locations

Subscribers/Lifecycle.php 1 location

@@ 482-492 (lines=11) @@
479
    /**
480
     * @return bool
481
     */
482
    private function hasPriceType()
483
    {
484
        if ($this->sdk->getPriceType() === SDK::PRICE_TYPE_PURCHASE
485
            || $this->sdk->getPriceType() === SDK::PRICE_TYPE_RETAIL
486
            || $this->sdk->getPriceType() === SDK::PRICE_TYPE_BOTH
487
        ) {
488
            return true;
489
        }
490
491
        return false;
492
    }
493
}
494

Subscribers/Article.php 1 location

@@ 660-670 (lines=11) @@
657
    /**
658
     * @return bool
659
     */
660
    private function hasPriceType()
661
    {
662
        if ($this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_PURCHASE
663
            || $this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_RETAIL
664
            || $this->sdk->getPriceType() === \Shopware\Connect\SDK::PRICE_TYPE_BOTH
665
        ) {
666
            return true;
667
        }
668
669
        return false;
670
    }
671
}
672