@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | - * @param $dateString |
|
| 184 | + * @param string $dateString |
|
| 185 | 185 | * @return \DateTime |
| 186 | 186 | */ |
| 187 | 187 | protected function dateFromUdb2DateString($dateString) |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | 197 | * @param Metadata $metadata |
| 198 | - * @return String|null |
|
| 198 | + * @return StringLiteral|null |
|
| 199 | 199 | */ |
| 200 | 200 | protected function getAuthorFromMetadata(Metadata $metadata) |
| 201 | 201 | { |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | /** |
| 210 | 210 | * @param Metadata $metadata |
| 211 | - * @return String|null |
|
| 211 | + * @return StringLiteral|null |
|
| 212 | 212 | */ |
| 213 | 213 | protected function getConsumerFromMetadata(Metadata $metadata) |
| 214 | 214 | { |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | |
| 237 | 237 | /** |
| 238 | 238 | * @param string $eventId |
| 239 | - * @param Log[]|Log $logs |
|
| 239 | + * @param Log $logs |
|
| 240 | 240 | */ |
| 241 | 241 | protected function writeHistory($eventId, $logs) |
| 242 | 242 | { |
@@ -258,6 +258,9 @@ discard block |
||
| 258 | 258 | ); |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | + /** |
|
| 262 | + * @return null|string |
|
| 263 | + */ |
|
| 261 | 264 | protected function getApiKeyFromMetadata(Metadata $metadata): ?string |
| 262 | 265 | { |
| 263 | 266 | $properties = $metadata->serialize(); |
@@ -269,6 +272,9 @@ discard block |
||
| 269 | 272 | return null; |
| 270 | 273 | } |
| 271 | 274 | |
| 275 | + /** |
|
| 276 | + * @return null|string |
|
| 277 | + */ |
|
| 272 | 278 | protected function getApiFromMetadata(Metadata $metadata): ?string |
| 273 | 279 | { |
| 274 | 280 | $properties = $metadata->serialize(); |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | $this->domainMessageDateToNativeDate( |
| 106 | 106 | $domainMessage->getRecordedOn() |
| 107 | 107 | ), |
| 108 | - new StringLiteral('Event gekopieerd van ' . $eventCopied->getOriginalEventId()), |
|
| 108 | + new StringLiteral('Event gekopieerd van '.$eventCopied->getOriginalEventId()), |
|
| 109 | 109 | $this->getAuthorFromMetadata($domainMessage->getMetadata()), |
| 110 | 110 | $this->getApiKeyFromMetadata($domainMessage->getMetadata()), |
| 111 | 111 | $this->getApiFromMetadata($domainMessage->getMetadata()) |