Completed
Pull Request — master (#118)
by Kristof
10:09
created
src/Event/EventLDProjector.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     /**
370 370
      * Return the media of an event if it already exists.
371 371
      *
372
-     * @param $eventId
372
+     * @param string $eventId
373 373
      *  The id of the event.
374 374
      *
375 375
      * @return array
@@ -867,6 +867,9 @@  discard block
 block discarded – undo
867 867
         return $document;
868 868
     }
869 869
 
870
+    /**
871
+     * @param string $eventId
872
+     */
870 873
     private function generateSameAs($eventId, $name)
871 874
     {
872 875
         $eventSlug = $this->slugger->slug($name);
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Event;
7 7
 
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 
496 496
         $jsonLD->name->nl = $majorInfoUpdated->getTitle();
497 497
         $jsonLD->location = array(
498
-          '@type' => 'Place',
498
+            '@type' => 'Place',
499 499
         ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid());
500 500
 
501 501
         $calendarJsonLD = $majorInfoUpdated->getCalendar()->toJsonLd();
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
         $eventLd = $document->getBody();
743 743
 
744 744
         $eventLd->organizer = array(
745
-          '@type' => 'Organizer',
745
+            '@type' => 'Organizer',
746 746
         ) + (array)$this->organizerJSONLD($organizerUpdated->getOrganizerId());
747 747
 
748 748
         $this->repository->save($document->withBody($eventLd));
Please login to merge, or discard this patch.