@@ -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 |