Skip to content

Commit e4c8984

Browse files
committed
[ticket/17490] Remove not needed returns
PHPBB-17490
1 parent d5717b5 commit e4c8984

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

phpBB/phpbb/messenger/method/base.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ abstract public function process_queue(array &$queue_data): void;
216216
* @param string $template_path Email template path
217217
* @param string $template_dir_prefix Email template directory prefix
218218
*
219-
* @return bool
219+
* @return void
220220
*/
221-
public function template(string $template_file, string $template_lang = '', string $template_path = '', string $template_dir_prefix = ''): bool
221+
public function template(string $template_file, string $template_lang = '', string $template_path = '', string $template_dir_prefix = ''): void
222222
{
223223
$template_dir_prefix = (!$template_dir_prefix || $template_dir_prefix[0] === '/') ? $template_dir_prefix : '/' . $template_dir_prefix;
224224

@@ -290,8 +290,6 @@ public function template(string $template_file, string $template_lang = '', stri
290290
$this->template->set_filenames([
291291
'body' => $template_file . '.txt',
292292
]);
293-
294-
return true;
295293
}
296294

297295
/**
@@ -487,6 +485,5 @@ protected function set_template_paths(string|array $path_name, string|array $pat
487485
*/
488486
public function header(string $header_name, mixed $header_value): void
489487
{
490-
return;
491488
}
492489
}

0 commit comments

Comments
 (0)