Failed Conditions
Push — master ( 9eeb29...881d26 )
by Florent
16:44
created
Component/AuthorizationEndpoint/Exception/OAuth2AuthorizationException.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@
 block discarded – undo
21 21
 
22 22
     private $errorDescription;
23 23
 
24
+    /**
25
+     * @param null|string $errorDescription
26
+     * @param \Exception $previous
27
+     */
24 28
     public function __construct(string $error, ?string $errorDescription, AuthorizationRequest $authorization, ?\Exception $previous = null)
25 29
     {
26 30
         $this->authorization = $authorization;
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/Core/Client/Client.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -27,10 +27,19 @@
 block discarded – undo
27 27
 {
28 28
     public function getClientId(): ClientId;
29 29
 
30
+    /**
31
+     * @return UserAccountId
32
+     */
30 33
     public function getOwnerId(): ?UserAccountId;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function setParameter(DataBag $parameter): void;
33 39
 
40
+    /**
41
+     * @return void
42
+     */
34 43
     public function markAsDeleted(): void;
35 44
 
36 45
     public function isDeleted(): bool;
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/TokenEndpoint/TokenEndpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
     private $accessTokenRepository;
41 41
     private $accessTokenLifetime;
42 42
 
43
+    /**
44
+     * @param UserAccountRepository $userAccountRepository
45
+     */
43 46
     public function __construct(ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository, TokenEndpointExtensionManager $tokenEndpointExtensionManager, ResponseFactory $responseFactory, AccessTokenRepository $accessTokenRepository, int $accessLifetime)
44 47
     {
45 48
         $this->clientRepository = $clientRepository;
Please login to merge, or discard this patch.