@@ -92,14 +92,14 @@ |
||
| 92 | 92 | public function serialize() |
| 93 | 93 | { |
| 94 | 94 | return [ |
| 95 | - 'cdbid' => $this->cdbid, |
|
| 96 | - 'name' => $this->name, |
|
| 97 | - 'address' => [ |
|
| 95 | + 'cdbid' => $this->cdbid, |
|
| 96 | + 'name' => $this->name, |
|
| 97 | + 'address' => [ |
|
| 98 | 98 | 'addressCountry' => $this->country, |
| 99 | 99 | 'addressLocality' => $this->locality, |
| 100 | 100 | 'postalCode' => $this->postalcode, |
| 101 | 101 | 'streetAddress' => $this->street, |
| 102 | - ] |
|
| 102 | + ] |
|
| 103 | 103 | ]; |
| 104 | 104 | } |
| 105 | 105 | |
@@ -88,11 +88,11 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | return parent::serialize() + array( |
| 91 | - 'title' => (string) $this->getTitle(), |
|
| 92 | - 'addresses' => $addresses, |
|
| 93 | - 'phones' => $this->getPhones(), |
|
| 94 | - 'emails' => $this->getEmails(), |
|
| 95 | - 'urls' => $this->getUrls(), |
|
| 91 | + 'title' => (string) $this->getTitle(), |
|
| 92 | + 'addresses' => $addresses, |
|
| 93 | + 'phones' => $this->getPhones(), |
|
| 94 | + 'emails' => $this->getEmails(), |
|
| 95 | + 'urls' => $this->getUrls(), |
|
| 96 | 96 | ); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | return parent::serialize() + array( |
| 91 | - 'title' => (string) $this->getTitle(), |
|
| 91 | + 'title' => (string)$this->getTitle(), |
|
| 92 | 92 | 'addresses' => $addresses, |
| 93 | 93 | 'phones' => $this->getPhones(), |
| 94 | 94 | 'emails' => $this->getEmails(), |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function serialize() |
| 34 | 34 | { |
| 35 | 35 | return array( |
| 36 | - 'organizer_id' => $this->organizerId, |
|
| 36 | + 'organizer_id' => $this->organizerId, |
|
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function serialize() |
| 34 | 34 | { |
| 35 | 35 | return parent::serialize() + array( |
| 36 | - 'organizerId' => $this->organizerId, |
|
| 36 | + 'organizerId' => $this->organizerId, |
|
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $theme = $this->getTheme()->serialize(); |
| 114 | 114 | } |
| 115 | 115 | return parent::serialize() + array( |
| 116 | - 'title' => (string) $this->getTitle(), |
|
| 116 | + 'title' => (string)$this->getTitle(), |
|
| 117 | 117 | 'event_type' => $this->getEventType()->serialize(), |
| 118 | 118 | 'theme' => $theme, |
| 119 | 119 | 'address' => $this->getAddress()->serialize(), |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Contains CultuurNet\UDB3\Place\PlaceEvent. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Contains CultuurNet\UDB3\Place\PlaceEvent. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | namespace CultuurNet\UDB3\Place; |
| 8 | 8 | |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | $placeLd = $document->getBody(); |
| 296 | 296 | |
| 297 | 297 | $placeLd->organizer = array( |
| 298 | - '@type' => 'Organizer', |
|
| 298 | + '@type' => 'Organizer', |
|
| 299 | 299 | ) + (array)$this->organizerJSONLD($organizerUpdated->getOrganizerId()); |
| 300 | 300 | |
| 301 | 301 | $this->repository->save($document->withBody($placeLd)); |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $jsonLD->address = $placeCreated->getAddress()->toJsonLd(); |
| 151 | 151 | |
| 152 | 152 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); |
| 153 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
| 153 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
| 154 | 154 | |
| 155 | 155 | $eventType = $placeCreated->getEventType(); |
| 156 | 156 | $jsonLD->terms = [ |
@@ -197,11 +197,11 @@ discard block |
||
| 197 | 197 | $jsonLD->address = $majorInfoUpdated->getAddress()->toJsonLd(); |
| 198 | 198 | |
| 199 | 199 | $calendarJsonLD = $majorInfoUpdated->getCalendar()->toJsonLd(); |
| 200 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
| 200 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
| 201 | 201 | |
| 202 | 202 | // Remove old theme and event type. |
| 203 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
| 204 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 203 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
| 204 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 205 | 205 | }); |
| 206 | 206 | |
| 207 | 207 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | // Remove all old facilities + get numeric keys. |
| 348 | 348 | $terms = array_values(array_filter( |
| 349 | 349 | $terms, |
| 350 | - function ($term) { |
|
| 350 | + function($term) { |
|
| 351 | 351 | return $term->domain !== Facility::DOMAIN; |
| 352 | 352 | } |
| 353 | 353 | )); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Place\ReadModel\Relations\Doctrine; |
| 7 | 7 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | public function removeRelations($eventId) |
| 73 | 73 | { |
| 74 | - // @todo implement this for non-drupal. |
|
| 74 | + // @todo implement this for non-drupal. |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | ]; |
| 49 | 49 | |
| 50 | 50 | if ($this->id) { |
| 51 | - $serializedSavedSearch['id'] = (string) $this->id; |
|
| 51 | + $serializedSavedSearch['id'] = (string)$this->id; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | return $serializedSavedSearch; |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Variations; |
| 7 | 7 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * @param String $name |
| 30 | 30 | * @param QueryString $query |
| 31 | - * @param String $id |
|
| 31 | + * @param string $id |
|
| 32 | 32 | */ |
| 33 | 33 | public function __construct(String $name, QueryString $query, String $id = null) |
| 34 | 34 | { |