Static analysis cleanup.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-06-13 08:15:29 +00:00
parent 0f3bbf1f47
commit 4ffac17b62
6 changed files with 47 additions and 22 deletions

View File

@ -8,17 +8,21 @@ use Ntfy\Client;
class Ntfy implements NotificationInterface
{
/** @var string[] $config */
private array $config;
private \Ntfy\Server $server;
private \Ntfy\Client $client;
private Client $client;
/**
* Initialize with configuration.
*
* @param string[] $config Configuration
*/
public function __construct(array $config)
{
$this->config = $config;
$this->server = new Server($config['domain']);
$this->client = new Client($this->server);
$this->client = new Client(new Server($config['domain']));
}
public function send(string $title, string $message): void