| @@ -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 | |
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | |
| 104 | 104 | $clone->status = $status; | 
| 105 | 105 | \array_map( | 
| 106 | -            function (Timestamp $timestamp) use ($status): Timestamp { | |
| 106 | +            function(Timestamp $timestamp) use ($status): Timestamp { | |
| 107 | 107 | return $timestamp->withStatus($status); | 
| 108 | 108 | }, | 
| 109 | 109 | $clone->getTimestamps() | 
| @@ -125,14 +125,14 @@ discard block | ||
| 125 | 125 | public function serialize(): array | 
| 126 | 126 |      { | 
| 127 | 127 | $serializedTimestamps = array_map( | 
| 128 | -            function (Timestamp $timestamp) { | |
| 128 | +            function(Timestamp $timestamp) { | |
| 129 | 129 | return $timestamp->serialize(); | 
| 130 | 130 | }, | 
| 131 | 131 | $this->timestamps | 
| 132 | 132 | ); | 
| 133 | 133 | |
| 134 | 134 | $serializedOpeningHours = array_map( | 
| 135 | -            function (OpeningHour $openingHour) { | |
| 135 | +            function(OpeningHour $openingHour) { | |
| 136 | 136 | return $openingHour->serialize(); | 
| 137 | 137 | }, | 
| 138 | 138 | $this->openingHours | 
| @@ -169,13 +169,13 @@ discard block | ||
| 169 | 169 | !empty($data['startDate']) ? self::deserializeDateTime($data['startDate']) : null, | 
| 170 | 170 | !empty($data['endDate']) ? self::deserializeDateTime($data['endDate']) : null, | 
| 171 | 171 | !empty($data['timestamps']) ? array_map( | 
| 172 | -                function ($timestamp) { | |
| 172 | +                function($timestamp) { | |
| 173 | 173 | return Timestamp::deserialize($timestamp); | 
| 174 | 174 | }, | 
| 175 | 175 | $data['timestamps'] | 
| 176 | 176 | ) : $defaultTimeStamps, | 
| 177 | 177 | !empty($data['openingHours']) ? array_map( | 
| 178 | -                function ($openingHour) { | |
| 178 | +                function($openingHour) { | |
| 179 | 179 | return OpeningHour::deserialize($openingHour); | 
| 180 | 180 | }, | 
| 181 | 181 | $data['openingHours'] | 
| @@ -339,7 +339,7 @@ discard block | ||
| 339 | 339 | |
| 340 | 340 |          if ($calendar instanceof CalendarWithSubEvents) { | 
| 341 | 341 | $timestamps = array_map( | 
| 342 | -                function (SubEvent $subEvent) { | |
| 342 | +                function(SubEvent $subEvent) { | |
| 343 | 343 | return Timestamp::fromUdb3ModelSubEvent($subEvent); | 
| 344 | 344 | }, | 
| 345 | 345 | $calendar->getSubEvents()->toArray() | 
| @@ -348,7 +348,7 @@ discard block | ||
| 348 | 348 | |
| 349 | 349 |          if ($calendar instanceof CalendarWithOpeningHours) { | 
| 350 | 350 | $openingHours = array_map( | 
| 351 | -                function (Udb3ModelOpeningHour $openingHour) { | |
| 351 | +                function(Udb3ModelOpeningHour $openingHour) { | |
| 352 | 352 | return OpeningHour::fromUdb3ModelOpeningHour($openingHour); | 
| 353 | 353 | }, | 
| 354 | 354 | $calendar->getOpeningHours()->toArray() |