Merge pull request #12969 from owncloud/clarify-docs

Clarify return values
This commit is contained in:
Morris Jobke 2014-12-22 10:01:39 +01:00
commit 5d296aa6b1
2 changed files with 4 additions and 4 deletions

View File

@ -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
*/

View File

@ -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
*/