Completed
Pull Request — 2.0 (#964)
by Paweł
10:58 queued 02:25
created
SWP/Bundle/CoreBundle/Serializer/ArticleMediaSerializationSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         /** @var ImageRenditionInterface[] $renditions */
52 52
         if (null !== ($renditions = $data->getRenditions()) && count($renditions) > 0) {
53 53
             $existingThumbnailRendition = $data->getRenditions()
54
-                ->filter(static function ($rendition) {
54
+                ->filter(static function($rendition) {
55 55
                     /* @var ImageRenditionInterface $rendition */
56 56
                     return self::VIEW_IMAGE === $rendition->getName();
57 57
                 });
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
             /** @var ImageRenditionInterface[] $searchedRenditions */
63 63
             $searchedRenditions = $data->getRenditions()
64
-                ->filter(function ($rendition) {
64
+                ->filter(function($rendition) {
65 65
                     /* @var ImageRenditionInterface $rendition */
66 66
                     return $rendition->getName() === $this->thumbnailRenditionName;
67 67
                 });
Please login to merge, or discard this patch.