Static analysis cleanup.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user