1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16955] Fix phpdoc annotations and return types

PHPBB3-16955
This commit is contained in:
Ruben Calvo
2022-12-31 14:58:14 +01:00
parent 60aee47f50
commit 3e8fced5c8
73 changed files with 251 additions and 205 deletions

View File

@@ -100,7 +100,7 @@ class plupload
// and handle the file as usual
if ($chunks_expected < 2)
{
return;
return null;
}
$file_name = $this->request->variable('name', '');
@@ -150,7 +150,7 @@ class plupload
* @param int $forum_id The ID of the forum
* @param int $max_files Maximum number of files allowed. 0 for unlimited.
*
* @return null
* @return void
*/
public function configure(\phpbb\cache\service $cache, \phpbb\template\template $template, $s_action, $forum_id, $max_files)
{
@@ -200,7 +200,7 @@ class plupload
* @param int $code The error code
* @param string $msg The translation string of the message to be sent
*
* @return null
* @return void
*/
public function emit_error($code, $msg)
{
@@ -331,7 +331,7 @@ class plupload
* @param int $chunk Chunk number
* @param string $file_path File path
*
* @return null
* @return void
*/
protected function integrate_uploaded_file($form_name, $chunk, $file_path)
{
@@ -378,7 +378,7 @@ class plupload
/**
* Creates the temporary directory if it does not already exist.
*
* @return null
* @return void
*/
protected function prepare_temporary_directory()
{
@@ -396,7 +396,7 @@ class plupload
/**
* Sets the default directories for uploads
*
* @return null
* @return void
*/
protected function set_default_directories()
{
@@ -410,7 +410,7 @@ class plupload
* @param string $upload_directory Upload directory
* @param string $temporary_directory Temporary directory
*
* @return null
* @return void
*/
public function set_upload_directories($upload_directory, $temporary_directory)
{