@@ -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,12 +64,12 @@ discard block |
||
64 | 64 | |
65 | 65 | $builder->get('filters') |
66 | 66 | ->addModelTransformer(new CallbackTransformer( |
67 | - static function ($value) { |
|
67 | + static function($value) { |
|
68 | 68 | $value = ContentListType::transformArrayKeys($value, 'camel'); |
69 | 69 | |
70 | 70 | return json_encode($value); |
71 | 71 | }, |
72 | - static function ($value) { |
|
72 | + static function($value) { |
|
73 | 73 | if (is_array($value)) { |
74 | 74 | return $value; |
75 | 75 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | )) |
87 | 87 | ->addViewTransformer(new CallbackTransformer( |
88 | - static function ($value) { |
|
88 | + static function($value) { |
|
89 | 89 | if (is_array($value)) { |
90 | 90 | return json_encode(ContentListType::transformArrayKeys($value, 'snake')); |
91 | 91 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | return json_encode([]); |
101 | 101 | }, |
102 | - static function ($value) { |
|
102 | + static function($value) { |
|
103 | 103 | $value = ContentListType::transformArrayKeys(json_decode($value, true), 'camel'); |
104 | 104 | |
105 | 105 | return json_encode($value); |