Skip to content

Commit

Permalink
php-cs-fixer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastix committed Aug 16, 2024
1 parent 90dfa5a commit 1d36b3a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/RelayResponse/RelayResponseAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function __construct($response)
parent::__construct($response);
$this->message = $response[1];
}
}
}
2 changes: 1 addition & 1 deletion src/RelayResponse/RelayResponseClosed.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public function __construct($response)
$this->subscriptionId = $response[1];
$this->message = $response[2];
}
}
}
2 changes: 1 addition & 1 deletion src/RelayResponse/RelayResponseEose.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function __construct($response)
parent::__construct($response);
$this->subscriptionId = $response[1];
}
}
}
4 changes: 2 additions & 2 deletions src/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -106,7 +106,7 @@ private function getResponseFromRelay(Relay $relay): array | RelayResponse
if($relayResponse->type === 'EOSE') {
break;
}

$result[] = $relayResponse;
}
}
Expand Down

0 comments on commit 1d36b3a

Please sign in to comment.