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

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