@@ -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 |
@@ -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 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @return array|\Twig_TokenParserInterface[] |
|
46 | + * @return ContainerTokenParser[] |
|
47 | 47 | */ |
48 | 48 | public function getTokenParsers() |
49 | 49 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * @param \Twig_Node_Expression|null $parameters |
27 | 27 | * @param \Twig_Node $body |
28 | 28 | * @param null|string $lineno |
29 | - * @param null $tag |
|
29 | + * @param string $tag |
|
30 | 30 | */ |
31 | 31 | public function __construct(\Twig_Node $name, \Twig_Node_Expression $parameters = null, \Twig_Node $body, $lineno, $tag = null) |
32 | 32 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * @param \Twig_Node|null $else |
37 | 37 | * @param \Twig_Node $body |
38 | 38 | * @param int $lineno |
39 | - * @param null $tag |
|
39 | + * @param string $tag |
|
40 | 40 | */ |
41 | 41 | public function __construct( |
42 | 42 | \Twig_Node $variable, |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @param \Twig_Node_Expression|null $ignoreContext |
30 | 30 | * @param \Twig_Node $body |
31 | 31 | * @param int $lineno |
32 | - * @param null $tag |
|
32 | + * @param string $tag |
|
33 | 33 | */ |
34 | 34 | public function __construct( |
35 | 35 | \Twig_Node $annotation, |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | private function getRelated(PackageInterface $package): RelatedArticleList |
76 | 76 | { |
77 | - $relatedItemsGroups = $package->getGroups()->filter(function ($group) { |
|
77 | + $relatedItemsGroups = $package->getGroups()->filter(function($group) { |
|
78 | 78 | return GroupInterface::TYPE_RELATED === $group->getType(); |
79 | 79 | }); |
80 | 80 |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | protected function retryDecider() |
166 | 166 | { |
167 | - return function ( |
|
167 | + return function( |
|
168 | 168 | $retries, |
169 | 169 | Request $request, |
170 | 170 | Response $response = null, |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | |
206 | 206 | protected function retryDelay() |
207 | 207 | { |
208 | - return function ($numberOfRetries): int { |
|
208 | + return function($numberOfRetries): int { |
|
209 | 209 | return 1000 * $numberOfRetries; |
210 | 210 | }; |
211 | 211 | } |