Completed
Pull Request — master (#24189)
by Christoph
14:12
created
lib/private/user/session.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 	/**
176 176
 	 * get the current active user
177 177
 	 *
178
-	 * @return IUser|null Current user, otherwise null
178
+	 * @return null|User Current user, otherwise null
179 179
 	 */
180 180
 	public function getUser() {
181 181
 		// FIXME: This is a quick'n dirty work-around for the incognito mode as
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 	 *
279 279
 	 * @param string $uid
280 280
 	 * @param string $password
281
-	 * @return boolean
281
+	 * @return boolean|null
282 282
 	 * @throws LoginException
283 283
 	 */
284 284
 	public function login($uid, $password) {
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 	 * Tries to login the user with HTTP Basic Authentication
329 329
 	 *
330 330
 	 * @param IRequest $request
331
-	 * @return boolean if the login was successful
331
+	 * @return boolean|null if the login was successful
332 332
 	 */
333 333
 	public function tryBasicAuthLogin(IRequest $request) {
334 334
 		// TODO: use $request->server instead of super globals
@@ -351,6 +351,9 @@  discard block
 block discarded – undo
351 351
 		return false;
352 352
 	}
353 353
 
354
+	/**
355
+	 * @param string $uid
356
+	 */
354 357
 	private function loginWithToken($uid) {
355 358
 		//$this->manager->emit('\OC\User', 'preTokenLogin', array($uid));
356 359
 		$user = $this->manager->get($uid);
@@ -371,7 +374,7 @@  discard block
 block discarded – undo
371 374
 	 * @param IRequest $request
372 375
 	 * @param string $uid user UID
373 376
 	 * @param string $password
374
-	 * @return boolean
377
+	 * @return boolean|null
375 378
 	 */
376 379
 	public function createSessionToken(IRequest $request, $uid, $password) {
377 380
 		if (is_null($this->manager->get($uid))) {
Please login to merge, or discard this patch.