@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * getTokenForUser method |
| 36 | 36 | * |
| 37 | 37 | * @param Authenticatable $user |
| 38 | - * @return null|string |
|
| 38 | + * @return string |
|
| 39 | 39 | */ |
| 40 | 40 | public function getTokenForUser(Authenticatable $user) |
| 41 | 41 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * getTokenForUser method |
| 91 | 91 | * |
| 92 | 92 | * @param Claim $claim |
| 93 | - * @return null|string |
|
| 93 | + * @return string |
|
| 94 | 94 | */ |
| 95 | 95 | protected function getTokenForClaim(Claim $claim) |
| 96 | 96 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * add claim to the white list |
| 32 | 32 | * |
| 33 | 33 | * @param Claim $claim |
| 34 | - * @return bool |
|
| 34 | + * @return boolean|null |
|
| 35 | 35 | */ |
| 36 | 36 | public function add(Claim $claim) |
| 37 | 37 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (empty($this->jti)) { |
| 64 | - $this->jti = md5("{$this->sub}.{$this->iat}." . rand(1000, 1999)); |
|
| 64 | + $this->jti = md5("{$this->sub}.{$this->iat}.".rand(1000, 1999)); |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |