Merge pull request #12969 from owncloud/clarify-docs
Clarify return values
This commit is contained in:
commit
5d296aa6b1
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue