@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public static function min(...$dates): ?DateTime |
| 70 | 70 | { |
| 71 | - return \array_reduce($dates, function (?DateTime $carry, DateTime $dateTime) { |
|
| 71 | + return \array_reduce($dates, function(?DateTime $carry, DateTime $dateTime) { |
|
| 72 | 72 | if (!$carry || $dateTime->isBefore($carry)) { |
| 73 | 73 | $carry = $dateTime; |
| 74 | 74 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public static function max(...$dates): ?DateTime |
| 81 | 81 | { |
| 82 | - return \array_reduce($dates, function (?DateTime $carry, DateTime $dateTime) { |
|
| 82 | + return \array_reduce($dates, function(?DateTime $carry, DateTime $dateTime) { |
|
| 83 | 83 | if (!$carry || $dateTime->isAfter($carry)) { |
| 84 | 84 | $carry = $dateTime; |
| 85 | 85 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | public static function getIntervalCode(string $period): string |
| 10 | 10 | { |
| 11 | - return static::getIntervalCodes()[$period]; |
|
| 11 | + return static::getIntervalCodes()[ $period ]; |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public static function toArray(): array |