Failed Conditions
Push — master ( 0699e7...dc4823 )
by Florent
06:51
created
src/ServerBundle/Component/Component.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -20,10 +20,19 @@
 block discarded – undo
20 20
 {
21 21
     public function name(): string;
22 22
 
23
+    /**
24
+     * @return void
25
+     */
23 26
     public function load(array $configs, ContainerBuilder $container);
24 27
 
28
+    /**
29
+     * @return void
30
+     */
25 31
     public function build(ContainerBuilder $container);
26 32
 
33
+    /**
34
+     * @return void
35
+     */
27 36
     public function getNodeDefinition(ArrayNodeDefinition $node, ArrayNodeDefinition $rootNode);
28 37
 
29 38
     public function prepend(ContainerBuilder $container, array $config): array;
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/User/UserAccountDiscovery.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface UserAccountDiscovery
19 19
 {
20
+    /**
21
+     * @return UserAccount
22
+     */
20 23
     public function getCurrentAccount(): ?UserAccount;
21 24
 }
Please login to merge, or discard this patch.
src/Component/Core/AccessToken/AccessTokenRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param AccessToken $accessToken The access token to store
32
+     * @return void
32 33
      */
33 34
     public function save(AccessToken $accessToken): void;
34 35
 
Please login to merge, or discard this patch.
src/Component/JwtBearerGrant/JwtBearerGrantType.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -97,6 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     /**
99 99
      * JWTBearerGrantType constructor.
100
+     * @param UserAccountRepository $userAccountRepository
100 101
      */
101 102
     public function __construct(JsonConverter $jsonConverter, JWSVerifier $jwsVerifier, HeaderCheckerManager $headerCheckerManager, ClaimCheckerManager $claimCheckerManager, ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository)
102 103
     {
@@ -246,6 +247,9 @@  discard block
 block discarded – undo
246 247
         $grantTypeData->getMetadata()->set('claims', $claims);
247 248
     }
248 249
 
250
+    /**
251
+     * @return ResourceOwnerId
252
+     */
249 253
     private function findResourceOwner(string $subject): ?ResourceOwnerId
250 254
     {
251 255
         $userAccount = $this->userAccountRepository ? $this->userAccountRepository->find(new UserAccountId($subject)) : null;
Please login to merge, or discard this patch.
src/Component/TokenEndpoint/GrantType.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -31,13 +31,18 @@
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * This function checks the request.
34
+     * @return void
34 35
      */
35 36
     public function checkRequest(ServerRequestInterface $request): void;
36 37
 
37 38
     /**
38 39
      * This function checks the request and returns information to issue an access token.
40
+     * @return void
39 41
      */
40 42
     public function prepareResponse(ServerRequestInterface $request, GrantTypeData $grantTypeData): void;
41 43
 
44
+    /**
45
+     * @return void
46
+     */
42 47
     public function grant(ServerRequestInterface $request, GrantTypeData $grantTypeData): void;
43 48
 }
Please login to merge, or discard this patch.
src/Component/AuthorizationCodeGrant/AuthorizationCodeRepository.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -29,7 +29,13 @@
 block discarded – undo
29 29
      */
30 30
     public function find(AuthorizationCodeId $authorizationCodeId): ?AuthorizationCode;
31 31
 
32
+    /**
33
+     * @return void
34
+     */
32 35
     public function save(AuthorizationCode $authorizationCode): void;
33 36
 
37
+    /**
38
+     * @param ResourceServerId|null $resourceServerId
39
+     */
34 40
     public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameter, DataBag $metadata, ?ResourceServerId $resourceServerId): AuthorizationCode;
35 41
 }
Please login to merge, or discard this patch.
src/Component/ClientAuthentication/ClientAuthenticationMiddleware.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@
 block discarded – undo
54 54
         return $handler->handle($request);
55 55
     }
56 56
 
57
+    /**
58
+     * @param Client|null $client
59
+     */
57 60
     private function checkClient(?Client $client): void
58 61
     {
59 62
         if (null === $client || $client->isDeleted()) {
Please login to merge, or discard this patch.
src/Component/RefreshTokenGrant/RefreshTokenRepository.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
  */
25 25
 interface RefreshTokenRepository
26 26
 {
27
+    /**
28
+     * @return void
29
+     */
27 30
     public function save(RefreshToken $refreshToken): void;
28 31
 
29 32
     public function find(RefreshTokenId $refreshTokenId): ?RefreshToken;
Please login to merge, or discard this patch.
src/SecurityBundle/Security/Firewall/OAuth2Listener.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenId;
18 18
 use OAuth2Framework\Component\Core\Message\OAuth2Error;
19 19
 use OAuth2Framework\Component\Core\Message\OAuth2MessageFactoryManager;
20
-use OAuth2Framework\Component\Core\TokenType\TokenType;
21 20
 use OAuth2Framework\Component\Core\TokenType\TokenTypeManager;
22 21
 use OAuth2Framework\SecurityBundle\Security\Authentication\Token\OAuth2Token;
23 22
 use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
Please login to merge, or discard this patch.