From ebdd3ce598eb62446f114f796c6f7bfad075594e Mon Sep 17 00:00:00 2001 From: Sebastix Date: Thu, 29 Aug 2024 11:29:56 +0200 Subject: [PATCH 1/3] Add maintainers.yaml for ngit integration --- maintainers.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 maintainers.yaml diff --git a/maintainers.yaml b/maintainers.yaml new file mode 100644 index 0000000..2007f83 --- /dev/null +++ b/maintainers.yaml @@ -0,0 +1,13 @@ +identifier: nostr-php +maintainers: +- npub1qe3e5wrvnsgpggtkytxteaqfprz0rgxr8c3l34kk3a9t7e2l3acslezefe +relays: +- wss://nostr.sebastix.dev/ +- wss://offchain.pub/ +- wss://relay.damus.io/ +- wss://nos.lol/ +- wss://nostr.wine/ +- wss://nostr.fmt.wiz.biz/ +- wss://nostr.sebastix.social/ +- wss://nostr.mutinywallet.com/ +- wss://pyramid.fiatjaf.com/ From 093078ff7a5b714250ccaa2cc26a9341a41eec53 Mon Sep 17 00:00:00 2001 From: Sebastix Date: Sat, 14 Sep 2024 22:15:56 +0200 Subject: [PATCH 2/3] remove `dev` from composer.json keyword as this marks the package as a dev dependency which it is not --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a4179f1..203222d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "swentel/nostr-php", "description": "Nostr helper library for PHP", - "keywords": ["nostr", "library", "dev"], + "keywords": ["nostr", "library"], "homepage": "https://nostr-php.dev", "license": "MIT", "authors": [ From 058c3cfa906b1881025e9ca9797f195c7992c7c4 Mon Sep 17 00:00:00 2001 From: Sebastix Date: Sat, 14 Sep 2024 22:30:03 +0200 Subject: [PATCH 3/3] php-cs-fixer fix src --- src/Event/Event.php | 2 +- src/Request/Request.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Event/Event.php b/src/Event/Event.php index 2390111..520c70c 100644 --- a/src/Event/Event.php +++ b/src/Event/Event.php @@ -160,7 +160,7 @@ public function getContent(): string */ public function setTags(array $tags): static { - foreach($tags as $tag) { + foreach ($tags as $tag) { $this->tags[] = $tag; } return $this; diff --git a/src/Request/Request.php b/src/Request/Request.php index a123b39..10323f3 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -103,7 +103,7 @@ private function getResponseFromRelay(Relay $relay): array | RelayResponse return $result; } elseif ($response instanceof WebSocket\Message\Text) { $relayResponse = RelayResponse::create(json_decode($response->getContent())); - if($relayResponse->type === 'EOSE') { + if ($relayResponse->type === 'EOSE') { break; }