Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
+5 -6
View File
@@ -7,24 +7,23 @@ use Illuminate\Support\Facades\Log;
class UserEventService
{
public function __construct(private EmailService $emailService)
{
}
public function __construct(private EmailService $emailService) {}
public function handleNewAccountAdded(array $userData): bool
{
$email = (string) ($userData['email'] ?? '');
if ($email === '') {
Log::warning('UserEventService: missing email for welcome message.');
return false;
}
$name = trim((string) (($userData['firstname'] ?? '') . ' ' . ($userData['lastname'] ?? '')));
$name = trim((string) (($userData['firstname'] ?? '').' '.($userData['lastname'] ?? '')));
$safeName = e($name !== '' ? $name : 'there');
$subject = 'Welcome to Al Rahma Sunday School!';
$message = '<p>Hello ' . $safeName . ',</p>'
. '<p>Your account has been created. Welcome to Al Rahma Sunday School.</p>';
$message = '<p>Hello '.$safeName.',</p>'
.'<p>Your account has been created. Welcome to Al Rahma Sunday School.</p>';
return $this->emailService->send($email, $subject, $message, 'registration');
}