diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-19 15:37:03 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-01 08:20:13 +0200 |
commit | e1f52fc9019856d52466d9b796ce738e31f1c4ca (patch) | |
tree | 489387720f34360dc58e9f29fb800e1e2af26145 /tests/lib/Util/User | |
parent | 456392e627de3aad19c8188974a4972cf4e274db (diff) | |
download | nextcloud-server-e1f52fc9019856d52466d9b796ce738e31f1c4ca.tar.gz nextcloud-server-e1f52fc9019856d52466d9b796ce738e31f1c4ca.zip |
Stricter phan config fixes
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/Util/User')
-rw-r--r-- | tests/lib/Util/User/Dummy.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Util/User/Dummy.php b/tests/lib/Util/User/Dummy.php index ea47f5d7d15..806a97bacba 100644 --- a/tests/lib/Util/User/Dummy.php +++ b/tests/lib/Util/User/Dummy.php @@ -95,7 +95,7 @@ class Dummy extends Backend implements \OCP\IUserBackend { * * @param string $uid The username * @param string $password The password - * @return string + * @return string|bool * * Check if the password is correct without logging in the user * returns the user id or false @@ -103,9 +103,9 @@ class Dummy extends Backend implements \OCP\IUserBackend { public function checkPassword($uid, $password) { if (isset($this->users[$uid]) && $this->users[$uid] === $password) { return $uid; - } else { - return false; } + + return false; } /** |