From 1d36b3a75b1bcb3100ac1b0fc2781ce679a8a447 Mon Sep 17 00:00:00 2001 From: Sebastix Date: Fri, 16 Aug 2024 16:59:21 +0200 Subject: [PATCH] php-cs-fixer fix --- src/RelayResponse/RelayResponseAuth.php | 2 +- src/RelayResponse/RelayResponseClosed.php | 2 +- src/RelayResponse/RelayResponseEose.php | 2 +- src/Request/Request.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/RelayResponse/RelayResponseAuth.php b/src/RelayResponse/RelayResponseAuth.php index af31e38..f2d2618 100644 --- a/src/RelayResponse/RelayResponseAuth.php +++ b/src/RelayResponse/RelayResponseAuth.php @@ -13,4 +13,4 @@ public function __construct($response) parent::__construct($response); $this->message = $response[1]; } -} \ No newline at end of file +} diff --git a/src/RelayResponse/RelayResponseClosed.php b/src/RelayResponse/RelayResponseClosed.php index 78722ae..023da9f 100644 --- a/src/RelayResponse/RelayResponseClosed.php +++ b/src/RelayResponse/RelayResponseClosed.php @@ -16,4 +16,4 @@ public function __construct($response) $this->subscriptionId = $response[1]; $this->message = $response[2]; } -} \ No newline at end of file +} diff --git a/src/RelayResponse/RelayResponseEose.php b/src/RelayResponse/RelayResponseEose.php index 44c9f9c..3ba4d41 100644 --- a/src/RelayResponse/RelayResponseEose.php +++ b/src/RelayResponse/RelayResponseEose.php @@ -13,4 +13,4 @@ public function __construct($response) parent::__construct($response); $this->subscriptionId = $response[1]; } -} \ No newline at end of file +} diff --git a/src/Request/Request.php b/src/Request/Request.php index 77fce15..a123b39 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -89,7 +89,7 @@ private function getResponseFromRelay(Relay $relay): array | RelayResponse $client = new WebSocket\Client($relay->getUrl()); $client->text($this->payload); $result = []; - + while ($response = $client->receive()) { if ($response === null) { $response = [ @@ -106,7 +106,7 @@ private function getResponseFromRelay(Relay $relay): array | RelayResponse if($relayResponse->type === 'EOSE') { break; } - + $result[] = $relayResponse; } }