|
@@ -36,7 +36,7 @@ discard block |
|
|
block discarded – undo |
|
36
|
36
|
public function hasProduct(ProductInterface $product): bool |
|
37
|
37
|
{ |
|
38
|
38
|
/** @var ArrayCollection $result */ |
|
39
|
|
- $result = $this->comparerProducts->filter(function (ComparerProductInterface $comparerProduct) use ($product) { |
|
|
39
|
+ $result = $this->comparerProducts->filter(function(ComparerProductInterface $comparerProduct) use ($product) { |
|
40
|
40
|
return $product === $comparerProduct->getProduct(); |
|
41
|
41
|
}); |
|
42
|
42
|
|
|
@@ -46,7 +46,7 @@ discard block |
|
|
block discarded – undo |
|
46
|
46
|
public function getProducts(): Collection |
|
47
|
47
|
{ |
|
48
|
48
|
/** @var ArrayCollection $products */ |
|
49
|
|
- $products = $this->comparerProducts->map(function (ComparerProductInterface $comparerProduct) { |
|
|
49
|
+ $products = $this->comparerProducts->map(function(ComparerProductInterface $comparerProduct) { |
|
50
|
50
|
return $comparerProduct->getProduct(); |
|
51
|
51
|
}); |
|
52
|
52
|
|
Please login to merge, or discard this patch.