From 93f293cf5d51e5d5064da8b3f75b39c7c9f26454 Mon Sep 17 00:00:00 2001 From: MarioGattolla Date: Mon, 16 Dec 2024 10:54:42 +0000 Subject: [PATCH] Lint --- src/Concerns/SendsAttachments.php | 1 - src/Models/TelegraphChat.php | 2 +- tests/Unit/DTO/MessageTest.php | 2 +- tests/Unit/DTO/VenueTest.php | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Concerns/SendsAttachments.php b/src/Concerns/SendsAttachments.php index bab7bfaa..28882362 100644 --- a/src/Concerns/SendsAttachments.php +++ b/src/Concerns/SendsAttachments.php @@ -9,7 +9,6 @@ namespace DefStudio\Telegraph\Concerns; use DefStudio\Telegraph\DTO\Attachment; -use DefStudio\Telegraph\DTO\Location; use DefStudio\Telegraph\Exceptions\FileException; use DefStudio\Telegraph\ScopedPayloads\TelegraphEditMediaPayload; use DefStudio\Telegraph\Telegraph; diff --git a/src/Models/TelegraphChat.php b/src/Models/TelegraphChat.php index e1abae92..f5ffe065 100644 --- a/src/Models/TelegraphChat.php +++ b/src/Models/TelegraphChat.php @@ -249,7 +249,7 @@ public function sticker(string $path, string $filename = null): Telegraph public function venue(float $latitude, float $longitude, string $title, string $address): Telegraph { - return TelegraphFacade::chat($this)->venue( $latitude, $longitude, $title, $address); + return TelegraphFacade::chat($this)->venue($latitude, $longitude, $title, $address); } public function animation(string $path, string $filename = null): Telegraph diff --git a/tests/Unit/DTO/MessageTest.php b/tests/Unit/DTO/MessageTest.php index 4b330d47..957244e2 100644 --- a/tests/Unit/DTO/MessageTest.php +++ b/tests/Unit/DTO/MessageTest.php @@ -263,7 +263,7 @@ 'horizontal_accuracy' => 3, ], 'title' => 'test title', - 'address' => 'test address' + 'address' => 'test address', ], 'contact' => [ 'phone_number' => '123456789', diff --git a/tests/Unit/DTO/VenueTest.php b/tests/Unit/DTO/VenueTest.php index e2ab5684..99ac8f44 100644 --- a/tests/Unit/DTO/VenueTest.php +++ b/tests/Unit/DTO/VenueTest.php @@ -2,7 +2,6 @@ /** @noinspection PhpUnhandledExceptionInspection */ -use DefStudio\Telegraph\DTO\Sticker; use DefStudio\Telegraph\DTO\Venue; use Illuminate\Support\Str;