@@ -73,8 +73,8 @@ |
||
73 | 73 | { |
74 | 74 | return parent::serialize() + array( |
75 | 75 | 'main_language' => $this->getMainLanguage()->getCode(), |
76 | - 'website' => (string) $this->getWebsite(), |
|
77 | - 'title' => (string) $this->getTitle(), |
|
76 | + 'website' => (string)$this->getWebsite(), |
|
77 | + 'title' => (string)$this->getTitle(), |
|
78 | 78 | ); |
79 | 79 | } |
80 | 80 |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | $this->setMainLanguage($jsonLD, $organizerCreated->getMainLanguage()); |
219 | 219 | |
220 | - $jsonLD->url = (string) $organizerCreated->getWebsite(); |
|
220 | + $jsonLD->url = (string)$organizerCreated->getWebsite(); |
|
221 | 221 | |
222 | 222 | $jsonLD->name = [ |
223 | 223 | $this->getMainLanguage($jsonLD)->getCode() => $organizerCreated->getTitle(), |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $document = $this->repository->get($organizerId); |
249 | 249 | |
250 | 250 | $jsonLD = $document->getBody(); |
251 | - $jsonLD->url = (string) $websiteUpdated->getWebsite(); |
|
251 | + $jsonLD->url = (string)$websiteUpdated->getWebsite(); |
|
252 | 252 | |
253 | 253 | return $document->withBody($jsonLD); |
254 | 254 | } |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels'; |
357 | 357 | |
358 | 358 | $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : []; |
359 | - $label = (string) $labelAdded->getLabel(); |
|
359 | + $label = (string)$labelAdded->getLabel(); |
|
360 | 360 | |
361 | 361 | $labels[] = $label; |
362 | 362 | $jsonLD->{$labelsProperty} = array_unique($labels); |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) { |
381 | 381 | $jsonLD->{$labelsProperty} = array_filter( |
382 | 382 | $jsonLD->{$labelsProperty}, |
383 | - function ($label) use ($labelRemoved) { |
|
383 | + function($label) use ($labelRemoved) { |
|
384 | 384 | return !$labelRemoved->getLabel()->equals( |
385 | 385 | new Label($label) |
386 | 386 | ); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | private function applyOrganizerDeleted( |
408 | 408 | OrganizerDeleted $organizerDeleted |
409 | 409 | ) { |
410 | - $document = $this->repository->get($organizerDeleted->getOrganizerId()); |
|
410 | + $document = $this->repository->get($organizerDeleted->getOrganizerId()); |
|
411 | 411 | |
412 | 412 | $jsonLD = $document->getBody(); |
413 | 413 |
@@ -277,7 +277,7 @@ |
||
277 | 277 | protected function applyOrganizerImportedFromUDB2( |
278 | 278 | OrganizerImportedFromUDB2 $organizerImported |
279 | 279 | ) { |
280 | - $this->actorId = (string) $organizerImported->getActorId(); |
|
280 | + $this->actorId = (string)$organizerImported->getActorId(); |
|
281 | 281 | |
282 | 282 | $this->mainLanguage = new Language('nl'); |
283 | 283 |