Completed
Push — master ( 168d8e...3735b4 )
by Kristof
10:48 queued 05:04
created
src/BackwardsCompatiblePayloadSerializerFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         $payloadManipulatingSerializer->manipulateEventsOfClass(
43 43
             'CultuurNet\UDB3\UsedKeywordsMemory\Created',
44
-            function (array $serializedObject) {
44
+            function(array $serializedObject) {
45 45
                 $serializedObject['class'] = UsedLabelsMemoryCreated::class;
46 46
 
47 47
                 return $serializedObject;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $payloadManipulatingSerializer->manipulateEventsOfClass(
52 52
             'CultuurNet\UDB3\UsedKeywordsMemory\KeywordUsed',
53
-            function (array $serializedObject) {
53
+            function(array $serializedObject) {
54 54
                 $serializedObject['class'] = LabelUsed::class;
55 55
 
56 56
                 $serializedObject['payload']['label'] = $serializedObject['payload']['keyword'];
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $payloadManipulatingSerializer->manipulateEventsOfClass(
64 64
             'CultuurNet\UDB3\Event\EventWasTagged',
65
-            function (array $serializedObject) {
65
+            function(array $serializedObject) {
66 66
                 $serializedObject['class'] = EventWasLabelled::class;
67 67
 
68 68
                 $serializedObject['payload']['label'] = $serializedObject['payload']['keyword'];
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $payloadManipulatingSerializer->manipulateEventsOfClass(
76 76
             'CultuurNet\UDB3\Event\TagErased',
77
-            function (array $serializedObject) {
77
+            function(array $serializedObject) {
78 78
                 $serializedObject['class'] = Event\Events\Unlabelled::class;
79 79
 
80 80
                 $serializedObject['payload']['label'] = $serializedObject['payload']['keyword'];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $payloadManipulatingSerializer->manipulateEventsOfClass(
88 88
             'CultuurNet\UDB3\Event\EventImportedFromUDB2',
89
-            function (array $serializedObject) {
89
+            function(array $serializedObject) {
90 90
                 $serializedObject['class'] = EventImportedFromUDB2::class;
91 91
 
92 92
                 return $serializedObject;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $payloadManipulatingSerializer->manipulateEventsOfClass(
97 97
             'CultuurNet\UDB3\Event\Events\LabelsApplied',
98
-            function (array $serializedObject) {
98
+            function(array $serializedObject) {
99 99
                 $serializedObject['class'] = LabelsMerged::class;
100 100
 
101 101
                 $keywordsString = $serializedObject['payload']['keywords_string'];
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
                 }
118 118
 
119 119
                 $labels = array_map(
120
-                    function (Label $label) {
120
+                    function(Label $label) {
121 121
                         return [
122
-                            'text' => (string) $label,
122
+                            'text' => (string)$label,
123 123
                             'visible' => $label->isVisible(),
124 124
                         ];
125 125
                     },
Please login to merge, or discard this patch.
src/CommandHandling/Udb3CommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         $method = $this->getHandleMethod($command);
25 25
 
26
-        if (! method_exists($this, $method)) {
26
+        if (!method_exists($this, $method)) {
27 27
             return;
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Event/EventLDProjector.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         ) + (array)$this->placeJSONLD($eventCreated->getLocation()->getCdbid());
356 356
 
357 357
         $calendarJsonLD = $eventCreated->getCalendar()->toJsonLd();
358
-        $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD);
358
+        $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD);
359 359
 
360 360
         // Same as.
361 361
         $jsonLD->sameAs = $this->generateSameAs(
@@ -413,11 +413,11 @@  discard block
 block discarded – undo
413 413
         ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid());
414 414
 
415 415
         $calendarJsonLD = $majorInfoUpdated->getCalendar()->toJsonLd();
416
-        $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD);
416
+        $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD);
417 417
 
418 418
         // Remove old theme and event type.
419
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
420
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
419
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
420
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
421 421
         });
422 422
 
423 423
         $eventType = $majorInfoUpdated->getEventType();
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
         $eventLd = $document->getBody();
478 478
 
479 479
         $labels = isset($eventLd->labels) ? $eventLd->labels : [];
480
-        $label = (string) $eventWasLabelled->getLabel();
480
+        $label = (string)$eventWasLabelled->getLabel();
481 481
 
482 482
         $labels[] = $label;
483 483
         $eventLd->labels = array_unique($labels);
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
         if (is_array($eventLd->labels)) {
495 495
             $eventLd->labels = array_filter(
496 496
                 $eventLd->labels,
497
-                function ($label) use ($unlabelled) {
497
+                function($label) use ($unlabelled) {
498 498
                     return !$unlabelled->getLabel()->equals(
499 499
                         new Label($label)
500 500
                     );
Please login to merge, or discard this patch.
src/Event/Events/LabelsMerged.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public static function deserialize(array $data)
58 58
     {
59 59
         $labels = array_map(
60
-            function ($item) {
60
+            function($item) {
61 61
                 return new Label(
62 62
                     $item['text'],
63 63
                     $item['visible']
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
     public function serialize()
79 79
     {
80 80
         $labels = array_map(
81
-            function (Label $label) {
81
+            function(Label $label) {
82 82
                 return [
83
-                    'text' => (string) $label,
83
+                    'text' => (string)$label,
84 84
                     'visible' => $label->isVisible(),
85 85
                 ];
86 86
             },
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
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
         $labels = $labelsMerged->getLabels()->toStrings();
216 216
         // Quote labels.
217 217
         $quotedLabels = array_map(
218
-            function ($label) {
218
+            function($label) {
219 219
                 return "'{$label}'";
220 220
             },
221 221
             $labels
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/CdbXMLImporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     {
168 168
         $labels = array_filter(
169 169
             array_values($event->getKeywords()),
170
-            function ($keyword) {
170
+            function($keyword) {
171 171
                 return (strlen(trim($keyword)) > 0);
172 172
             }
173 173
         );
Please login to merge, or discard this patch.
src/Event/ReadModel/Relations/Doctrine/DBALRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function removeOrganizer($eventId)
43 43
     {
44
-        $transaction = function ($connection) use ($eventId) {
44
+        $transaction = function($connection) use ($eventId) {
45 45
             if ($this->eventHasRelations($connection, $eventId)) {
46 46
                 $this->updateEventOrganizerRelation($connection, $eventId, null);
47 47
             }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function storeOrganizer($eventId, $organizerId)
54 54
     {
55
-        $transaction = function ($connection) use ($eventId, $organizerId) {
55
+        $transaction = function($connection) use ($eventId, $organizerId) {
56 56
             if ($this->eventHasRelations($connection, $eventId)) {
57 57
                 $this->updateEventOrganizerRelation($connection, $eventId, $organizerId);
58 58
             } else {
Please login to merge, or discard this patch.
src/EventExport/Format/HTML/HTMLEventFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
     {
248 248
         return array_keys(array_filter(
249 249
             $this->brandSpecs,
250
-            function (EventSpecificationInterface $brandSpec) use ($event) {
250
+            function(EventSpecificationInterface $brandSpec) use ($event) {
251 251
                 return $brandSpec->isSatisfiedBy($event);
252 252
             }
253 253
         ));
Please login to merge, or discard this patch.
Format/HTML/Uitpas/Promotion/EventOrganizerPromotionQueryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             $dateRange->datefrom = $firstPeriod->datefrom;
66 66
 
67 67
             /** @var CultureFeed_Uitpas_Calendar_Period $lastPeriod */
68
-            $lastPeriod =  end($uitpasCalendar->periods);
68
+            $lastPeriod = end($uitpasCalendar->periods);
69 69
             $dateRange->dateto = $lastPeriod->dateto;
70 70
         } elseif (!empty($uitpasCalendar->timestamps)) {
71 71
             /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $dateRange->datefrom = $firstTimestampDate->getTimestamp();
84 84
 
85 85
             /** @var \CultureFeed_Uitpas_Calendar_Timestamp $lastTimestamp */
86
-            $lastTimestamp =  end($uitpasCalendar->timestamps);
86
+            $lastTimestamp = end($uitpasCalendar->timestamps);
87 87
             $lastTimestampDate = new \DateTime();
88 88
             $lastTimestampDate
89 89
               ->setTimestamp($lastTimestamp->date)
Please login to merge, or discard this patch.