Skip to content

Commit afb91ac

Browse files
committed
Return types and docblocks for new methods
1 parent ad951c3 commit afb91ac

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

program/actions/mail/get.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,13 @@ public static function message_part_frame($attrib)
349349
return html::iframe($attrib);
350350
}
351351

352-
protected function send_html($contents, $inline_warning = null)
352+
/**
353+
* @param $contents string Content to send as HTTP body.
354+
* @param $inline_warning string Something to inject into the beginning of the content.
355+
*
356+
* @return void
357+
*/
358+
protected function send_html($contents, $inline_warning = null): void
353359
{
354360
$rcmail = rcmail::get_instance();
355361
$rcmail->output->reset(true);
@@ -383,7 +389,14 @@ protected function send_html($contents, $inline_warning = null)
383389
$rcmail->output->sendExit();
384390
}
385391

386-
protected function make_inline_warning($text, $button_label = null, $button_url = null)
392+
/**
393+
* @param $text string Text content
394+
* @param $button_label string Text for the optional button to append to the content
395+
* @param $button_url string URL of the button
396+
397+
* @return string HTML code as string
398+
*/
399+
protected function make_inline_warning($text, $button_label = null, $button_url = null): string
387400
{
388401
$text = html::span(null, $text);
389402

0 commit comments

Comments
 (0)