scan('manual', $this->userId); if (! $report->hasDangerFindings()) { return; } $email = trim((string) config('security-report.notify_email', '')); if ($email === '') { return; } Notification::route('mail', $email) ->notify(new SecurityReportDangerNotification($report)); } }