@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param string $about |
32 | + * @return void |
|
32 | 33 | */ |
33 | 34 | public function setAbout(string $about); |
34 | 35 | |
@@ -39,6 +40,7 @@ discard block |
||
39 | 40 | |
40 | 41 | /** |
41 | 42 | * @param string $firstName |
43 | + * @return void |
|
42 | 44 | */ |
43 | 45 | public function setFirstName(string $firstName); |
44 | 46 | |
@@ -49,6 +51,7 @@ discard block |
||
49 | 51 | |
50 | 52 | /** |
51 | 53 | * @param string $lastName |
54 | + * @return void |
|
52 | 55 | */ |
53 | 56 | public function setLastName(string $lastName); |
54 | 57 | |
@@ -59,6 +62,7 @@ discard block |
||
59 | 62 | |
60 | 63 | /** |
61 | 64 | * @param string $externalId |
65 | + * @return void |
|
62 | 66 | */ |
63 | 67 | public function setExternalId(string $externalId); |
64 | 68 | } |
@@ -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'); |