mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup
This commit is contained in:
@@ -50,7 +50,7 @@ class AccessTokenCreatedMail extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.token-created')
|
||||
->subject((string)trans('email.access_token_created_subject'))
|
||||
->subject((string) trans('email.access_token_created_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ class AdminTestMail extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.admin-test')
|
||||
->subject((string)trans('email.admin_test_subject'))
|
||||
->subject((string) trans('email.admin_test_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -58,9 +58,9 @@ class BillWarningMail extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
$subject = (string)trans(sprintf('email.bill_warning_subject_%s', $this->field), ['diff' => $this->diff, 'name' => $this->bill->name]);
|
||||
$subject = (string) trans(sprintf('email.bill_warning_subject_%s', $this->field), ['diff' => $this->diff, 'name' => $this->bill->name]);
|
||||
if (0 === $this->diff) {
|
||||
$subject = (string)trans(sprintf('email.bill_warning_subject_now_%s', $this->field), ['diff' => $this->diff, 'name' => $this->bill->name]);
|
||||
$subject = (string) trans(sprintf('email.bill_warning_subject_now_%s', $this->field), ['diff' => $this->diff, 'name' => $this->bill->name]);
|
||||
}
|
||||
|
||||
return $this
|
||||
|
@@ -62,7 +62,7 @@ class ConfirmEmailChangeMail extends Mailable
|
||||
// ->view('emails.confirm-email-change-html')
|
||||
// ->text('emails.confirm-email-change-text')
|
||||
->markdown('emails.confirm-email-change')
|
||||
->subject((string)trans('email.email_change_subject'))
|
||||
->subject((string) trans('email.email_change_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -49,7 +49,7 @@ class InvitationMail extends Mailable
|
||||
$this->invitee = $invitee;
|
||||
$this->admin = $admin;
|
||||
$this->url = $url;
|
||||
$this->host = (string)parse_url($url, PHP_URL_HOST);
|
||||
$this->host = (string) parse_url($url, PHP_URL_HOST);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ class InvitationMail extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.invitation')
|
||||
->subject((string)trans('email.invite_user_subject'))
|
||||
->subject((string) trans('email.invite_user_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ class NewIPAddressWarningMail extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
$this->time = now(config('app.timezone'))->isoFormat((string)trans('config.date_time_js'));
|
||||
$this->time = now(config('app.timezone'))->isoFormat((string) trans('config.date_time_js'));
|
||||
$this->host = '';
|
||||
|
||||
try {
|
||||
@@ -71,7 +71,7 @@ class NewIPAddressWarningMail extends Mailable
|
||||
|
||||
return $this
|
||||
->markdown('emails.new-ip')
|
||||
->subject((string)trans('email.login_from_new_ip'))
|
||||
->subject((string) trans('email.login_from_new_ip'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ class OAuthTokenCreatedMail extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.oauth-client-created')
|
||||
->subject((string)trans('email.oauth_created_subject'))
|
||||
->subject((string) trans('email.oauth_created_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ class RegisteredUser extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.registered')
|
||||
->subject((string)trans('email.registered_subject'))
|
||||
->subject((string) trans('email.registered_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ class RequestedNewPassword extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.password')
|
||||
->subject((string)trans('email.reset_pw_subject'))
|
||||
->subject((string) trans('email.reset_pw_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@@ -58,7 +58,7 @@ class UndoEmailChangeMail extends Mailable
|
||||
{
|
||||
return $this
|
||||
->markdown('emails.undo-email-change')
|
||||
->subject((string)trans('email.email_change_subject'))
|
||||
->subject((string) trans('email.email_change_subject'))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user