| @@ -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); | 
| @@ -97,7 +97,7 @@ | ||
| 97 | 97 | * @param \DateTime $datetime | 
| 98 | 98 | * @param bool $andFlush | 
| 99 | 99 | * | 
| 100 | - * @return RefreshTokenInterface[] | |
| 100 | + * @return \Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken[] | |
| 101 | 101 | */ | 
| 102 | 102 | public function revokeAllInvalid($datetime = null, $andFlush = true) | 
| 103 | 103 |      { | 
| @@ -52,6 +52,9 @@ discard block | ||
| 52 | 52 | $this->userChecker = $userChecker; | 
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | + /** | |
| 56 | + * @param string $providerKey | |
| 57 | + */ | |
| 55 | 58 | public function createToken(Request $request, $providerKey) | 
| 56 | 59 |      { | 
| 57 | 60 | $refreshTokenString = RequestRefreshToken::getRefreshToken($request); | 
| @@ -63,6 +66,9 @@ discard block | ||
| 63 | 66 | ); | 
| 64 | 67 | } | 
| 65 | 68 | |
| 69 | + /** | |
| 70 | + * @param string $providerKey | |
| 71 | + */ | |
| 66 | 72 | public function authenticateToken(TokenInterface $token, UserProviderInterface $userProvider, $providerKey) | 
| 67 | 73 |      { | 
| 68 | 74 |          if (!$userProvider instanceof RefreshTokenProvider) { |