Completed
Pull Request — master (#454)
by Jonas
03:06
created
src/Offer/OfferCommandHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $matches = [];
110 110
             if (preg_match('/^handle(.+)$/', $method, $matches)) {
111 111
                 $command = $matches[1];
112
-                $classNameMethod = 'get' . $command . 'ClassName';
112
+                $classNameMethod = 'get'.$command.'ClassName';
113 113
 
114 114
                 if (method_exists($this, $classNameMethod)) {
115 115
                     $commandFullClassName = call_user_func(array($this, $classNameMethod));
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     {
305 305
         $offer = $this->load($addLabel->getItemId());
306 306
 
307
-        $labelName = (string) $addLabel->getLabel();
307
+        $labelName = (string)$addLabel->getLabel();
308 308
         $labelVisibility = $addLabel->getLabel()->isVisible();
309 309
 
310 310
         // Load the label read model so we can determine the correct visibility.
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/EventLDProjector.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -366,8 +366,8 @@  discard block
 block discarded – undo
366 366
         // Set the new calendar.
367 367
         $calendarJsonLD = $eventCopied->getCalendar()->toJsonLd();
368 368
 
369
-        $eventJsonLD = (object) array_merge(
370
-            (array) $eventJsonLD,
369
+        $eventJsonLD = (object)array_merge(
370
+            (array)$eventJsonLD,
371 371
             $calendarJsonLD
372 372
         );
373 373
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 
388 388
         // Set available to and from.
389 389
         $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar());
390
-        $eventJsonLD->availableTo = (string) $availableTo;
390
+        $eventJsonLD->availableTo = (string)$availableTo;
391 391
         unset($eventJsonLD->availableFrom);
392 392
 
393 393
         $newDocument = new JsonDocument($eventCopied->getItemId());
@@ -433,8 +433,8 @@  discard block
 block discarded – undo
433 433
         $jsonLD->availableTo = (string)$availableTo;
434 434
 
435 435
         // Remove old theme and event type.
436
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
437
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
436
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
437
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
438 438
         });
439 439
         $jsonLD->terms = array_values($jsonLD->terms);
440 440
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 
463 463
         $jsonLD->location = [
464 464
             '@type' => 'Place',
465
-         ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
465
+         ] + (array)$this->placeJSONLD($locationUpdated->getLocationId()->toNative());
466 466
 
467 467
         return $document->withBody($jsonLD);
468 468
     }
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 
478 478
         $eventLd = $document->getBody();
479 479
 
480
-        $eventLd->location->geo = (object) [
480
+        $eventLd->location->geo = (object)[
481 481
             'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(),
482 482
             'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(),
483 483
         ];
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
     {
532 532
         $eventSlug = $this->slugger->slug($name);
533 533
         return array(
534
-            'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId,
534
+            'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId,
535 535
         );
536 536
     }
537 537
 
Please login to merge, or discard this patch.
src/Search/Sapi3SearchService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $offerRequest = new Request(
82 82
             'GET',
83
-            (string) $offerQuery,
83
+            (string)$offerQuery,
84 84
             $headers
85 85
         );
86 86
 
@@ -89,14 +89,14 @@  discard block
 block discarded – undo
89 89
             ->getBody()
90 90
             ->getContents();
91 91
 
92
-        $this->logger->debug('Send SAPI3 request with the following parameters: ' . json_encode($queryParameters));
93
-        $this->logger->debug('Response data: ' . $searchResponseData);
92
+        $this->logger->debug('Send SAPI3 request with the following parameters: '.json_encode($queryParameters));
93
+        $this->logger->debug('Response data: '.$searchResponseData);
94 94
 
95 95
         $searchResponseData = json_decode($searchResponseData);
96 96
 
97 97
         $offerIds = array_reduce(
98 98
             $searchResponseData->{'member'},
99
-            function (OfferIdentifierCollection $offerIds, $item) {
99
+            function(OfferIdentifierCollection $offerIds, $item) {
100 100
                 return $offerIds->with(
101 101
                     $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'}))
102 102
                 );
Please login to merge, or discard this patch.