mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/16955] Add missing docblocks and fix unclear ones
PHPBB3-16955
This commit is contained in:
@@ -313,7 +313,7 @@ class filespec_storage
|
||||
* Get mime type
|
||||
*
|
||||
* @param string $filename Filename that needs to be checked
|
||||
* @return string|false Mime type of supplied filename or false if mimetype could not be guessed
|
||||
* @return string Mime type of supplied filename or empty string if mimetype could not be guessed
|
||||
*/
|
||||
public function get_mimetype($filename)
|
||||
{
|
||||
@@ -327,7 +327,7 @@ class filespec_storage
|
||||
}
|
||||
}
|
||||
|
||||
return $this->mimetype;
|
||||
return $this->mimetype ?: '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user