| @@ -48,7 +48,7 @@ | ||
| 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 | |
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 | |
| 50 | 50 | $this->removeOldRelatedArticles($article); | 
| 51 | 51 | |
| 52 | -        $relatedItemsGroups = $package->getGroups()->filter(function ($group) { | |
| 52 | +        $relatedItemsGroups = $package->getGroups()->filter(function($group) { | |
| 53 | 53 | return GroupInterface::TYPE_RELATED === $group->getType(); | 
| 54 | 54 | }); | 
| 55 | 55 | |
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | $content = $request->getContent(); | 
| 46 | 46 |          $package = $this->get('swp_bridge.transformer.json_to_package')->transform($content); | 
| 47 | 47 | |
| 48 | -        $relatedItemsGroups = $package->getGroups()->filter(function ($group) { | |
| 48 | +        $relatedItemsGroups = $package->getGroups()->filter(function($group) { | |
| 49 | 49 | return GroupInterface::TYPE_RELATED === $group->getType(); | 
| 50 | 50 | }); | 
| 51 | 51 | |
| @@ -143,7 +143,7 @@ | ||
| 143 | 143 | |
| 144 | 144 | $ids = array_column($rules['tenants'], 'tenant'); | 
| 145 | 145 | $ids = array_unique($ids); | 
| 146 | -        $tenants = array_filter($rules['tenants'], function ($key, $value) use ($ids) { | |
| 146 | +        $tenants = array_filter($rules['tenants'], function($key, $value) use ($ids) { | |
| 147 | 147 | return array_key_exists($value, $ids); | 
| 148 | 148 | }, ARRAY_FILTER_USE_BOTH); | 
| 149 | 149 | |