@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function serialize() |
| 39 | 39 | { |
| 40 | 40 | return parent::serialize() + [ |
| 41 | - 'website' => (string) $this->getWebsite() |
|
| 41 | + 'website' => (string)$this->getWebsite() |
|
| 42 | 42 | ]; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $organizerCreated->getOrganizerId() |
| 135 | 135 | ); |
| 136 | 136 | |
| 137 | - $jsonLD->url = (string) $organizerCreated->getWebsite(); |
|
| 137 | + $jsonLD->url = (string)$organizerCreated->getWebsite(); |
|
| 138 | 138 | $jsonLD->name = $organizerCreated->getTitle(); |
| 139 | 139 | |
| 140 | 140 | $recordedOn = $domainMessage->getRecordedOn()->toString(); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $document = $this->repository->get($organizerId); |
| 162 | 162 | |
| 163 | 163 | $jsonLD = $document->getBody(); |
| 164 | - $jsonLD->url = (string) $websiteUpdated->getWebsite(); |
|
| 164 | + $jsonLD->url = (string)$websiteUpdated->getWebsite(); |
|
| 165 | 165 | |
| 166 | 166 | $this->repository->save($document->withBody($jsonLD)); |
| 167 | 167 | } |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels'; |
| 258 | 258 | |
| 259 | 259 | $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : []; |
| 260 | - $label = (string) $labelAdded->getLabel(); |
|
| 260 | + $label = (string)$labelAdded->getLabel(); |
|
| 261 | 261 | |
| 262 | 262 | $labels[] = $label; |
| 263 | 263 | $jsonLD->{$labelsProperty} = array_unique($labels); |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) { |
| 282 | 282 | $jsonLD->{$labelsProperty} = array_filter( |
| 283 | 283 | $jsonLD->{$labelsProperty}, |
| 284 | - function ($label) use ($labelRemoved) { |
|
| 284 | + function($label) use ($labelRemoved) { |
|
| 285 | 285 | return !$labelRemoved->getLabel()->equals( |
| 286 | 286 | new Label($label) |
| 287 | 287 | ); |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | |
| 29 | 29 | /* @var OrganizerCreatedWithUniqueWebsite|WebsiteUpdated $payload */ |
| 30 | 30 | $payload = $domainMessage->getPayload(); |
| 31 | - return new StringLiteral((string) $payload->getWebsite()); |
|
| 31 | + return new StringLiteral((string)$payload->getWebsite()); |
|
| 32 | 32 | } |
| 33 | 33 | } |