Completed
Pull Request — 1.5 (#740)
by Rafał
21:32 queued 09:35
created
SWP/Bundle/ContentBundle/EventListener/ProcessArticleSlideshowsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $package = $event->getPackage();
49 49
         $article = $event->getArticle();
50 50
 
51
-        $groups = $package->getGroups()->filter(function ($group) {
51
+        $groups = $package->getGroups()->filter(function($group) {
52 52
             return GroupInterface::TYPE_RELATED !== $group->getType();
53 53
         });
54 54
 
Please login to merge, or discard this patch.
SWP/Bundle/ContentBundle/EventListener/ProcessRelatedArticlesListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $package = $event->getPackage();
44 44
         $article = $event->getArticle();
45 45
 
46
-        $relatedItemsGroups = $package->getGroups()->filter(function ($group) {
46
+        $relatedItemsGroups = $package->getGroups()->filter(function($group) {
47 47
             return GroupInterface::TYPE_RELATED === $group->getType();
48 48
         });
49 49
 
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Hydrator/ArticleHydrator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         // if exists, add it to the current $article
61 61
         // else
62 62
 
63
-        $groups = $package->getGroups()->filter(function ($group) {
63
+        $groups = $package->getGroups()->filter(function($group) {
64 64
             return GroupInterface::TYPE_RELATED === $group->getType();
65 65
         });
66 66
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $items = $this->filterTextItems($package->getItems());
104 104
 
105 105
             $map = $items->map(
106
-                function (ItemInterface $item) {
106
+                function(ItemInterface $item) {
107 107
                     return ' '.$item->getDescription();
108 108
                 }
109 109
             );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $items = $this->filterTextItems($package->getItems());
125 125
 
126
-        $authors = array_filter(array_values(array_map(function (ItemInterface $item) {
126
+        $authors = array_filter(array_values(array_map(function(ItemInterface $item) {
127 127
             $metadata = $item->getMetadata();
128 128
 
129 129
             return $metadata['byline'];
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     private function filterTextItems(Collection $items)
145 145
     {
146 146
         return $items->filter(
147
-            function (ItemInterface $item) {
147
+            function(ItemInterface $item) {
148 148
                 $this->ensureTypeIsAllowed($item->getType());
149 149
 
150 150
                 return ItemInterface::TYPE_TEXT === $item->getType();
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     private function populateBody(PackageInterface $package)
161 161
     {
162
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
162
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
163 163
             $this->ensureTypeIsAllowed($item->getType());
164 164
 
165 165
             return $item->getBody();
Please login to merge, or discard this patch.