Skip to content

Commit

Permalink
[TASK] Adapted suggestion and removed short hand usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hojalatheef committed Jan 9, 2025
1 parent decb8b1 commit 865aa48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Mailer/NotificationMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function informAdmin(array $company): void

private function translateSubject(string $type, string $recipient): string
{
return LocalizationUtility::translate("email.subject.{$type}.{$recipient}", 'yellowpages2') ?? '';
$translationKey = sprintf('email.subject.%s.%s', $type, $recipient);
return LocalizationUtility::translate($translationKey, 'yellowpages2') ?? '';
}

private function translateBody(string $type, string $recipient, array $arguments): string
Expand Down

0 comments on commit 865aa48

Please sign in to comment.