From da41e7edae84859d3d598b0b3ce3233c843c3e46 Mon Sep 17 00:00:00 2001 From: alies-dev Date: Mon, 19 Feb 2024 05:59:13 +0000 Subject: [PATCH] Fix styling --- src/Generators/BaseOutlook.php | 3 +-- src/Generators/Google.php | 1 - tests/Generators/GoogleGeneratorTest.php | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) 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(