@@ -76,22 +76,22 @@ |
||
76 | 76 | public function getFilters() |
77 | 77 | { |
78 | 78 | return [ |
79 | - new \Twig_SimpleFilter('start', function ($node, $value) { |
|
79 | + new \Twig_SimpleFilter('start', function($node, $value) { |
|
80 | 80 | $node['_collection_type_filters']['start'] = $value; |
81 | 81 | |
82 | 82 | return $node; |
83 | 83 | }, ['needs_context' => false]), |
84 | - new \Twig_SimpleFilter('limit', function ($node, $value) { |
|
84 | + new \Twig_SimpleFilter('limit', function($node, $value) { |
|
85 | 85 | $node['_collection_type_filters']['limit'] = $value; |
86 | 86 | |
87 | 87 | return $node; |
88 | 88 | }, ['needs_context' => false]), |
89 | - new \Twig_SimpleFilter('order', function ($node, $value1, $value2) { |
|
89 | + new \Twig_SimpleFilter('order', function($node, $value1, $value2) { |
|
90 | 90 | $node['_collection_type_filters']['order'][] = [$value1, $value2]; |
91 | 91 | |
92 | 92 | return $node; |
93 | 93 | }, ['needs_context' => false]), |
94 | - new \Twig_SimpleFilter('dateRange', function ($node, $value1, $value2) { |
|
94 | + new \Twig_SimpleFilter('dateRange', function($node, $value1, $value2) { |
|
95 | 95 | $node['_collection_type_filters']['date_range'] = [$value1, $value2]; |
96 | 96 | |
97 | 97 | return $node; |
@@ -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 |