Completed
Push — master ( c476c7...501e4d )
by
unknown
05:07
created
src/Event/ReadModel/JSONLD/EventLDProjector.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 
560 560
         $jsonLD->name->nl = $majorInfoUpdated->getTitle();
561 561
         $jsonLD->location = array(
562
-          '@type' => 'Place',
562
+            '@type' => 'Place',
563 563
         ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid());
564 564
 
565 565
         $availableTo = AvailableTo::createFromCalendar($majorInfoUpdated->getCalendar());
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 
596 596
         $jsonLD->location = [
597 597
             '@type' => 'Place',
598
-         ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
598
+            ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
599 599
 
600 600
         return $document->withBody($jsonLD);
601 601
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -512,8 +512,8 @@  discard block
 block discarded – undo
512 512
         $eventJsonLD->{'@id'} = $this->iriGenerator->iri($eventCopied->getItemId());
513 513
 
514 514
         // Set the new calendar.
515
-        $eventJsonLD = (object) array_merge(
516
-            (array) $eventJsonLD,
515
+        $eventJsonLD = (object)array_merge(
516
+            (array)$eventJsonLD,
517 517
             $eventCopied->getCalendar()->toJsonLd()
518 518
         );
519 519
 
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 
527 527
         // Set available to and from.
528 528
         $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar());
529
-        $eventJsonLD->availableTo = (string) $availableTo;
529
+        $eventJsonLD->availableTo = (string)$availableTo;
530 530
         unset($eventJsonLD->availableFrom);
531 531
 
532 532
         $newDocument = new JsonDocument($eventCopied->getItemId());
@@ -566,8 +566,8 @@  discard block
 block discarded – undo
566 566
         $jsonLD->availableTo = (string)$availableTo;
567 567
 
568 568
         // Remove old theme and event type.
569
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
570
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
569
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
570
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
571 571
         });
572 572
         $jsonLD->terms = array_values($jsonLD->terms);
573 573
 
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 
596 596
         $jsonLD->location = [
597 597
             '@type' => 'Place',
598
-         ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
598
+         ] + (array)$this->placeJSONLD($locationUpdated->getLocationId()->toNative());
599 599
 
600 600
         return $document->withBody($jsonLD);
601 601
     }
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     {
647 647
         $eventSlug = $this->slugger->slug($name);
648 648
         return array(
649
-            'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId,
649
+            'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId,
650 650
         );
651 651
     }
652 652
 
Please login to merge, or discard this patch.