@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | |
176 | 176 | $this->setMainLanguage($jsonLD, new Language('nl')); |
177 | 177 | |
178 | - $jsonLD->url = (string) $organizerCreated->getWebsite(); |
|
178 | + $jsonLD->url = (string)$organizerCreated->getWebsite(); |
|
179 | 179 | |
180 | 180 | $jsonLD->name = ['nl' => $organizerCreated->getTitle()]; |
181 | 181 | |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | $document = $this->repository->get($organizerId); |
204 | 204 | |
205 | 205 | $jsonLD = $document->getBody(); |
206 | - $jsonLD->url = (string) $websiteUpdated->getWebsite(); |
|
206 | + $jsonLD->url = (string)$websiteUpdated->getWebsite(); |
|
207 | 207 | |
208 | 208 | $this->repository->save($document->withBody($jsonLD)); |
209 | 209 | } |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels'; |
303 | 303 | |
304 | 304 | $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : []; |
305 | - $label = (string) $labelAdded->getLabel(); |
|
305 | + $label = (string)$labelAdded->getLabel(); |
|
306 | 306 | |
307 | 307 | $labels[] = $label; |
308 | 308 | $jsonLD->{$labelsProperty} = array_unique($labels); |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) { |
327 | 327 | $jsonLD->{$labelsProperty} = array_filter( |
328 | 328 | $jsonLD->{$labelsProperty}, |
329 | - function ($label) use ($labelRemoved) { |
|
329 | + function($label) use ($labelRemoved) { |
|
330 | 330 | return !$labelRemoved->getLabel()->equals( |
331 | 331 | new Label($label) |
332 | 332 | ); |