@@ -129,7 +129,7 @@ |
||
| 129 | 129 | |
| 130 | 130 | // Get all physical locations from the list of addresses. |
| 131 | 131 | $addresses = array_map( |
| 132 | - function (CultureFeed_Cdb_Data_Address $address) { |
|
| 132 | + function(CultureFeed_Cdb_Data_Address $address) { |
|
| 133 | 133 | return $address->getPhysicalAddress(); |
| 134 | 134 | }, |
| 135 | 135 | $contactInfo->getAddresses() |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $jsonLD->address = $placeCreated->getAddress()->toJsonLd(); |
| 185 | 185 | |
| 186 | 186 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); |
| 187 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
| 187 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
| 188 | 188 | |
| 189 | 189 | $availableTo = AvailableTo::createFromCalendar($placeCreated->getCalendar()); |
| 190 | 190 | $jsonLD->availableTo = (string)$availableTo; |
@@ -246,8 +246,8 @@ discard block |
||
| 246 | 246 | $jsonLD->availableTo = (string)$availableTo; |
| 247 | 247 | |
| 248 | 248 | // Remove old theme and event type. |
| 249 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
| 250 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 249 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
| 250 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 251 | 251 | }); |
| 252 | 252 | |
| 253 | 253 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | // Remove all old facilities + get numeric keys. |
| 280 | 280 | $terms = array_values(array_filter( |
| 281 | 281 | $terms, |
| 282 | - function ($term) { |
|
| 282 | + function($term) { |
|
| 283 | 283 | return $term->domain !== Facility::DOMAIN; |
| 284 | 284 | } |
| 285 | 285 | )); |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | |
| 304 | 304 | $placeLd = $document->getBody(); |
| 305 | 305 | |
| 306 | - $placeLd->geo = (object) [ |
|
| 306 | + $placeLd->geo = (object)[ |
|
| 307 | 307 | 'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(), |
| 308 | 308 | 'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(), |
| 309 | 309 | ]; |
@@ -28,12 +28,12 @@ |
||
| 28 | 28 | |
| 29 | 29 | if (count($missingFields) > 0) { |
| 30 | 30 | $keys = implode(', ', $missingFields); |
| 31 | - throw new \InvalidArgumentException('The given cdbxml address is missing a ' . $keys); |
|
| 31 | + throw new \InvalidArgumentException('The given cdbxml address is missing a '.$keys); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | return new Address( |
| 36 | - new Street($cdbAddress->getStreet() . ' ' . $cdbAddress->getHouseNumber()), |
|
| 36 | + new Street($cdbAddress->getStreet().' '.$cdbAddress->getHouseNumber()), |
|
| 37 | 37 | new PostalCode($cdbAddress->getZip()), |
| 38 | 38 | new Locality($cdbAddress->getCity()), |
| 39 | 39 | Country::fromNative($cdbAddress->getCountry()) |