mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[feature/avatars] Fix docblocks and minor cosmetic issues
PHPBB3-10018
This commit is contained in:
@@ -85,16 +85,11 @@ class phpbb_avatar_manager
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
* There is no need to handle invalid avatar types as the following code
|
||||
* will cause a ServiceNotFoundException if the type does not exist
|
||||
*/
|
||||
$driver = $this->container->get($avatar_type);
|
||||
if ($driver !== false)
|
||||
{
|
||||
return $driver;
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = "Invalid avatar driver class name '%s' provided.";
|
||||
trigger_error(sprintf($message, $avatar_type));
|
||||
}
|
||||
|
||||
return $driver;
|
||||
}
|
||||
|
Reference in New Issue
Block a user