mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Completely type hint template functions and switch to named arguments
This commit is contained in:
parent
6108b5e53d
commit
124e8343fc
125 changed files with 542 additions and 450 deletions
|
@ -217,8 +217,8 @@ catch(Exception $ex){
|
|||
$em = new Email(true);
|
||||
$em->To = ADMIN_EMAIL_ADDRESS;
|
||||
$em->Subject = 'Ingesting FA donations failed';
|
||||
$em->Body = Template::EmailDonationProcessingFailed(['exception' => preg_replace('/^/m', "\t", $exceptionString)]);
|
||||
$em->TextBody = Template::EmailDonationProcessingFailedText(['exception' => preg_replace('/^/m', "\t", $exceptionString)]);
|
||||
$em->Body = Template::EmailDonationProcessingFailed(exception: preg_replace('/^/m', "\t", $exceptionString));
|
||||
$em->TextBody = Template::EmailDonationProcessingFailedText(exception: preg_replace('/^/m', "\t", $exceptionString));
|
||||
$em->Send();
|
||||
|
||||
throw $ex;
|
||||
|
|
|
@ -277,8 +277,8 @@ try{
|
|||
$em->To = ADMIN_EMAIL_ADDRESS;
|
||||
$em->From = ADMIN_EMAIL_ADDRESS;
|
||||
$em->Subject = 'New Patrons Circle member';
|
||||
$em->Body = Template::EmailAdminNewPatron(['patron' => $patron, 'payment' => $payment]);
|
||||
$em->TextBody = Template::EmailAdminNewPatronText(['patron' => $patron, 'payment' => $payment]);;
|
||||
$em->Body = Template::EmailAdminNewPatron(patron: $patron, payment: $payment);
|
||||
$em->TextBody = Template::EmailAdminNewPatronText(patron: $patron, payment: $payment);;
|
||||
$em->Send();
|
||||
}
|
||||
}
|
||||
|
@ -324,8 +324,8 @@ catch(Exception $ex){
|
|||
$em = new Email(true);
|
||||
$em->To = ADMIN_EMAIL_ADDRESS;
|
||||
$em->Subject = 'Donation processing failed';
|
||||
$em->Body = Template::EmailDonationProcessingFailed(['exception' => preg_replace('/^/m', "\t", $exceptionString)]);
|
||||
$em->TextBody = Template::EmailDonationProcessingFailedText(['exception' => preg_replace('/^/m', "\t", $exceptionString)]);
|
||||
$em->Body = Template::EmailDonationProcessingFailed(exception: preg_replace('/^/m', "\t", $exceptionString));
|
||||
$em->TextBody = Template::EmailDonationProcessingFailedText(exception: preg_replace('/^/m', "\t", $exceptionString));
|
||||
$em->Send();
|
||||
|
||||
throw $ex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue