Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
phpcs fixes
  • Loading branch information
Sebastix committed May 28, 2025
commit 7978250df1a2cb08d141195a66cfb6bdcc788376
9 changes: 6 additions & 3 deletions src/Event/List/RelayListMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public function __construct(string $pubkey, string $relayURL = 'wss://purplepag.
*
* @return array
*/
public function getRelays(): array {
public function getRelays(): array
{
if (empty($this->relays)) {
throw new \RuntimeException('The relays property is empty of ' . __CLASS__);
}
Expand All @@ -62,7 +63,8 @@ public function getRelays(): array {
*
* @return array
*/
public function getWriteRelays(): array {
public function getWriteRelays(): array
{
if (empty($this->relays)) {
throw new \RuntimeException('The relays property is empty of ' . __CLASS__);
}
Expand All @@ -83,7 +85,8 @@ public function getWriteRelays(): array {
*
* @return array
*/
public function getReadRelays(): array {
public function getReadRelays(): array
{
if (empty($this->relays)) {
throw new \RuntimeException('The relays property is empty of ' . __CLASS__);
}
Expand Down