diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-05-02 19:58:19 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-11 13:36:46 +0200 |
commit | f0f8bdd495ff958ce536e577e42586090b6bcd8f (patch) | |
tree | c13077c866c0561cf158b5de913c1975721172cd /core | |
parent | dff108e97bea1d1b6e6a639fabd64d400acd4347 (diff) | |
download | nextcloud-server-f0f8bdd495ff958ce536e577e42586090b6bcd8f.tar.gz nextcloud-server-f0f8bdd495ff958ce536e577e42586090b6bcd8f.zip |
PHPDoc and other minor fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/TokenController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Controller/TokenController.php b/core/Controller/TokenController.php index db48ea27b99..6f98face144 100644 --- a/core/Controller/TokenController.php +++ b/core/Controller/TokenController.php @@ -65,15 +65,17 @@ class TokenController extends Controller { * * @param string $user * @param string $password + * @param string $name the name of the client + * @return Response */ public function generateToken($user, $password, $name = 'unknown client') { if (is_null($user) || is_null($password)) { - $response = new Response([]); + $response = new Response(); $response->setStatus(Http::STATUS_UNPROCESSABLE_ENTITY); return $response; } if ($this->userManager->checkPassword($user, $password) === false) { - $response = new Response([]); + $response = new Response(); $response->setStatus(Http::STATUS_UNAUTHORIZED); return $response; } |