Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoSWD committed May 15, 2024
1 parent 21b2d62 commit ec27a60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Infrastructure/Schedule/InfoSheetScheduleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function createStartDate(string $day, string $time, DateTimeZone $timeZo

$day = preg_replace('~(\d{1,2})(?:st|nd|rd|th|ve)~', '$1', $day);

$d = DateTimeImmutable::createFromFormat(
return DateTimeImmutable::createFromFormat(
'l j M Y H:i',
sprintf(
'%s 2024 %s',
Expand All @@ -134,8 +134,6 @@ private function createStartDate(string $day, string $time, DateTimeZone $timeZo
),
$timeZone,
);

return $d ?: new DateTimeImmutable('now', $timeZone);
}

private function createEndDate(string $dayName, ?string $time, DateTimeZone $timeZone): ?DateTimeImmutable
Expand Down

0 comments on commit ec27a60

Please sign in to comment.