| @@ -273,7 +273,7 @@ discard block | ||
| 273 | 273 |      ) { | 
| 274 | 274 | $this->saveNewDocument( | 
| 275 | 275 | $eventId, | 
| 276 | -            function (\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) { | |
| 276 | +            function(\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) { | |
| 277 | 277 | $eventLd = $this->projectEventCdbXmlToObject( | 
| 278 | 278 | $eventLd, | 
| 279 | 279 | $eventId, | 
| @@ -330,13 +330,13 @@ discard block | ||
| 330 | 330 |      ) { | 
| 331 | 331 | $this->saveNewDocument( | 
| 332 | 332 | $eventId, | 
| 333 | -            function (\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) { | |
| 333 | +            function(\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) { | |
| 334 | 334 | return $this->projectEventCdbXmlToObject( | 
| 335 | 335 | $eventLd, | 
| 336 | 336 | $eventId, | 
| 337 | 337 | $cdbXmlNamespaceUri, | 
| 338 | 338 | $cdbXml | 
| 339 | - ) ; | |
| 339 | + ); | |
| 340 | 340 | } | 
| 341 | 341 | ); | 
| 342 | 342 | } | 
| @@ -412,7 +412,7 @@ discard block | ||
| 412 | 412 |      ) { | 
| 413 | 413 | $this->saveNewDocument( | 
| 414 | 414 | $eventCreated->getEventId(), | 
| 415 | -            function (\stdClass $jsonLD) use ($eventCreated, $domainMessage) { | |
| 415 | +            function(\stdClass $jsonLD) use ($eventCreated, $domainMessage) { | |
| 416 | 416 |                  $jsonLD->{'@id'} = $this->iriGenerator->iri( | 
| 417 | 417 | $eventCreated->getEventId() | 
| 418 | 418 | ); | 
| @@ -486,8 +486,8 @@ discard block | ||
| 486 | 486 | ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid()); | 
| 487 | 487 | |
| 488 | 488 | // Remove old theme and event type. | 
| 489 | -        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { | |
| 490 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; | |
| 489 | +        $jsonLD->terms = array_filter($jsonLD->terms, function($term) { | |
| 490 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; | |
| 491 | 491 | }); | 
| 492 | 492 | |
| 493 | 493 | $eventType = $majorInfoUpdated->getEventType(); | 
| @@ -812,7 +812,7 @@ discard block | ||
| 812 | 812 | return; | 
| 813 | 813 | } | 
| 814 | 814 | |
| 815 | - $imageId = (string) $imageRemoved->getImage()->getMediaObjectId(); | |
| 815 | + $imageId = (string)$imageRemoved->getImage()->getMediaObjectId(); | |
| 816 | 816 | |
| 817 | 817 | /** | 
| 818 | 818 | * Matches any object that is not the removed image. | 
| @@ -823,7 +823,7 @@ discard block | ||
| 823 | 823 | * @return bool | 
| 824 | 824 | * Returns true when the media object does not match the image to remove. | 
| 825 | 825 | */ | 
| 826 | -        $shouldNotBeRemoved = function ($mediaObject) use ($imageId) { | |
| 826 | +        $shouldNotBeRemoved = function($mediaObject) use ($imageId) { | |
| 827 | 827 |              $containsId = !!strpos($mediaObject->{'@id'}, $imageId); | 
| 828 | 828 | return !$containsId; | 
| 829 | 829 | }; | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | */ | 
| 24 | 24 | public static function calendar(Calendar $calendar) | 
| 25 | 25 |      { | 
| 26 | -        $offerCalenderUpdate = function ($body) use ($calendar) { | |
| 26 | +        $offerCalenderUpdate = function($body) use ($calendar) { | |
| 27 | 27 | // Purge any existing calendar data | 
| 28 | 28 | unset( | 
| 29 | 29 | $body->calendarType, | 
| @@ -33,8 +33,8 @@ discard block | ||
| 33 | 33 | $body->openingHours | 
| 34 | 34 | ); | 
| 35 | 35 | |
| 36 | - return (object) array_merge( | |
| 37 | - (array) $body, | |
| 36 | + return (object)array_merge( | |
| 37 | + (array)$body, | |
| 38 | 38 | $calendar->toJsonLd() | 
| 39 | 39 | ); | 
| 40 | 40 | }; | 
| @@ -160,7 +160,7 @@ discard block | ||
| 160 | 160 | $jsonLD->address = $placeCreated->getAddress()->toJsonLd(); | 
| 161 | 161 | |
| 162 | 162 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); | 
| 163 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); | |
| 163 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); | |
| 164 | 164 | |
| 165 | 165 | $eventType = $placeCreated->getEventType(); | 
| 166 | 166 | $jsonLD->terms = [ | 
| @@ -214,8 +214,8 @@ discard block | ||
| 214 | 214 | $jsonLD->address = $majorInfoUpdated->getAddress()->toJsonLd(); | 
| 215 | 215 | |
| 216 | 216 | // Remove old theme and event type. | 
| 217 | -        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { | |
| 218 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; | |
| 217 | +        $jsonLD->terms = array_filter($jsonLD->terms, function($term) { | |
| 218 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; | |
| 219 | 219 | }); | 
| 220 | 220 | |
| 221 | 221 | $eventType = $majorInfoUpdated->getEventType(); | 
| @@ -361,7 +361,7 @@ discard block | ||
| 361 | 361 | // Remove all old facilities + get numeric keys. | 
| 362 | 362 | $terms = array_values(array_filter( | 
| 363 | 363 | $terms, | 
| 364 | -            function ($term) { | |
| 364 | +            function($term) { | |
| 365 | 365 | return $term->domain !== Facility::DOMAIN; | 
| 366 | 366 | } | 
| 367 | 367 | )); |