From e8b45caa510e9470dfd0c49abfa387af0b8ae204 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 14 Jan 2013 19:57:28 +0100 Subject: [PATCH 1/2] Remove uneeded return Thx @Raydiation --- lib/user.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/user.php b/lib/user.php index 80f88ca705..e3686e32e1 100644 --- a/lib/user.php +++ b/lib/user.php @@ -260,12 +260,9 @@ class OC_User { /** * @brief Sets user id for session and triggers emit - * @returns true - * */ public static function setUserId($uid) { $_SESSION['user_id'] = $uid; - return true; } /** From cc00c54f6a2561c6bafa51e8f4da53ae4773922b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 14 Jan 2013 20:18:08 +0100 Subject: [PATCH 2/2] Remove uneeded returns --- lib/public/user.php | 4 +--- lib/user.php | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/public/user.php b/lib/public/user.php index 9e50115ab7..e297b716dc 100644 --- a/lib/public/user.php +++ b/lib/public/user.php @@ -73,12 +73,10 @@ class User { } /** * @brief Loggs the user out including all the session data - * @returns true - * * Logout, destroys session */ public static function logout() { - return \OC_USER::logout(); + \OC_USER::logout(); } /** diff --git a/lib/user.php b/lib/user.php index e3686e32e1..e75c7d9b68 100644 --- a/lib/user.php +++ b/lib/user.php @@ -267,7 +267,6 @@ class OC_User { /** * @brief Logs the current user out and kills all the session data - * @returns true * * Logout, destroys session */ @@ -276,7 +275,6 @@ class OC_User { session_unset(); session_destroy(); OC_User::unsetMagicInCookie(); - return true; } /**