[ticket/17490] Remove not needed returns

PHPBB-17490
This commit is contained in:
Marc Alexander 2025-04-07 19:39:07 +02:00
parent d5717b541e
commit e4c8984bf3
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -216,9 +216,9 @@ abstract class base implements messenger_interface
* @param string $template_path Email template path * @param string $template_path Email template path
* @param string $template_dir_prefix Email template directory prefix * @param string $template_dir_prefix Email template directory prefix
* *
* @return bool * @return void
*/ */
public function template(string $template_file, string $template_lang = '', string $template_path = '', string $template_dir_prefix = ''): bool public function template(string $template_file, string $template_lang = '', string $template_path = '', string $template_dir_prefix = ''): void
{ {
$template_dir_prefix = (!$template_dir_prefix || $template_dir_prefix[0] === '/') ? $template_dir_prefix : '/' . $template_dir_prefix; $template_dir_prefix = (!$template_dir_prefix || $template_dir_prefix[0] === '/') ? $template_dir_prefix : '/' . $template_dir_prefix;
@ -290,8 +290,6 @@ abstract class base implements messenger_interface
$this->template->set_filenames([ $this->template->set_filenames([
'body' => $template_file . '.txt', 'body' => $template_file . '.txt',
]); ]);
return true;
} }
/** /**
@ -487,6 +485,5 @@ abstract class base implements messenger_interface
*/ */
public function header(string $header_name, mixed $header_value): void public function header(string $header_name, mixed $header_value): void
{ {
return;
} }
} }