diff options
author | Brad Rubenstein <brad@wbr.tech> | 2020-09-02 17:16:24 +0200 |
---|---|---|
committer | Brad Rubenstein <brad@wbr.tech> | 2020-09-02 17:54:36 +0200 |
commit | 442af8c5d57797bf255db036c8c04ab48f36c3a1 (patch) | |
tree | 579ba91c0f93a21023477d73fdc9a4f887e1ea41 /lib/public/Mail | |
parent | b0687b1182e0c2da8873b2224d299f4c933f29db (diff) | |
download | nextcloud-server-442af8c5d57797bf255db036c8c04ab48f36c3a1.tar.gz nextcloud-server-442af8c5d57797bf255db036c8c04ab48f36c3a1.zip |
Minor cleanup: php-cs-fixer, tests, interface consistency
IMipPlugin.php Removed blank lines to make php-cs-fixer happy.
Minor cleanup: bugs found by Psalm static checker
IEMailTemplate: The public interface to addBodyListItem also needs to include the new plainIndent parameter.
IMipPlugin: Fixes an undefined variable for events that do not have DTEND. Also use explicit string conversion for parameters and properties in several places.
The new email template adds an additional blank line before "button" links in plain text, so the tests were fixed to include that additional blank line.
Signed-off-by: Brad Rubenstein <brad@wbr.tech>
Diffstat (limited to 'lib/public/Mail')
-rw-r--r-- | lib/public/Mail/IEMailTemplate.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php index 70046d5c508..5f4e235a7ee 100644 --- a/lib/public/Mail/IEMailTemplate.php +++ b/lib/public/Mail/IEMailTemplate.php @@ -106,9 +106,10 @@ interface IEMailTemplate { * if empty the $text is used, if false none will be used * @param string|bool $plainMetaInfo Meta info that is used in the plain text email * if empty the $metaInfo is used, if false none will be used + * @param integer plainIndent If > 0, Indent plainText by this amount. * @since 12.0.0 */ - public function addBodyListItem(string $text, string $metaInfo = '', string $icon = '', $plainText = '', $plainMetaInfo = ''); + public function addBodyListItem(string $text, string $metaInfo = '', string $icon = '', $plainText = '', $plainMetaInfo = '', $plainIndent = 0); /** * Adds a button group of two buttons to the body of the email |