Completed
Push — master ( e22388...d252f0 )
by
unknown
22s queued 11s
created
src/Calendar.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $this->endDate = $endDate;
87 87
         $this->openingHours = $openingHours;
88 88
 
89
-        usort($timestamps, function (Timestamp $timestamp, Timestamp $otherTimestamp) {
89
+        usort($timestamps, function(Timestamp $timestamp, Timestamp $otherTimestamp) {
90 90
             return $timestamp->getStartDate() <=> $otherTimestamp->getStartDate();
91 91
         });
92 92
 
@@ -108,14 +108,14 @@  discard block
 block discarded – undo
108 108
     public function serialize()
109 109
     {
110 110
         $serializedTimestamps = array_map(
111
-            function (Timestamp $timestamp) {
111
+            function(Timestamp $timestamp) {
112 112
                 return $timestamp->serialize();
113 113
             },
114 114
             $this->timestamps
115 115
         );
116 116
 
117 117
         $serializedOpeningHours = array_map(
118
-            function (OpeningHour $openingHour) {
118
+            function(OpeningHour $openingHour) {
119 119
                 return $openingHour->serialize();
120 120
             },
121 121
             $this->openingHours
@@ -155,13 +155,13 @@  discard block
 block discarded – undo
155 155
             !empty($data['startDate']) ? self::deserializeDateTime($data['startDate']) : null,
156 156
             !empty($data['endDate']) ? self::deserializeDateTime($data['endDate']) : null,
157 157
             !empty($data['timestamps']) ? array_map(
158
-                function ($timestamp) {
158
+                function($timestamp) {
159 159
                     return Timestamp::deserialize($timestamp);
160 160
                 },
161 161
                 $data['timestamps']
162 162
             ) : $defaultTimeStamps,
163 163
             !empty($data['openingHours']) ? array_map(
164
-                function ($openingHour) {
164
+                function($openingHour) {
165 165
                     return OpeningHour::deserialize($openingHour);
166 166
                 },
167 167
                 $data['openingHours']
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
         if ($calendar instanceof CalendarWithSubEvents) {
324 324
             $timestamps = array_map(
325
-                function (DateRange $dateRange) {
325
+                function(DateRange $dateRange) {
326 326
                     return Timestamp::fromUdb3ModelDateRange($dateRange);
327 327
                 },
328 328
                 $calendar->getSubEvents()->toArray()
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
         if ($calendar instanceof CalendarWithOpeningHours) {
333 333
             $openingHours = array_map(
334
-                function (Udb3ModelOpeningHour $openingHour) {
334
+                function(Udb3ModelOpeningHour $openingHour) {
335 335
                     return OpeningHour::fromUdb3ModelOpeningHour($openingHour);
336 336
                 },
337 337
                 $calendar->getOpeningHours()->toArray()
Please login to merge, or discard this patch.