Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Alignment
James Cole49b1a6d84434
diff --git a/app/Jobs/MailError.php b/app/Jobs/MailError.phpindex 032b15ba50..f76818063a 100644--- a/app/Jobs/MailError.php+++ b/app/Jobs/MailError.php@@ -84,7 +84,7 @@ class MailError extends Job implements ShouldQueue$args,function (Message $message) use ($email) {if ('[email protected]' !== $email) {- $message->to($email, $email)->subject(trans('email.error_subject'));+ $message->to($email, $email)->subject((string) trans('email.error_subject'));}});diff --git a/app/Mail/AccessTokenCreatedMail.php b/app/Mail/AccessTokenCreatedMail.phpindex 96f4c3a594..3837003be1 100644--- a/app/Mail/AccessTokenCreatedMail.php+++ b/app/Mail/AccessTokenCreatedMail.php@@ -63,6 +63,6 @@ class AccessTokenCreatedMail extends Mailablepublic function build(): self{return $this->view('emails.access-token-created-html')->text('emails.access-token-created-text')- ->subject(trans('email.access_token_created_subject'));+ ->subject((string) trans('email.access_token_created_subject'));}}diff --git a/app/Mail/AdminTestMail.php b/app/Mail/AdminTestMail.phpindex c02f50f345..565672cde3 100644--- a/app/Mail/AdminTestMail.php+++ b/app/Mail/AdminTestMail.php@@ -62,6 +62,6 @@ class AdminTestMail extends Mailablepublic function build(): self{return $this->view('emails.admin-test-html')->text('emails.admin-test-text')- ->subject(trans('email.admin_test_subject'));+ ->subject((string) trans('email.admin_test_subject'));}}diff --git a/app/Mail/ConfirmEmailChangeMail.php b/app/Mail/ConfirmEmailChangeMail.phpindex 91d6e6a5cf..21f60197ca 100644--- a/app/Mail/ConfirmEmailChangeMail.php+++ b/app/Mail/ConfirmEmailChangeMail.php@@ -70,6 +70,6 @@ class ConfirmEmailChangeMail extends Mailablepublic function build(): self{return $this->view('emails.confirm-email-change-html')->text('emails.confirm-email-change-text')- ->subject(trans('email.email_change_subject'));+ ->subject((string) trans('email.email_change_subject'));}}diff --git a/app/Mail/OAuthTokenCreatedMail.php b/app/Mail/OAuthTokenCreatedMail.phpindex 72336b0853..1d2d4cced8 100644--- a/app/Mail/OAuthTokenCreatedMail.php+++ b/app/Mail/OAuthTokenCreatedMail.php@@ -67,6 +67,6 @@ class OAuthTokenCreatedMail extends Mailablepublic function build(): self{return $this->view('emails.oauth-client-created-html')->text('emails.oauth-client-created-text')- ->subject(trans('email.oauth_created_subject'));+ ->subject((string) trans('email.oauth_created_subject'));}}diff --git a/app/Mail/RegisteredUser.php b/app/Mail/RegisteredUser.phpindex 1d90ec36e5..1abd4d6caa 100644--- a/app/Mail/RegisteredUser.php+++ b/app/Mail/RegisteredUser.php@@ -61,6 +61,6 @@ class RegisteredUser extends Mailable*/public function build(): self{- return $this->view('emails.registered-html')->text('emails.registered-text')->subject(trans('email.registered_subject'));+ return $this->view('emails.registered-html')->text('emails.registered-text')->subject((string) trans('email.registered_subject'));}}diff --git a/app/Mail/ReportNewJournalsMail.php b/app/Mail/ReportNewJournalsMail.phpindex 14d687b894..a72321dd0c 100644--- a/app/Mail/ReportNewJournalsMail.php+++ b/app/Mail/ReportNewJournalsMail.php@@ -79,7 +79,7 @@ class ReportNewJournalsMail extends Mailable$this->transform();return $this->view('emails.report-new-journals-html')->text('emails.report-new-journals-text')- ->subject(trans_choice('email.new_journals_subject', $this->groups->count() ));+ ->subject((string) trans_choice('email.new_journals_subject', $this->groups->count()));}private function transform(): voiddiff --git a/app/Mail/RequestedNewPassword.php b/app/Mail/RequestedNewPassword.phpindex eccf9a5eb6..a3d2a83a9a 100644--- a/app/Mail/RequestedNewPassword.php+++ b/app/Mail/RequestedNewPassword.php@@ -60,6 +60,6 @@ class RequestedNewPassword extends Mailable*/public function build(): self{- return $this->view('emails.password-html')->text('emails.password-text')->subject(trans('email.reset_pw_subject'));+ return $this->view('emails.password-html')->text('emails.password-text')->subject((string) trans('email.reset_pw_subject'));}}diff --git a/app/Mail/UndoEmailChangeMail.php b/app/Mail/UndoEmailChangeMail.phpindex 0d325bff82..93cc2979c4 100644--- a/app/Mail/UndoEmailChangeMail.php+++ b/app/Mail/UndoEmailChangeMail.php@@ -68,6 +68,6 @@ class UndoEmailChangeMail extends Mailablepublic function build(): self{return $this->view('emails.undo-email-change-html')->text('emails.undo-email-change-text')- ->subject(trans('email.email_change_subject'));+ ->subject((string) trans('email.email_change_subject'));}}diff --git a/resources/lang/en_US/email.php b/resources/lang/en_US/email.phpindex 872c37cc00..45b7f40521 100644--- a/resources/lang/en_US/email.php+++ b/resources/lang/en_US/email.php@@ -24,73 +24,73 @@ declare(strict_types=1);return [// common items- 'greeting' => 'Hi there,',- 'closing' => 'Beep boop,',- 'signature' => 'The Firefly III Mail Robot',- 'footer_ps' => 'PS: This message was sent because a request from IP :ipAddress triggered it.',+ 'greeting' => 'Hi there,',+ 'closing' => 'Beep boop,',+ 'signature' => 'The Firefly III Mail Robot',+ 'footer_ps' => 'PS: This message was sent because a request from IP :ipAddress triggered it.',// admin test- 'admin_test_subject' => 'A test message from your Firefly III installation',- 'admin_test_body' => 'This is a test message from your Firefly III instance. It was sent to :email.',+ 'admin_test_subject' => 'A test message from your Firefly III installation',+ 'admin_test_body' => 'This is a test message from your Firefly III instance. It was sent to :email.',// access token created- 'access_token_created_subject' => 'A new access token was created',- 'access_token_created_body' => 'Somebody (hopefully you) just created a new Firefly III API Access Token for your user account.',+ 'access_token_created_subject' => 'A new access token was created',+ 'access_token_created_body' => 'Somebody (hopefully you) just created a new Firefly III API Access Token for your user account.','access_token_created_explanation' => 'With this token, they can access <strong>all</strong> of your financial records through the Firefly III API.',- 'access_token_created_revoke' => 'If this wasn\'t you, please revoke this token as soon as possible at :url.',+ 'access_token_created_revoke' => 'If this wasn\'t you, please revoke this token as soon as possible at :url.',// registered- 'registered_subject' => 'Welcome to Firefly III!',- 'registered_welcome' => 'Welcome to <a style="color:#337ab7" href=":address">Firefly III</a>. Your registration has made it, and this email is here to confirm it. Yay!',- 'registered_pw' => 'If you have forgotten your password already, please reset it using <a style="color:#337ab7" href=":address/password/reset">the password reset tool</a>.',- 'registered_help' => 'There is a help-icon in the top right corner of each page. If you need help, click it!',- 'registered_doc_html' => 'If you haven\'t already, please read the <a style="color:#337ab7" href="https://docs.firefly-iii.org/about-firefly-iii/grand-theory">grand theory</a>.',- 'registered_doc_text' => 'If you haven\'t already, please read the first use guide and the full description.',- 'registered_closing' => 'Enjoy!',- 'registered_firefly_iii_link' => 'Firefly III:',- 'registered_pw_reset_link' => 'Password reset:',- 'registered_doc_link' => 'Documentation:',+ 'registered_subject' => 'Welcome to Firefly III!',+ 'registered_welcome' => 'Welcome to <a style="color:#337ab7" href=":address">Firefly III</a>. Your registration has made it, and this email is here to confirm it. Yay!',+ 'registered_pw' => 'If you have forgotten your password already, please reset it using <a style="color:#337ab7" href=":address/password/reset">the password reset tool</a>.',+ 'registered_help' => 'There is a help-icon in the top right corner of each page. If you need help, click it!',+ 'registered_doc_html' => 'If you haven\'t already, please read the <a style="color:#337ab7" href="https://docs.firefly-iii.org/about-firefly-iii/grand-theory">grand theory</a>.',+ 'registered_doc_text' => 'If you haven\'t already, please read the first use guide and the full description.',+ 'registered_closing' => 'Enjoy!',+ 'registered_firefly_iii_link' => 'Firefly III:',+ 'registered_pw_reset_link' => 'Password reset:',+ 'registered_doc_link' => 'Documentation:',// email change- 'email_change_subject' => 'Your Firefly III email address has changed',- 'email_change_body_to_new' => 'You or somebody with access to your Firefly III account has changed your email address. If you did not expect this message, please ignore and delete it.',- 'email_change_body_to_old' => 'You or somebody with access to your Firefly III account has changed your email address. If you did not expect this to happen, you <strong>must</strong> follow the "undo"-link below to protect your account!',- 'email_change_ignore' => 'If you initiated this change, you may safely ignore this message.',- 'email_change_old' => 'The old email address was: :email',- 'email_change_old_strong' => 'The old email address was: <strong>:email</strong>',- 'email_change_new' => 'The new email address is: :email',- 'email_change_new_strong' => 'The new email address is: <strong>:email</strong>',- 'email_change_instructions' => 'You cannot use Firefly III until you confirm this change. Please follow the link below to do so.',- 'email_change_undo_link' => 'To undo the change, follow this link:',+ 'email_change_subject' => 'Your Firefly III email address has changed',+ 'email_change_body_to_new' => 'You or somebody with access to your Firefly III account has changed your email address. If you did not expect this message, please ignore and delete it.',+ 'email_change_body_to_old' => 'You or somebody with access to your Firefly III account has changed your email address. If you did not expect this to happen, you <strong>must</strong> follow the "undo"-link below to protect your account!',+ 'email_change_ignore' => 'If you initiated this change, you may safely ignore this message.',+ 'email_change_old' => 'The old email address was: :email',+ 'email_change_old_strong' => 'The old email address was: <strong>:email</strong>',+ 'email_change_new' => 'The new email address is: :email',+ 'email_change_new_strong' => 'The new email address is: <strong>:email</strong>',+ 'email_change_instructions' => 'You cannot use Firefly III until you confirm this change. Please follow the link below to do so.',+ 'email_change_undo_link' => 'To undo the change, follow this link:',// OAuth token created- 'oauth_created_subject' => 'A new OAuth client has been created',- 'oauth_created_body' => 'Somebody (hopefully you) just created a new Firefly III API OAuth Client for your user account. It\'s labeled ":name" and has callback URL <span style="font-family: monospace;">:url</span>.',- 'oauth_created_explanation' => 'With this client, they can access <strong>all</strong> of your financial records through the Firefly III API.',- 'oauth_created_undo' => 'If this wasn\'t you, please revoke this client as soon as possible at :url.',+ 'oauth_created_subject' => 'A new OAuth client has been created',+ 'oauth_created_body' => 'Somebody (hopefully you) just created a new Firefly III API OAuth Client for your user account. It\'s labeled ":name" and has callback URL <span style="font-family: monospace;">:url</span>.',+ 'oauth_created_explanation' => 'With this client, they can access <strong>all</strong> of your financial records through the Firefly III API.',+ 'oauth_created_undo' => 'If this wasn\'t you, please revoke this client as soon as possible at :url.',// reset password- 'reset_pw_subject' => 'Your password reset request',- 'reset_pw_instructions' => 'Somebody tried to reset your password. If it was you, please follow the link below to do so.',- 'reset_pw_warning' => '<strong>PLEASE</strong> verify that the link actually goes to the Firefly III you expect it to go!',+ 'reset_pw_subject' => 'Your password reset request',+ 'reset_pw_instructions' => 'Somebody tried to reset your password. If it was you, please follow the link below to do so.',+ 'reset_pw_warning' => '<strong>PLEASE</strong> verify that the link actually goes to the Firefly III you expect it to go!',// error- 'error_subject' => 'Caught an error in Firefly III',- 'error_intro' => 'Firefly III v:version ran into an error: <span style="font-family: monospace;">:errorMessage</span>.',- 'error_type' => 'The error was of type ":class".',- 'error_timestamp' => 'The error occurred on/at: :time.',- 'error_location' => 'This error occurred in file "<span style="font-family: monospace;">:file</span>" on line :line with code :code.',- 'error_user' => 'The error was encountered by user #:id, <a href="mailto::email">:email</a>.',- 'error_no_user' => 'There was no user logged in for this error or no user was detected.',- 'error_ip' => 'The IP address related to this error is: :ip',- 'error_url' => 'URL is: :url',- 'error_user_agent' => 'User agent: :userAgent',- 'error_stacktrace' => 'The full stacktrace is below. If you think this is a bug in Firefly III, you can forward this message to <a href="mailto:[email protected]?subject=BUG!">[email protected]</a>. This can help fix the bug you just encountered.',- 'error_github_html' => 'If you prefer, you can also open a new issue on <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub</a>.',- 'error_github_text' => 'If you prefer, you can also open a new issue on https://github.com/firefly-iii/firefly-iii/issues.',- 'error_stacktrace_below' => 'The full stacktrace is below:',+ 'error_subject' => 'Caught an error in Firefly III',+ 'error_intro' => 'Firefly III v:version ran into an error: <span style="font-family: monospace;">:errorMessage</span>.',+ 'error_type' => 'The error was of type ":class".',+ 'error_timestamp' => 'The error occurred on/at: :time.',+ 'error_location' => 'This error occurred in file "<span style="font-family: monospace;">:file</span>" on line :line with code :code.',+ 'error_user' => 'The error was encountered by user #:id, <a href="mailto::email">:email</a>.',+ 'error_no_user' => 'There was no user logged in for this error or no user was detected.',+ 'error_ip' => 'The IP address related to this error is: :ip',+ 'error_url' => 'URL is: :url',+ 'error_user_agent' => 'User agent: :userAgent',+ 'error_stacktrace' => 'The full stacktrace is below. If you think this is a bug in Firefly III, you can forward this message to <a href="mailto:[email protected]?subject=BUG!">[email protected]</a>. This can help fix the bug you just encountered.',+ 'error_github_html' => 'If you prefer, you can also open a new issue on <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub</a>.',+ 'error_github_text' => 'If you prefer, you can also open a new issue on https://github.com/firefly-iii/firefly-iii/issues.',+ 'error_stacktrace_below' => 'The full stacktrace is below:',// report new journals- 'new_journals_subject' => 'Firefly III has created a new transaction|Firefly III has created :count new transactions',- 'new_journals_header' => 'Firefly III has created a transaction for you. You can find it in your Firefly III installation:|Firefly III has created :count transactions for you. You can find them in your Firefly III installation:'+ 'new_journals_subject' => 'Firefly III has created a new transaction|Firefly III has created :count new transactions',+ 'new_journals_header' => 'Firefly III has created a transaction for you. You can find it in your Firefly III installation:|Firefly III has created :count transactions for you. You can find them in your Firefly III installation:',];