@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $id |
|
151 | + * @param string $id |
|
152 | 152 | * @param EntityType $entityType |
153 | 153 | * @return bool |
154 | 154 | */ |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | ) { |
246 | 246 | $this->saveNewDocument( |
247 | 247 | $eventId, |
248 | - function (\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) { |
|
248 | + function(\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) { |
|
249 | 249 | $eventLd = $this->projectEventCdbXmlToObject( |
250 | 250 | $eventLd, |
251 | 251 | $eventId, |
@@ -302,13 +302,13 @@ discard block |
||
302 | 302 | ) { |
303 | 303 | $this->saveNewDocument( |
304 | 304 | $eventId, |
305 | - function (\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) { |
|
305 | + function(\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) { |
|
306 | 306 | return $this->projectEventCdbXmlToObject( |
307 | 307 | $eventLd, |
308 | 308 | $eventId, |
309 | 309 | $cdbXmlNamespaceUri, |
310 | 310 | $cdbXml |
311 | - ) ; |
|
311 | + ); |
|
312 | 312 | } |
313 | 313 | ); |
314 | 314 | } |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | ) { |
420 | 420 | $this->saveNewDocument( |
421 | 421 | $eventCreated->getEventId(), |
422 | - function (\stdClass $jsonLD) use ($eventCreated, $domainMessage) { |
|
422 | + function(\stdClass $jsonLD) use ($eventCreated, $domainMessage) { |
|
423 | 423 | $jsonLD->{'@id'} = $this->iriGenerator->iri( |
424 | 424 | $eventCreated->getEventId() |
425 | 425 | ); |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | |
504 | 504 | // Set available to and from. |
505 | 505 | $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar()); |
506 | - $eventJsonLD->availableTo = (string) $availableTo; |
|
506 | + $eventJsonLD->availableTo = (string)$availableTo; |
|
507 | 507 | unset($eventJsonLD->availableFrom); |
508 | 508 | |
509 | 509 | $newDocument = new JsonDocument($eventCopied->getItemId()); |
@@ -539,8 +539,8 @@ discard block |
||
539 | 539 | $jsonLD->availableTo = (string)$availableTo; |
540 | 540 | |
541 | 541 | // Remove old theme and event type. |
542 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
543 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
542 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
543 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
544 | 544 | }); |
545 | 545 | $jsonLD->terms = array_values($jsonLD->terms); |
546 | 546 | |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | { |
601 | 601 | $eventSlug = $this->slugger->slug($name); |
602 | 602 | return array( |
603 | - 'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId, |
|
603 | + 'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId, |
|
604 | 604 | ); |
605 | 605 | } |
606 | 606 |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | } |
360 | 360 | |
361 | 361 | /** |
362 | - * @param $dateString |
|
362 | + * @param string $dateString |
|
363 | 363 | * A UDB2 formatted date string |
364 | 364 | * |
365 | 365 | * @return DateTimeInterface |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | * Update the index |
378 | 378 | * @param $id |
379 | 379 | * @param EntityType $type |
380 | - * @param $userId |
|
380 | + * @param string|null $userId |
|
381 | 381 | * @param $name |
382 | 382 | * @param $postalCode |
383 | 383 | * @param Domain $owningDomain |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $this->domainMessageDateToNativeDate( |
77 | 77 | $domainMessage->getRecordedOn() |
78 | 78 | ), |
79 | - new StringLiteral('Event gekopieerd van ' . $eventCopied->getOriginalEventId()), |
|
79 | + new StringLiteral('Event gekopieerd van '.$eventCopied->getOriginalEventId()), |
|
80 | 80 | $this->getAuthorFromMetadata($domainMessage->getMetadata()) |
81 | 81 | ) |
82 | 82 | ); |