diff --git a/lib/private/user/session.php b/lib/private/user/session.php index 9324ef2f42c0b50528b3c7f3952c59628bb0b62b..3cd83aae52f70c8e07ded04239a75564ccc7cee6 100644 --- a/lib/private/user/session.php +++ b/lib/private/user/session.php @@ -121,7 +121,7 @@ class Session implements IUserSession, Emitter { /** * get the current active user * - * @return \OC\User\User + * @return \OCP\IUser|null Current user, otherwise null */ public function getUser() { // FIXME: This is a quick'n dirty work-around for the incognito mode as @@ -143,7 +143,7 @@ class Session implements IUserSession, Emitter { } /** - * Checks wether the user is logged in + * Checks whether the user is logged in * * @return bool if logged in */ diff --git a/lib/public/iusersession.php b/lib/public/iusersession.php index 4c5b4d1ba51cf8556929180283cfa204c2629643..7128366590f97f8ef3d8c349511063a80db50ccd 100644 --- a/lib/public/iusersession.php +++ b/lib/public/iusersession.php @@ -61,12 +61,12 @@ interface IUserSession { /** * get the current active user * - * @return \OCP\IUser + * @return \OCP\IUser|null Current user, otherwise null */ public function getUser(); /** - * Checks wether the user is logged in + * Checks whether the user is logged in * * @return bool if logged in */