@@ -105,7 +105,7 @@ |
||
105 | 105 | $this->repository->updateIndex( |
106 | 106 | $itemId, |
107 | 107 | $itemType, |
108 | - (string) $userId, |
|
108 | + (string)$userId, |
|
109 | 109 | $name, |
110 | 110 | $postalCode, |
111 | 111 | $city, |
@@ -98,26 +98,43 @@ |
||
98 | 98 | } |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $eventId |
|
103 | + */ |
|
101 | 104 | private function updateEmbeddedOrganizer($eventId, $organizerJSONLD) |
102 | 105 | { |
103 | 106 | $this->updateJSONLD( |
104 | 107 | $eventId, |
108 | + |
|
109 | + /** |
|
110 | + * @param string $eventLd |
|
111 | + */ |
|
105 | 112 | function ($eventLd) use ($organizerJSONLD) { |
106 | 113 | $eventLd->organizer = $organizerJSONLD; |
107 | 114 | } |
108 | 115 | ); |
109 | 116 | } |
110 | 117 | |
118 | + /** |
|
119 | + * @param string $eventId |
|
120 | + */ |
|
111 | 121 | private function updatedEmbeddedLocation($eventId, $placeJSONLD) |
112 | 122 | { |
113 | 123 | $this->updateJSONLD( |
114 | 124 | $eventId, |
125 | + |
|
126 | + /** |
|
127 | + * @param string $eventLd |
|
128 | + */ |
|
115 | 129 | function ($eventLd) use ($placeJSONLD) { |
116 | 130 | $eventLd->location = $placeJSONLD; |
117 | 131 | } |
118 | 132 | ); |
119 | 133 | } |
120 | 134 | |
135 | + /** |
|
136 | + * @param \Closure $callback |
|
137 | + */ |
|
121 | 138 | private function updateJSONLD($eventId, $callback) |
122 | 139 | { |
123 | 140 | $document = $this->repository->get($eventId); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | $this->updateJSONLD( |
104 | 104 | $eventId, |
105 | - function ($eventLd) use ($organizerJSONLD) { |
|
105 | + function($eventLd) use ($organizerJSONLD) { |
|
106 | 106 | $eventLd->organizer = $organizerJSONLD; |
107 | 107 | } |
108 | 108 | ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | { |
113 | 113 | $this->updateJSONLD( |
114 | 114 | $eventId, |
115 | - function ($eventLd) use ($placeJSONLD) { |
|
115 | + function($eventLd) use ($placeJSONLD) { |
|
116 | 116 | $eventLd->location = $placeJSONLD; |
117 | 117 | } |
118 | 118 | ); |
@@ -88,7 +88,7 @@ |
||
88 | 88 | ) |
89 | 89 | ); |
90 | 90 | |
91 | - $message = new DomainMessage( |
|
91 | + $message = new DomainMessage( |
|
92 | 92 | $this->id ?? UUID::generateAsString(), |
93 | 93 | $this->playhead ?? 1, |
94 | 94 | $finalMetaData, |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return $createdByIdentifier; |
43 | 43 | } catch (InvalidNativeArgumentException $exception) { |
44 | 44 | $this->logger->info( |
45 | - 'The provided createdByIdentifier ' . $createdByIdentifier->toNative() . ' is not a UUID.', |
|
45 | + 'The provided createdByIdentifier '.$createdByIdentifier->toNative().' is not a UUID.', |
|
46 | 46 | [ |
47 | 47 | 'exception' => $exception, |
48 | 48 | ] |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | if (!$userId) { |
56 | 56 | $this->logger->warning( |
57 | - 'Unable to find user with identifier ' . $createdByIdentifier |
|
57 | + 'Unable to find user with identifier '.$createdByIdentifier |
|
58 | 58 | ); |
59 | 59 | } |
60 | 60 | } catch (Exception $e) { |