From 7c3df3019e22337df82a3bd5ed3b6e9b82352007 Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 3 Oct 2014 08:43:06 +0100 Subject: [PATCH] fixing docblocks --- src/Tymon/JWTAuth/JWTAuth.php | 5 ++--- src/Tymon/JWTAuth/Providers/ProviderInterface.php | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tymon/JWTAuth/JWTAuth.php b/src/Tymon/JWTAuth/JWTAuth.php index e7cb01ea9..2771b409c 100755 --- a/src/Tymon/JWTAuth/JWTAuth.php +++ b/src/Tymon/JWTAuth/JWTAuth.php @@ -78,7 +78,7 @@ public function fromUser($user) * Attempt to authenticate the user and return the token * * @param array $credentials - * @return mixed + * @return false|string * @throws \Tymon\JWTAuth\Exceptions\JWTAuthException */ public function attempt(array $credentials = []) @@ -135,8 +135,7 @@ public function getToken($query = 'token') /** * Parse token from the authorization header * - * @param \Illuminate\Http\Request $request - * @return mixed + * @return false|string */ protected function parseAuthHeader($method = 'bearer') { diff --git a/src/Tymon/JWTAuth/Providers/ProviderInterface.php b/src/Tymon/JWTAuth/Providers/ProviderInterface.php index 0d1cf8604..195800ca0 100644 --- a/src/Tymon/JWTAuth/Providers/ProviderInterface.php +++ b/src/Tymon/JWTAuth/Providers/ProviderInterface.php @@ -8,6 +8,7 @@ interface ProviderInterface { public function encode($subject, array $customClaims = []); /** + * @param string $token * @return \Tymon\JWTAuth\Payload */ public function decode($token = null);