@@ -86,7 +86,7 @@ |
||
86 | 86 | public function serialize() |
87 | 87 | { |
88 | 88 | $serialized = array( |
89 | - 'eventId' => (string) $this->eventId, |
|
89 | + 'eventId' => (string)$this->eventId, |
|
90 | 90 | 'language' => $this->language->getCode(), |
91 | 91 | 'collaborationData' => $this->collaborationData->serialize(), |
92 | 92 | ); |
@@ -268,15 +268,15 @@ |
||
268 | 268 | public function serialize() |
269 | 269 | { |
270 | 270 | $data = [ |
271 | - 'subBrand' => (string) $this->subBrand, |
|
272 | - 'plainText' => (string) $this->plainText, |
|
273 | - 'title' => (string) $this->title, |
|
274 | - 'text' => (string) $this->text, |
|
275 | - 'copyright' => (string) $this->copyright, |
|
276 | - 'keyword' => (string) $this->keyword, |
|
277 | - 'image' => (string) $this->image, |
|
278 | - 'article' => (string) $this->article, |
|
279 | - 'link' => (string) $this->link, |
|
271 | + 'subBrand' => (string)$this->subBrand, |
|
272 | + 'plainText' => (string)$this->plainText, |
|
273 | + 'title' => (string)$this->title, |
|
274 | + 'text' => (string)$this->text, |
|
275 | + 'copyright' => (string)$this->copyright, |
|
276 | + 'keyword' => (string)$this->keyword, |
|
277 | + 'image' => (string)$this->image, |
|
278 | + 'article' => (string)$this->article, |
|
279 | + 'link' => (string)$this->link, |
|
280 | 280 | ]; |
281 | 281 | |
282 | 282 | return array_filter($data, 'strlen'); |
@@ -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 | )); |