add test batches
This commit is contained in:
@@ -7,7 +7,6 @@ use App\Services\EmailService;
|
||||
class CommunicationSendService
|
||||
{
|
||||
private EmailService $mailer;
|
||||
|
||||
private CommunicationLogService $logService;
|
||||
|
||||
public function __construct(EmailService $mailer, CommunicationLogService $logService)
|
||||
@@ -62,7 +61,7 @@ class CommunicationSendService
|
||||
$sendOk = false;
|
||||
}
|
||||
|
||||
if (! $sendOk && $error === null) {
|
||||
if (!$sendOk && $error === null) {
|
||||
$error = 'Mailer returned false';
|
||||
}
|
||||
|
||||
@@ -91,7 +90,6 @@ class CommunicationSendService
|
||||
private function normalizeEmails(array $values): array
|
||||
{
|
||||
$out = array_values(array_unique(array_filter(array_map('strval', $values))));
|
||||
|
||||
return array_values(array_filter($out, static function ($email) {
|
||||
return $email !== '';
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user