Completed
Push — master ( 65255d...9dfb0b )
by Luc
07:57 queued 02:17
created
src/Event/ReadModel/JSONLD/EventLDProjector.php 1 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.
src/Offer/Events/AbstractTitleUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function serialize()
37 37
     {
38 38
         return parent::serialize() + array(
39
-            'title' => (string) $this->title,
39
+            'title' => (string)$this->title,
40 40
         );
41 41
     }
42 42
 
Please login to merge, or discard this patch.
src/Search/Sapi3SearchService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function search($query, $limit = 30, $start = 0, $sort = null)
45 45
     {
46
-        $queryParameters = 'q=' . urlencode($query) . '&start=' . $start . '&limit=' . $limit;
46
+        $queryParameters = 'q='.urlencode($query).'&start='.$start.'&limit='.$limit;
47 47
 
48 48
         $offerQuery = $this->searchLocation->withQuery($queryParameters);
49 49
 
50 50
         $offerRequest = new Request(
51 51
             'GET',
52
-            (string) $offerQuery
52
+            (string)$offerQuery
53 53
         );
54 54
 
55 55
         $searchResponseData = json_decode($this->httpClient
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $offerIds = array_reduce(
61 61
             $searchResponseData->{'member'},
62
-            function (OfferIdentifierCollection $offerIds, $item) {
62
+            function(OfferIdentifierCollection $offerIds, $item) {
63 63
                 return $offerIds->with(
64 64
                     $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'}))
65 65
                 );
Please login to merge, or discard this patch.