Cleanup
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-08-17 07:16:41 +00:00
parent 188a6ad9fa
commit e59e105394
5 changed files with 10 additions and 9 deletions

View File

@ -13,6 +13,7 @@ use InvalidArgumentException;
class Ntfy implements NotificationInterface
{
private string $topic = 'default';
/**
* Initialize with configuration.
*
@ -45,6 +46,9 @@ class Ntfy implements NotificationInterface
return $this->topic;
}
/**
* Push a message with Ntfy
*/
public function send(string $title, string $message): void
{
if (strlen($title) < 1 || strlen($title) >= 256) {