1
0
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:
Marc Alexander
2012-12-01 00:27:52 +01:00
parent 081440f6c4
commit d439f47710
6 changed files with 26 additions and 22 deletions

View File

@@ -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;
}