Fix Laravel Pint formatting
This commit is contained in:
@@ -7,9 +7,7 @@ use Illuminate\Support\Facades\Log;
|
||||
|
||||
class ContactMessageService
|
||||
{
|
||||
public function __construct(private EmailDispatchService $emailService)
|
||||
{
|
||||
}
|
||||
public function __construct(private EmailDispatchService $emailService) {}
|
||||
|
||||
public function send(array $payload): array
|
||||
{
|
||||
@@ -20,17 +18,17 @@ class ContactMessageService
|
||||
|
||||
$formatted = "<p><strong>From:</strong> {$name} ({$email})</p>";
|
||||
$formatted .= "<p><strong>Subject:</strong> {$subject}</p>";
|
||||
$formatted .= '<p>' . nl2br($message) . '</p>';
|
||||
$formatted .= '<p>'.nl2br($message).'</p>';
|
||||
|
||||
$recipient = (string) config('support.contact_email', 'support@alrahmaisgl.org');
|
||||
|
||||
$emailSent = false;
|
||||
if (!app()->runningUnitTests()) {
|
||||
if (! app()->runningUnitTests()) {
|
||||
$emailSent = $this->emailService->send($recipient, $subject, $formatted, null, $email, $name);
|
||||
}
|
||||
|
||||
if (!$emailSent) {
|
||||
Log::warning('Contact email failed for ' . $email);
|
||||
if (! $emailSent) {
|
||||
Log::warning('Contact email failed for '.$email);
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user