diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-18 17:09:25 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-19 15:46:41 -0500 |
commit | 16c4755e03f2a79437418a732cb8a6cfb5178cf9 (patch) | |
tree | f44d220f06e497be12d9e91c07ec8e32f3c72ec6 /lib | |
parent | 01c9d00e1d6f5c558cade0689283fea953b3f581 (diff) | |
download | nextcloud-server-16c4755e03f2a79437418a732cb8a6cfb5178cf9.tar.gz nextcloud-server-16c4755e03f2a79437418a732cb8a6cfb5178cf9.zip |
Rename renderHTML to renderHtml
* fixes #4383
* improves consistency
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Mail/EMailTemplate.php | 4 | ||||
-rw-r--r-- | lib/public/Mail/IEMailTemplate.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Mail/EMailTemplate.php b/lib/private/Mail/EMailTemplate.php index 7384069f430..4e00eb153a3 100644 --- a/lib/private/Mail/EMailTemplate.php +++ b/lib/private/Mail/EMailTemplate.php @@ -34,7 +34,7 @@ use OCP\Mail\IEMailTemplate; * Class EMailTemplate * * addBodyText and addBodyButtonGroup automatically opens the body - * addFooter, renderHTML, renderText automatically closes the body and the HTML if opened + * addFooter, renderHtml, renderText automatically closes the body and the HTML if opened * * @package OC\Mail */ @@ -484,7 +484,7 @@ EOF; * * @return string */ - public function renderHTML() { + public function renderHtml() { if (!$this->footerAdded) { $this->footerAdded = true; if ($this->bodyOpened) { diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php index ab7713e8e2c..05e2fe92beb 100644 --- a/lib/public/Mail/IEMailTemplate.php +++ b/lib/public/Mail/IEMailTemplate.php @@ -45,7 +45,7 @@ namespace OCP\Mail; * * $emailTemplate->addFooter('Optional footer text'); * - * $htmlContent = $emailTemplate->renderHTML(); + * $htmlContent = $emailTemplate->renderHtml(); * $plainContent = $emailTemplate->renderText(); * * @since 12.0.0 @@ -122,7 +122,7 @@ interface IEMailTemplate { * * @since 12.0.0 */ - public function renderHTML(); + public function renderHtml(); /** * Returns the rendered plain text email as string |