diff --git a/src/Generators/BaseOutlook.php b/src/Generators/BaseOutlook.php index bcfc503..83d5f6a 100644 --- a/src/Generators/BaseOutlook.php +++ b/src/Generators/BaseOutlook.php @@ -39,8 +39,7 @@ public function generate(Link $link): string $url .= '&startdt='.$link->from->format($this->dateFormat); $url .= '&enddt='.$link->to->format($this->dateFormat); $url .= '&allday=true'; - } - else { + } else { $url .= '&startdt='.(clone $link->from)->setTimezone(new DateTimeZone('UTC'))->format($this->dateTimeFormat); $url .= '&enddt='.(clone $link->to)->setTimezone(new DateTimeZone('UTC'))->format($this->dateTimeFormat); } diff --git a/src/Generators/Google.php b/src/Generators/Google.php index 18a3b07..3590593 100644 --- a/src/Generators/Google.php +++ b/src/Generators/Google.php @@ -2,7 +2,6 @@ namespace Spatie\CalendarLinks\Generators; -use DateTimeZone; use Spatie\CalendarLinks\Generator; use Spatie\CalendarLinks\Link; diff --git a/tests/Generators/GoogleGeneratorTest.php b/tests/Generators/GoogleGeneratorTest.php index de5964f..477b26f 100644 --- a/tests/Generators/GoogleGeneratorTest.php +++ b/tests/Generators/GoogleGeneratorTest.php @@ -37,7 +37,6 @@ public function it_correctly_generates_all_day_events_by_dates(): void } /** @test */ - public function it_correctly_generates_all_day_events_by_dates_diff_tz(): void { $this->assertMatchesSnapshot(