@@ -113,7 +113,7 @@ |
||
113 | 113 | /** |
114 | 114 | * Get valid. |
115 | 115 | * |
116 | - * @return \DateTime |
|
116 | + * @return string |
|
117 | 117 | */ |
118 | 118 | public function getValid() |
119 | 119 | { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Get user. |
69 | 69 | * |
70 | - * @return $username |
|
70 | + * @return string |
|
71 | 71 | */ |
72 | 72 | public function getUsername(); |
73 | 73 |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Gesdinet\JWTRefreshTokenBundle\EventListener; |
13 | 13 | |
14 | 14 | use Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenManagerInterface; |
15 | -use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken; |
|
16 | 15 | use Gesdinet\JWTRefreshTokenBundle\Request\RequestRefreshToken; |
17 | 16 | use Lexik\Bundle\JWTAuthenticationBundle\Event\AuthenticationSuccessEvent; |
18 | 17 | use Symfony\Component\Security\Core\User\UserInterface; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @param Request $request |
51 | 51 | * |
52 | - * @return mixed |
|
52 | + * @return \Symfony\Component\HttpFoundation\Response|\Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationSuccessResponse |
|
53 | 53 | * |
54 | 54 | * @throws AuthenticationException |
55 | 55 | */ |
@@ -16,20 +16,20 @@ |
||
16 | 16 | |
17 | 17 | public function it_should_set_parameters_correctly(ContainerBuilder $container, ParameterBag $parameterBag) |
18 | 18 | { |
19 | - $parameterBag->resolveValue(Argument::type('string'))->will(function ($args) { |
|
19 | + $parameterBag->resolveValue(Argument::type('string'))->will(function($args) { |
|
20 | 20 | return $args[0]; |
21 | 21 | }); |
22 | - $parameterBag->unescapeValue(Argument::type('string'))->will(function ($args) { |
|
22 | + $parameterBag->unescapeValue(Argument::type('string'))->will(function($args) { |
|
23 | 23 | return $args[0]; |
24 | 24 | }); |
25 | 25 | |
26 | 26 | $container->getParameterBag()->willReturn($parameterBag); |
27 | 27 | $container->fileExists(Argument::any())->willReturn(true); |
28 | - $container->setParameter(Argument::any(), Argument::any())->will(function () { |
|
28 | + $container->setParameter(Argument::any(), Argument::any())->will(function() { |
|
29 | 29 | }); |
30 | - $container->setDefinition(Argument::any(), Argument::any())->will(function () { |
|
30 | + $container->setDefinition(Argument::any(), Argument::any())->will(function() { |
|
31 | 31 | }); |
32 | - $container->getReflectionClass(Argument::type('string'))->will(function ($args) { |
|
32 | + $container->getReflectionClass(Argument::type('string'))->will(function($args) { |
|
33 | 33 | return new \ReflectionClass($args[0]); |
34 | 34 | }); |
35 | 35 | $container->addResource(Argument::any())->willReturn(null); |