@@ -26,7 +26,7 @@ public function __construct(
2626 ) {}
2727
2828 public function sendInviteToCampMail (User $ byUser , Camp $ camp , string $ key , string $ emailToInvite ): void {
29- $ email = ( new TemplatedEmail () )
29+ $ email = new TemplatedEmail ()
3030 ->from (new Address ($ this ->senderEmail , $ this ->senderName ))
3131 ->to (new Address ($ emailToInvite ))
3232 ->subject ($ this ->translator ->trans ('inviteToCamp.subject ' , ['campTitle ' => $ camp ->title ], self ::TRANSLATE_DOMAIN , $ byUser ->profile ->language ))
@@ -48,7 +48,7 @@ public function sendInviteToCampMail(User $byUser, Camp $camp, string $key, stri
4848 }
4949
5050 public function sendUserActivationMail (User $ user , string $ key ): void {
51- $ email = ( new TemplatedEmail () )
51+ $ email = new TemplatedEmail ()
5252 ->from (new Address ($ this ->senderEmail , $ this ->senderName ))
5353 ->to (new Address ($ user ->getEmail ()))
5454 ->subject ($ this ->translator ->trans ('userActivation.subject ' , [], self ::TRANSLATE_DOMAIN , $ user ->profile ->language ))
@@ -68,7 +68,7 @@ public function sendUserActivationMail(User $user, string $key): void {
6868 }
6969
7070 public function sendPasswordResetLink (User $ user , ResetPassword $ data ): void {
71- $ email = ( new TemplatedEmail () )
71+ $ email = new TemplatedEmail ()
7272 ->from (new Address ($ this ->senderEmail , $ this ->senderName ))
7373 ->to (new Address ($ user ->getEmail ()))
7474 ->subject ($ this ->translator ->trans ('passwordReset.subject ' , [], self ::TRANSLATE_DOMAIN , $ user ->profile ->language ))
@@ -88,7 +88,7 @@ public function sendPasswordResetLink(User $user, ResetPassword $data): void {
8888 }
8989
9090 public function sendEmailVerificationMail (User $ user , Profile $ data ): void {
91- $ email = ( new TemplatedEmail () )
91+ $ email = new TemplatedEmail ()
9292 ->from (new Address ($ this ->senderEmail , $ this ->senderName ))
9393 ->to (new Address ($ data ->untrustedEmail ))
9494 ->subject ($ this ->translator ->trans ('emailVerification.subject ' , [], self ::TRANSLATE_DOMAIN , $ user ->profile ->language ))
0 commit comments