From 6183b73bb98062059ce9fa8417962fa161cb3fa7 Mon Sep 17 00:00:00 2001 From: Amir Hossein Shokri Date: Thu, 4 Sep 2025 18:52:51 +0330 Subject: [PATCH] fix: remove redundant variables --- src/SendJob.php | 2 +- src/TopicDetector.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SendJob.php b/src/SendJob.php index f7578d8..e2f63be 100644 --- a/src/SendJob.php +++ b/src/SendJob.php @@ -56,7 +56,7 @@ public function handle(): void $httpClient = new Client($httpClientOption); try { - $response = $httpClient->post($this->url, $requestOptions); + $httpClient->post($this->url, $requestOptions); } catch (\Throwable $exception) { $this->fail($exception); } diff --git a/src/TopicDetector.php b/src/TopicDetector.php index 66340ac..9cfc946 100644 --- a/src/TopicDetector.php +++ b/src/TopicDetector.php @@ -221,8 +221,7 @@ protected function getMainLivewireClass(): array $method = null; try { - $request = request(); - $payload = $request->all(); + $payload = request()->all(); if (isset($payload['components'][0])) { $componentData = $payload['components'][0];