Completed
Pull Request — 2.0 (#964)
by Paweł
07:23
created
SWP/Bundle/CoreBundle/Serializer/ArticleMediaSerializationSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         // check if rendition we want to create don't exists already in package
73 73
         $existingRendition = $media->getRenditions()
74
-            ->filter(static function ($rendition) use ($to) {
74
+            ->filter(static function($rendition) use ($to) {
75 75
                 /* @var ImageRenditionInterface $rendition */
76 76
                 return $to === $rendition->getName();
77 77
             });
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         /** @var ArrayCollection<ImageRenditionInterface> $searchedRenditions */
84 84
         $searchedRenditions = $media->getRenditions()
85
-            ->filter(static function ($rendition) use ($from) {
85
+            ->filter(static function($rendition) use ($from) {
86 86
                 /* @var ImageRenditionInterface $rendition */
87 87
                 return $rendition->getName() === $from;
88 88
             });
Please login to merge, or discard this patch.