Completed
Pull Request — master (#270)
by Luc
06:03
created
src/ReadModel/Index/Doctrine/DBALRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
     }
149 149
 
150 150
     /**
151
-     * @param $id
151
+     * @param string $id
152 152
      * @param EntityType $entityType
153 153
      * @return bool
154 154
      */
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
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     ) {
246 246
         $this->saveNewDocument(
247 247
             $eventId,
248
-            function (\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) {
248
+            function(\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) {
249 249
                 $eventLd = $this->projectEventCdbXmlToObject(
250 250
                     $eventLd,
251 251
                     $eventId,
@@ -302,13 +302,13 @@  discard block
 block discarded – undo
302 302
     ) {
303 303
         $this->saveNewDocument(
304 304
             $eventId,
305
-            function (\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) {
305
+            function(\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) {
306 306
                 return $this->projectEventCdbXmlToObject(
307 307
                     $eventLd,
308 308
                     $eventId,
309 309
                     $cdbXmlNamespaceUri,
310 310
                     $cdbXml
311
-                ) ;
311
+                );
312 312
             }
313 313
         );
314 314
     }
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     ) {
420 420
         $this->saveNewDocument(
421 421
             $eventCreated->getEventId(),
422
-            function (\stdClass $jsonLD) use ($eventCreated, $domainMessage) {
422
+            function(\stdClass $jsonLD) use ($eventCreated, $domainMessage) {
423 423
                 $jsonLD->{'@id'} = $this->iriGenerator->iri(
424 424
                     $eventCreated->getEventId()
425 425
                 );
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 
504 504
         // Set available to and from.
505 505
         $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar());
506
-        $eventJsonLD->availableTo = (string) $availableTo;
506
+        $eventJsonLD->availableTo = (string)$availableTo;
507 507
         unset($eventJsonLD->availableFrom);
508 508
 
509 509
         $newDocument = new JsonDocument($eventCopied->getItemId());
@@ -539,8 +539,8 @@  discard block
 block discarded – undo
539 539
         $jsonLD->availableTo = (string)$availableTo;
540 540
 
541 541
         // Remove old theme and event type.
542
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
543
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
542
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
543
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
544 544
         });
545 545
         $jsonLD->terms = array_values($jsonLD->terms);
546 546
 
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
     {
601 601
         $eventSlug = $this->slugger->slug($name);
602 602
         return array(
603
-            'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId,
603
+            'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId,
604 604
         );
605 605
     }
606 606
 
Please login to merge, or discard this patch.
src/ReadModel/Index/Projector.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     }
360 360
 
361 361
     /**
362
-     * @param $dateString
362
+     * @param string $dateString
363 363
      *  A UDB2 formatted date string
364 364
      *
365 365
      * @return DateTimeInterface
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      * Update the index
378 378
      * @param $id
379 379
      * @param EntityType $type
380
-     * @param $userId
380
+     * @param string|null $userId
381 381
      * @param $name
382 382
      * @param $postalCode
383 383
      * @param Domain $owningDomain
Please login to merge, or discard this patch.
src/Event/ReadModel/History/HistoryProjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                 $this->domainMessageDateToNativeDate(
77 77
                     $domainMessage->getRecordedOn()
78 78
                 ),
79
-                new StringLiteral('Event gekopieerd van ' . $eventCopied->getOriginalEventId()),
79
+                new StringLiteral('Event gekopieerd van '.$eventCopied->getOriginalEventId()),
80 80
                 $this->getAuthorFromMetadata($domainMessage->getMetadata())
81 81
             )
82 82
         );
Please login to merge, or discard this patch.