fixing PHPDoc comments and syntax

This commit is contained in:
Thomas Müller 2013-11-22 12:34:37 +01:00
parent f94a6eb166
commit 92c8672c0f
3 changed files with 6 additions and 4 deletions

View File

@ -54,7 +54,9 @@ class OC_Avatar implements \OCP\IAvatar {
$img = new OC_Image($data);
$type = substr($img->mimeType(), -3);
if ($type === 'peg') { $type = 'jpg'; }
if ($type === 'peg') {
$type = 'jpg';
}
if ($type !== 'jpg' && $type !== 'png') {
$l = \OC_L10N::get('lib');
throw new \Exception($l->t("Unknown filetype"));

View File

@ -132,7 +132,7 @@ class Server extends SimpleContainer implements IServerContainer {
return new ActivityManager();
});
$this->registerService('AvatarManager', function($c) {
return new AvatarManager(); //TODO AvatarManager needs $user
return new AvatarManager();
});
}
@ -176,7 +176,7 @@ class Server extends SimpleContainer implements IServerContainer {
/**
* Returns the avatar manager, used for avatar functionality
*
* @return \OCP\IAvatar
* @return \OCP\IAvatarManager
*/
function getAvatarManager() {
return $this->query('AvatarManager');

View File

@ -156,7 +156,7 @@ interface IServerContainer {
/**
* @brief Returns an avatar manager, used for avatar functionality
* @return \OCP\IAvatar
* @return \OCP\IAvatarManager
*/
function getAvatarManager();