Skip to content

Commit

Permalink
php-cs-fixer: trailing_comma_in_multiline notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastix committed May 16, 2024
1 parent aa8cba7 commit 4ab537c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ public function verify(string $json = ''): bool
$event->created_at,
$event->kind,
$event->tags,
$event->content
$event->content,
],
\JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE
)
\JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE,
),
);
} catch (\JsonException) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/Relay/Relay.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function send(): CommandResultInterface
'ERROR',
'',
false,
$e->getMessage()
$e->getMessage(),
];
}
return new CommandResult($response);
Expand Down
2 changes: 1 addition & 1 deletion tests/RelayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testSendNoteToRelay()

$response = $relay->send();
$this->assertTrue(
$response->isSuccess()
$response->isSuccess(),
);
}
}
4 changes: 2 additions & 2 deletions tests/VerifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testValidEventValidation()
$event->setCreatedAt(1697800339);
$event->setTags([
['e', '5361bb83c899cf75589a25c32cea5b868d4990da41fd4dba84144eede5ad1359'],
['p', 'd4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d']
['p', 'd4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d'],
]);
$event->setContent('Gm ☕️⚡️🌅');
$event->setSignature('46a9d4f4470bdf685d4fc4f664d1d4c8576e501cfe0ccf044ba65d36c3ee66eab3f261d524a4bdbde71bc2d921c13829a5ac596538ded74125f5060d4f3f805d');
Expand All @@ -50,7 +50,7 @@ public static function invalidEventsProvider(): array
'invalid tag' => ['{"id":"ac21a6c4cb128a27c0b9a229bc1fa8e7167660664354d5e5a481825d01188108","pubkey":"7543c184ff776be3c13d2437894494173cfea4e9919d48fb2934216a13a53c58","created_at":1697800339,"kind":1,"tags":[1234,["p","d4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d"]],"content":"Gm ☕️⚡️🌅","sig":"46a9d4f4470bdf685d4fc4f664d1d4c8576e501cfe0ccf044ba65d36c3ee66eab3f261d524a4bdbde71bc2d921c13829a5ac596538ded74125f5060d4f3f805d"}'],
'invalid tag value' => ['{"id":"ac21a6c4cb128a27c0b9a229bc1fa8e7167660664354d5e5a481825d01188108","pubkey":"7543c184ff776be3c13d2437894494173cfea4e9919d48fb2934216a13a53c58","created_at":1697800339,"kind":1,"tags":[[123,"5361bb83c899cf75589a25c32cea5b868d4990da41fd4dba84144eede5ad1359"],["p","d4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d"]],"content":"Gm ☕️⚡️🌅","sig":"46a9d4f4470bdf685d4fc4f664d1d4c8576e501cfe0ccf044ba65d36c3ee66eab3f261d524a4bdbde71bc2d921c13829a5ac596538ded74125f5060d4f3f805d"}'],
'invalid id' => ['{"id":"bc21a6c4cb128a27c0b9a229bc1fa8e7167660664354d5e5a481825d01188108","pubkey":"7543c184ff776be3c13d2437894494173cfea4e9919d48fb2934216a13a53c58","created_at":1697800339,"kind":1,"tags":[["e","5361bb83c899cf75589a25c32cea5b868d4990da41fd4dba84144eede5ad1359"],["p","d4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d"]],"content":"Gm ☕️⚡️🌅","sig":"46a9d4f4470bdf685d4fc4f664d1d4c8576e501cfe0ccf044ba65d36c3ee66eab3f261d524a4bdbde71bc2d921c13829a5ac596538ded74125f5060d4f3f805d"}'],
'invalid sig' => ['{"id":"ac21a6c4cb128a27c0b9a229bc1fa8e7167660664354d5e5a481825d01188108","pubkey":"7543c184ff776be3c13d2437894494173cfea4e9919d48fb2934216a13a53c58","created_at":1697800339,"kind":1,"tags":[["e","5361bb83c899cf75589a25c32cea5b868d4990da41fd4dba84144eede5ad1359"],["p","d4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d"]],"content":"Gm ☕️⚡️🌅","sig":"56a9d4f4470bdf685d4fc4f664d1d4c8576e501cfe0ccf044ba65d36c3ee66eab3f261d524a4bdbde71bc2d921c13829a5ac596538ded74125f5060d4f3f805d"}']
'invalid sig' => ['{"id":"ac21a6c4cb128a27c0b9a229bc1fa8e7167660664354d5e5a481825d01188108","pubkey":"7543c184ff776be3c13d2437894494173cfea4e9919d48fb2934216a13a53c58","created_at":1697800339,"kind":1,"tags":[["e","5361bb83c899cf75589a25c32cea5b868d4990da41fd4dba84144eede5ad1359"],["p","d4dea80c64ebd3f9bc8271893191dbc851ecd2b7bcb811bb87386b5158ee735d"]],"content":"Gm ☕️⚡️🌅","sig":"56a9d4f4470bdf685d4fc4f664d1d4c8576e501cfe0ccf044ba65d36c3ee66eab3f261d524a4bdbde71bc2d921c13829a5ac596538ded74125f5060d4f3f805d"}'],
];
}
}

0 comments on commit 4ab537c

Please sign in to comment.