@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | $items = $package->getItems()->filter( |
| 46 | - static function ($entry) use ($guids) { |
|
| 46 | + static function($entry) use ($guids) { |
|
| 47 | 47 | return !in_array($entry->getGuid(), $guids, true); |
| 48 | 48 | } |
| 49 | 49 | ); |
@@ -120,6 +120,9 @@ |
||
| 120 | 120 | return ConsumerInterface::MSG_ACK; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @param ImageInterface $image |
|
| 125 | + */ |
|
| 123 | 126 | private function markArticlesMediaAsUpdated($image) |
| 124 | 127 | { |
| 125 | 128 | /** @var ImageRenditionInterface[] $articleMedia */ |
@@ -228,6 +228,9 @@ |
||
| 228 | 228 | ]); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | + /** |
|
| 232 | + * @param null|string $token |
|
| 233 | + */ |
|
| 231 | 234 | private function generateOrGetApiKey(UserInterface $user, $token): ?ApiKeyInterface |
| 232 | 235 | { |
| 233 | 236 | $apiKey = null; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $builder->get('filters') |
| 66 | 66 | ->addModelTransformer(new CallbackTransformer( |
| 67 | - static function ($value) { |
|
| 67 | + static function($value) { |
|
| 68 | 68 | if (is_array($value)) { |
| 69 | 69 | $value = self::transformArrayKeys($value, 'camel'); |
| 70 | 70 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | return json_encode([]); |
| 75 | 75 | }, |
| 76 | - static function ($value) { |
|
| 76 | + static function($value) { |
|
| 77 | 77 | if (is_array($value)) { |
| 78 | 78 | return $value; |
| 79 | 79 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | )) |
| 91 | 91 | ->addViewTransformer(new CallbackTransformer( |
| 92 | - static function ($value) { |
|
| 92 | + static function($value) { |
|
| 93 | 93 | if (is_array($value)) { |
| 94 | 94 | return json_encode(self::transformArrayKeys($value, 'snake')); |
| 95 | 95 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | return json_encode([]); |
| 105 | 105 | }, |
| 106 | - static function ($value) { |
|
| 106 | + static function($value) { |
|
| 107 | 107 | $value = json_decode($value, true); |
| 108 | 108 | if (is_array($value)) { |
| 109 | 109 | $value = self::transformArrayKeys($value, 'camel'); |