mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/16955] Add missing docblocks and fix unclear ones
PHPBB3-16955
This commit is contained in:
@@ -35,7 +35,7 @@ class factory
|
||||
*
|
||||
* @param string $name Service name
|
||||
*
|
||||
* @return object|bool Requested service or false if service could not be
|
||||
* @return object|false Requested service or false if service could not be
|
||||
* found by the container
|
||||
*/
|
||||
public function get($name)
|
||||
|
@@ -329,7 +329,7 @@ class filespec
|
||||
* 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)
|
||||
{
|
||||
@@ -343,7 +343,7 @@ class filespec
|
||||
}
|
||||
}
|
||||
|
||||
return $this->mimetype;
|
||||
return $this->mimetype ?: '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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