Add Larastan level 7 analysis
All checks were successful
Tests / Laravel tests (pull_request) Successful in 2m36s
All checks were successful
Tests / Laravel tests (pull_request) Successful in 2m36s
This commit is contained in:
@@ -14,27 +14,30 @@ class NotifyTelegramAboutPersonaliaClick implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
protected $personalia;
|
||||
protected Personalia $personalia;
|
||||
|
||||
protected $ip;
|
||||
protected ?string $ip;
|
||||
|
||||
protected $userAgent;
|
||||
protected ?string $userAgent;
|
||||
|
||||
public function __construct(Personalia $personalia, $ip, $userAgent)
|
||||
public function __construct(Personalia $personalia, ?string $ip, ?string $userAgent)
|
||||
{
|
||||
$this->personalia = $personalia;
|
||||
$this->ip = $ip;
|
||||
$this->userAgent = $userAgent;
|
||||
}
|
||||
|
||||
public function handle()
|
||||
public function handle(): void
|
||||
{
|
||||
$ip = $this->ip ?? '–';
|
||||
$userAgent = $this->userAgent ?? '–';
|
||||
|
||||
$message = <<<TEXT
|
||||
👤 *Persoonlijke gegevens bekeken*
|
||||
|
||||
Naam: {$this->personalia->value}
|
||||
IP: {$this->ip}
|
||||
User Agent: `{$this->userAgent}`
|
||||
IP: {$ip}
|
||||
User Agent: `{$userAgent}`
|
||||
|
||||
📅 Tijdstip: *{now()->format('d-m-Y H:i')}*
|
||||
TEXT;
|
||||
|
||||
Reference in New Issue
Block a user