Completed
Push — master ( b22bd8...48645e )
by
unknown
07:05 queued 04:44
created
src/Calendar.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
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
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $clone = clone $this;
110 110
         $clone->timestamps = \array_map(
111
-            function (Timestamp $timestamp) use ($status) : Timestamp {
111
+            function(Timestamp $timestamp) use ($status) : Timestamp {
112 112
                 return $timestamp->withStatus($status);
113 113
             },
114 114
             $clone->getTimestamps()
@@ -129,14 +129,14 @@  discard block
 block discarded – undo
129 129
     public function serialize(): array
130 130
     {
131 131
         $serializedTimestamps = array_map(
132
-            function (Timestamp $timestamp) {
132
+            function(Timestamp $timestamp) {
133 133
                 return $timestamp->serialize();
134 134
             },
135 135
             $this->timestamps
136 136
         );
137 137
 
138 138
         $serializedOpeningHours = array_map(
139
-            function (OpeningHour $openingHour) {
139
+            function(OpeningHour $openingHour) {
140 140
                 return $openingHour->serialize();
141 141
             },
142 142
             $this->openingHours
@@ -174,13 +174,13 @@  discard block
 block discarded – undo
174 174
             !empty($data['startDate']) ? self::deserializeDateTime($data['startDate']) : null,
175 175
             !empty($data['endDate']) ? self::deserializeDateTime($data['endDate']) : null,
176 176
             !empty($data['timestamps']) ? array_map(
177
-                function ($timestamp) {
177
+                function($timestamp) {
178 178
                     return Timestamp::deserialize($timestamp);
179 179
                 },
180 180
                 $data['timestamps']
181 181
             ) : $defaultTimeStamps,
182 182
             !empty($data['openingHours']) ? array_map(
183
-                function ($openingHour) {
183
+                function($openingHour) {
184 184
                     return OpeningHour::deserialize($openingHour);
185 185
                 },
186 186
                 $data['openingHours']
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 
351 351
         if ($calendar instanceof CalendarWithSubEvents) {
352 352
             $timestamps = array_map(
353
-                function (SubEvent $subEvent) {
353
+                function(SubEvent $subEvent) {
354 354
                     return Timestamp::fromUdb3ModelSubEvent($subEvent);
355 355
                 },
356 356
                 $calendar->getSubEvents()->toArray()
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
         if ($calendar instanceof CalendarWithOpeningHours) {
361 361
             $openingHours = array_map(
362
-                function (Udb3ModelOpeningHour $openingHour) {
362
+                function(Udb3ModelOpeningHour $openingHour) {
363 363
                     return OpeningHour::fromUdb3ModelOpeningHour($openingHour);
364 364
                 },
365 365
                 $calendar->getOpeningHours()->toArray()
Please login to merge, or discard this patch.