Completed
Push — master ( 17f0c0...3bc119 )
by Jonas
02:50 queued 10s
created
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         );
213 213
 
214 214
         $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd();
215
-        $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD);
215
+        $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD);
216 216
 
217 217
         $availableTo = AvailableTo::createFromCalendar($placeCreated->getCalendar());
218 218
         $jsonLD->availableTo = (string)$availableTo;
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
         $jsonLD->availableTo = (string)$availableTo;
286 286
 
287 287
         // Remove old theme and event type.
288
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
289
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
288
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
289
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
290 290
         });
291 291
 
292 292
         $eventType = $majorInfoUpdated->getEventType();
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
             // @replay_i18n
353 353
             // @see https://jira.uitdatabank.be/browse/III-2201
354 354
             $mainLanguageCode = $this->getMainLanguage($jsonLd)->getCode();
355
-            $jsonLd->address = (object) [
355
+            $jsonLd->address = (object)[
356 356
                 $mainLanguageCode => $jsonLd->address,
357 357
             ];
358 358
         }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 
371 371
         $placeLd = $document->getBody();
372 372
 
373
-        $placeLd->geo = (object) [
373
+        $placeLd->geo = (object)[
374 374
             'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(),
375 375
             'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(),
376 376
         ];
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     {
383 383
         $document = $this->loadPlaceDocumentFromRepositoryById($markedAsDuplicate->getPlaceId());
384 384
 
385
-        return $document->apply(function ($placeLd) use ($markedAsDuplicate) {
385
+        return $document->apply(function($placeLd) use ($markedAsDuplicate) {
386 386
             $placeLd->duplicateOf = $this->iriGenerator->iri($markedAsDuplicate->getDuplicateOf());
387 387
             return $placeLd;
388 388
         });
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     {
393 393
         $document = $this->loadPlaceDocumentFromRepositoryById($markedAsCanonical->getPlaceId());
394 394
 
395
-        return $document->apply(function ($placeLd) use ($markedAsCanonical) {
395
+        return $document->apply(function($placeLd) use ($markedAsCanonical) {
396 396
             $placeLd->duplicatedBy[] = $this->iriGenerator->iri($markedAsCanonical->getDuplicatedBy());
397 397
             return $placeLd;
398 398
         });
Please login to merge, or discard this patch.