Code Duplication    Length = 7-7 lines in 2 locations

src/Commons/Helper/PriceFinder.php 2 locations

@@ 56-62 (lines=7) @@
53
                if (!$this->priceHasNoDate($price) && !$this->priceHasValidDate($price, new \DateTime())) {
54
                    return false;
55
                }
56
                if (is_null($country)) {
57
                    if ($this->priceHas($price, 'country')) {
58
                        return false;
59
                    }
60
                } elseif (!$this->priceHasCountry($price, $country)) {
61
                    return false;
62
                }
63
                if (is_null($customerGroup)) {
64
                    if ($this->priceHas($price, 'customerGroup')) {
65
                        return false;
@@ 70-76 (lines=7) @@
67
                } elseif (!$this->priceHasCustomerGroup($price, $customerGroup)) {
68
                    return false;
69
                }
70
                if (is_null($channel)) {
71
                    if ($this->priceHas($price, 'channel')) {
72
                        return false;
73
                    }
74
                } elseif (!$this->priceHasChannel($price, $channel)) {
75
                    return false;
76
                }
77
                return true;
78
            }
79
        );