@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | protected $tag; |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * @param \Illuminate\Cache\CacheManager $cache |
|
| 21 | + * @param Repository $cache |
|
| 22 | 22 | * @param string $tag |
| 23 | 23 | */ |
| 24 | 24 | public function __construct(Repository $cache, $tag = 'jwt') |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * Add a new item into storage. |
| 32 | 32 | * |
| 33 | 33 | * @param string $key |
| 34 | - * @param mixed $value |
|
| 34 | + * @param string $value |
|
| 35 | 35 | * @param int $minutes |
| 36 | 36 | * @return void |
| 37 | 37 | */ |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param string $key |
| 45 | - * @param mixed $value |
|
| 45 | + * @param string $value |
|
| 46 | 46 | * @return void |
| 47 | 47 | */ |
| 48 | 48 | public function forever($key, $value) |
@@ -163,6 +163,10 @@ |
||
| 163 | 163 | $this->assertEquals(500, $property->getValue($list)); |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $id |
|
| 168 | + * @param integer $exp |
|
| 169 | + */ |
|
| 166 | 170 | protected function tokenStub($id = null, $exp = null, $claims = []) |
| 167 | 171 | { |
| 168 | 172 | $builder = new \Lcobucci\JWT\Builder(); |
@@ -9,6 +9,10 @@ |
||
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | if (!function_exists('config_path')) { |
| 12 | + |
|
| 13 | + /** |
|
| 14 | + * @param string $path |
|
| 15 | + */ |
|
| 12 | 16 | function config_path($path) { |
| 13 | 17 | return $path; |
| 14 | 18 | } |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | { |
| 38 | 38 | use \Framgia\Jwt\SigningTokens; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $type |
|
| 42 | + */ |
|
| 40 | 43 | public function signer($algorithm = 'sha256', $type = null) |
| 41 | 44 | { |
| 42 | 45 | // Pass call to protected method |