|
@@ -52,7 +52,7 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
/** @var ImageRenditionInterface[] $renditions */ |
|
53
|
53
|
if (null !== ($renditions = $data->getRenditions()) && count($renditions) > 0) { |
|
54
|
54
|
$existingThumbnailRendition = $data->getRenditions() |
|
55
|
|
- ->filter(static function ($rendition) { |
|
|
55
|
+ ->filter(static function($rendition) { |
|
56
|
56
|
/* @var ImageRenditionInterface $rendition */ |
|
57
|
57
|
return self::VIEW_IMAGE === $rendition->getName(); |
|
58
|
58
|
}); |
|
@@ -62,7 +62,7 @@ discard block |
|
|
block discarded – undo |
|
62
|
62
|
|
|
63
|
63
|
/** @var ArrayCollection<ImageRenditionInterface> $searchedRenditions */ |
|
64
|
64
|
$searchedRenditions = $data->getRenditions() |
|
65
|
|
- ->filter(function ($rendition) { |
|
|
65
|
+ ->filter(function($rendition) { |
|
66
|
66
|
/* @var ImageRenditionInterface $rendition */ |
|
67
|
67
|
return $rendition->getName() === $this->thumbnailRenditionName; |
|
68
|
68
|
}); |
Please login to merge, or discard this patch.