Completed
Pull Request — 2.0 (#964)
by Paweł
09:00
created
SWP/Bundle/CoreBundle/Serializer/ArticleMediaSerializationSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.