Completed
Pull Request — master (#340)
by Luc
04:43
created
src/Event/ReadModel/JSONLD/EventLDProjector.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -522,8 +522,8 @@  discard block
 block discarded – undo
522 522
         $eventJsonLD->{'@id'} = $this->iriGenerator->iri($eventCopied->getItemId());
523 523
 
524 524
         // Set the new calendar.
525
-        $eventJsonLD = (object) array_merge(
526
-            (array) $eventJsonLD,
525
+        $eventJsonLD = (object)array_merge(
526
+            (array)$eventJsonLD,
527 527
             $eventCopied->getCalendar()->toJsonLd()
528 528
         );
529 529
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
 
537 537
         // Set available to and from.
538 538
         $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar());
539
-        $eventJsonLD->availableTo = (string) $availableTo;
539
+        $eventJsonLD->availableTo = (string)$availableTo;
540 540
         unset($eventJsonLD->availableFrom);
541 541
 
542 542
         $newDocument = new JsonDocument($eventCopied->getItemId());
@@ -581,8 +581,8 @@  discard block
 block discarded – undo
581 581
         $jsonLD->availableTo = (string)$availableTo;
582 582
 
583 583
         // Remove old theme and event type.
584
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
585
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
584
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
585
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
586 586
         });
587 587
         $jsonLD->terms = array_values($jsonLD->terms);
588 588
 
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
 
611 611
         $jsonLD->location = [
612 612
             '@type' => 'Place',
613
-         ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
613
+         ] + (array)$this->placeJSONLD($locationUpdated->getLocationId()->toNative());
614 614
 
615 615
         return $document->withBody($jsonLD);
616 616
     }
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 
626 626
         $placeLd = $document->getBody();
627 627
 
628
-        $placeLd->geo = (object) [
628
+        $placeLd->geo = (object)[
629 629
             'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(),
630 630
             'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(),
631 631
         ];
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
     {
680 680
         $eventSlug = $this->slugger->slug($name);
681 681
         return array(
682
-            'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId,
682
+            'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId,
683 683
         );
684 684
     }
685 685
 
Please login to merge, or discard this patch.