diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-22 12:34:37 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-22 12:34:37 +0100 |
commit | 92c8672c0f4cae5881abdb4832955e3fa6ae6350 (patch) | |
tree | c65528084d9de9dc57ddb928c74a657e770d0565 /lib | |
parent | f94a6eb1669cbdae45ccd76ecc4c07988ecddecf (diff) | |
download | nextcloud-server-92c8672c0f4cae5881abdb4832955e3fa6ae6350.tar.gz nextcloud-server-92c8672c0f4cae5881abdb4832955e3fa6ae6350.zip |
fixing PHPDoc comments and syntax
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/avatar.php | 4 | ||||
-rw-r--r-- | lib/private/server.php | 4 | ||||
-rw-r--r-- | lib/public/iservercontainer.php | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/avatar.php b/lib/private/avatar.php index e82e517b091..814a9b22bed 100644 --- a/lib/private/avatar.php +++ b/lib/private/avatar.php @@ -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")); diff --git a/lib/private/server.php b/lib/private/server.php index 7711269acf7..77c3732a9ca 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -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'); diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php index 6556b52c3b0..36296a59850 100644 --- a/lib/public/iservercontainer.php +++ b/lib/public/iservercontainer.php @@ -156,7 +156,7 @@ interface IServerContainer { /** * @brief Returns an avatar manager, used for avatar functionality - * @return \OCP\IAvatar + * @return \OCP\IAvatarManager */ function getAvatarManager(); |