@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $this->endDate = $endDate; |
89 | 89 | $this->openingHours = $openingHours; |
90 | 90 | |
91 | - usort($timestamps, function (Timestamp $timestamp, Timestamp $otherTimestamp) { |
|
91 | + usort($timestamps, function(Timestamp $timestamp, Timestamp $otherTimestamp) { |
|
92 | 92 | return $timestamp->getStartDate() <=> $otherTimestamp->getStartDate(); |
93 | 93 | }); |
94 | 94 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | if ($updateStatusInTimestamps) { |
112 | 112 | $clone->timestamps = \array_map( |
113 | - function (Timestamp $timestamp) use ($status) : Timestamp { |
|
113 | + function(Timestamp $timestamp) use ($status) : Timestamp { |
|
114 | 114 | return $timestamp->withStatus($status); |
115 | 115 | }, |
116 | 116 | $clone->getTimestamps() |
@@ -133,14 +133,14 @@ discard block |
||
133 | 133 | public function serialize(): array |
134 | 134 | { |
135 | 135 | $serializedTimestamps = array_map( |
136 | - function (Timestamp $timestamp) { |
|
136 | + function(Timestamp $timestamp) { |
|
137 | 137 | return $timestamp->serialize(); |
138 | 138 | }, |
139 | 139 | $this->timestamps |
140 | 140 | ); |
141 | 141 | |
142 | 142 | $serializedOpeningHours = array_map( |
143 | - function (OpeningHour $openingHour) { |
|
143 | + function(OpeningHour $openingHour) { |
|
144 | 144 | return $openingHour->serialize(); |
145 | 145 | }, |
146 | 146 | $this->openingHours |
@@ -178,13 +178,13 @@ discard block |
||
178 | 178 | !empty($data['startDate']) ? self::deserializeDateTime($data['startDate']) : null, |
179 | 179 | !empty($data['endDate']) ? self::deserializeDateTime($data['endDate']) : null, |
180 | 180 | !empty($data['timestamps']) ? array_map( |
181 | - function ($timestamp) { |
|
181 | + function($timestamp) { |
|
182 | 182 | return Timestamp::deserialize($timestamp); |
183 | 183 | }, |
184 | 184 | $data['timestamps'] |
185 | 185 | ) : $defaultTimeStamps, |
186 | 186 | !empty($data['openingHours']) ? array_map( |
187 | - function ($openingHour) { |
|
187 | + function($openingHour) { |
|
188 | 188 | return OpeningHour::deserialize($openingHour); |
189 | 189 | }, |
190 | 190 | $data['openingHours'] |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | |
355 | 355 | if ($calendar instanceof CalendarWithSubEvents) { |
356 | 356 | $timestamps = array_map( |
357 | - function (SubEvent $subEvent) { |
|
357 | + function(SubEvent $subEvent) { |
|
358 | 358 | return Timestamp::fromUdb3ModelSubEvent($subEvent); |
359 | 359 | }, |
360 | 360 | $calendar->getSubEvents()->toArray() |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | |
364 | 364 | if ($calendar instanceof CalendarWithOpeningHours) { |
365 | 365 | $openingHours = array_map( |
366 | - function (Udb3ModelOpeningHour $openingHour) { |
|
366 | + function(Udb3ModelOpeningHour $openingHour) { |
|
367 | 367 | return OpeningHour::fromUdb3ModelOpeningHour($openingHour); |
368 | 368 | }, |
369 | 369 | $calendar->getOpeningHours()->toArray() |