Failed Conditions
Push — master ( 7c3864...930f9b )
by Florent
14:15
created
src/Component/Core/AccessToken/AccessTokenRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param AccessToken $accessToken The access token to store
27
+     * @return void
27 28
      */
28 29
     public function save(AccessToken $accessToken): void;
29 30
 }
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
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
         return $handler->handle($request);
56 56
     }
57 57
 
58
+    /**
59
+     * @param null|Client $client
60
+     */
58 61
     private function checkClient(?Client $client): void
59 62
     {
60 63
         if (null === $client || $client->isDeleted()) {
Please login to merge, or discard this patch.
src/Component/ClientRegistrationEndpoint/InitialAccessTokenRepository.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 
16 16
 interface InitialAccessTokenRepository
17 17
 {
18
+    /**
19
+     * @return void
20
+     */
18 21
     public function save(InitialAccessToken $initialAccessToken);
19 22
 
20 23
     /**
Please login to merge, or discard this patch.
src/Component/Core/Client/ClientRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
 {
18 18
     /**
19 19
      * Save the client.
20
+     * @return void
20 21
      */
21 22
     public function save(Client $client);
22 23
 
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
     {
@@ -273,6 +274,9 @@  discard block
 block discarded – undo
273 274
         return $grantTypeData;
274 275
     }
275 276
 
277
+    /**
278
+     * @return ResourceOwnerId
279
+     */
276 280
     private function findResourceOwner(string $subject): ?ResourceOwnerId
277 281
     {
278 282
         $userAccount = $this->userAccountRepository ? $this->userAccountRepository->find(new UserAccountId($subject)) : null;
Please login to merge, or discard this patch.
src/Component/RefreshTokenGrant/RefreshTokenRepository.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,7 +19,13 @@
 block discarded – undo
19 19
  */
20 20
 interface RefreshTokenRepository
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function save(RefreshToken $refreshToken): void;
23 26
 
27
+    /**
28
+     * @return RefreshToken|null
29
+     */
24 30
     public function find(RefreshTokenId $refreshTokenId): ?RefreshToken;
25 31
 }
Please login to merge, or discard this patch.
src/Component/ResourceServerAuthentication/AuthenticationMiddleware.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
         return $handler->handle($request);
52 52
     }
53 53
 
54
+    /**
55
+     * @param ResourceServer|null $resourceServer
56
+     */
54 57
     private function checkResourceServer(?ResourceServer $resourceServer): void
55 58
     {
56 59
         if (null === $resourceServer) {
Please login to merge, or discard this patch.
src/Component/Scope/Scope.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
 {
18 18
     public function name(): string;
19 19
 
20
+    /**
21
+     * @return string|null
22
+     */
20 23
     public function parent(): ?string;
21 24
 
22 25
     public function isParentMandatory(): bool;
Please login to merge, or discard this patch.
src/Component/TokenEndpoint/TokenEndpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
     private $accessTokenRepository;
43 43
     private $accessTokenLifetime;
44 44
 
45
+    /**
46
+     * @param UserAccountRepository $userAccountRepository
47
+     */
45 48
     public function __construct(ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository, TokenEndpointExtensionManager $tokenEndpointExtensionManager, ResponseFactory $responseFactory, AccessTokenIdGenerator $accessTokenIdGenerator, AccessTokenRepository $accessTokenRepository, int $accessLifetime)
46 49
     {
47 50
         $this->clientRepository = $clientRepository;
Please login to merge, or discard this patch.