Skip to content

Commit

Permalink
Return types and docblocks for new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pabzm committed Feb 21, 2025
1 parent ad951c3 commit afb91ac
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions program/actions/mail/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,13 @@ public static function message_part_frame($attrib)
return html::iframe($attrib);
}

protected function send_html($contents, $inline_warning = null)
/**
* @param $contents string Content to send as HTTP body.
* @param $inline_warning string Something to inject into the beginning of the content.
*
* @return void
*/
protected function send_html($contents, $inline_warning = null): void
{
$rcmail = rcmail::get_instance();
$rcmail->output->reset(true);
Expand Down Expand Up @@ -383,7 +389,14 @@ protected function send_html($contents, $inline_warning = null)
$rcmail->output->sendExit();
}

protected function make_inline_warning($text, $button_label = null, $button_url = null)
/**
* @param $text string Text content
* @param $button_label string Text for the optional button to append to the content
* @param $button_url string URL of the button
* @return string HTML code as string
*/
protected function make_inline_warning($text, $button_label = null, $button_url = null): string
{
$text = html::span(null, $text);

Expand Down

0 comments on commit afb91ac

Please sign in to comment.