Completed
Push — 1.5 ( b8a47f...9386ba )
by Paweł
18s queued 10s
created
src/SWP/Bundle/ContentBundle/Hydrator/ArticleHydrator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $items = $this->filterTextItems($package->getItems());
90 90
 
91 91
             $map = $items->map(
92
-                static function (ItemInterface $item) {
92
+                static function(ItemInterface $item) {
93 93
                     return ' '.$item->getDescription();
94 94
                 }
95 95
             );
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $items = $this->filterTextItems($package->getItems());
106 106
 
107
-        $authors = array_filter(array_values(array_map(static function (ItemInterface $item) {
107
+        $authors = array_filter(array_values(array_map(static function(ItemInterface $item) {
108 108
             $metadata = $item->getMetadata();
109 109
 
110 110
             return $metadata['byline'];
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     private function filterTextItems(Collection $items): Collection
121 121
     {
122 122
         return $items->filter(
123
-            function (ItemInterface $item) {
123
+            function(ItemInterface $item) {
124 124
                 $this->ensureTypeIsAllowed($item->getType());
125 125
 
126 126
                 return ItemInterface::TYPE_TEXT === $item->getType();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     private function populateBody(PackageInterface $package): string
132 132
     {
133
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
133
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
134 134
             $this->ensureTypeIsAllowed($item->getType());
135 135
 
136 136
             return $item->getBody();
Please login to merge, or discard this patch.