Completed
Push — master ( b22bd8...48645e )
by
unknown
07:05 queued 04:44
created
src/Media/Properties/MIMEType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
         $typeSupported = array_key_exists($subtypeString, self::$supportedSubtypes);
31 31
 
32 32
         if (!$typeSupported) {
33
-            throw new UnsupportedMIMETypeException('MIME type "' . $subtypeString . '" is not supported!');
33
+            throw new UnsupportedMIMETypeException('MIME type "'.$subtypeString.'" is not supported!');
34 34
         }
35 35
 
36 36
         $type = self::$supportedSubtypes[$subtypeString];
37 37
 
38
-        return new self($type . '/' . $subtypeString);
38
+        return new self($type.'/'.$subtypeString);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Event/ValueObjects/StatusType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     private function __construct(string $value)
30 30
     {
31 31
         if (!\in_array($value, self::ALLOWED_VALUES, true)) {
32
-            throw new InvalidArgumentException('Status does not support the value "' . $value . '"');
32
+            throw new InvalidArgumentException('Status does not support the value "'.$value.'"');
33 33
         }
34 34
         $this->value = $value;
35 35
     }
Please login to merge, or discard this patch.
src/Event/ValueObjects/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     private function ensureTranslationsAreUnique(array $statusReason): void
71 71
     {
72
-        $languageCodes = \array_map(static function (StatusReason $reason) {
72
+        $languageCodes = \array_map(static function(StatusReason $reason) {
73 73
             return $reason->getLanguage()->getCode();
74 74
         }, $statusReason);
75 75
 
Please login to merge, or discard this patch.
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.