Failed Conditions
Pull Request — master (#156)
by
unknown
08:07
created
src/Component/Core/AccessToken/AccessTokenHandlerManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
         $this->accessTokenHandlers[] = $accessTokenHandler;
26 26
     }
27 27
 
28
+    /**
29
+     * @return AccessToken
30
+     */
28 31
     public function find(AccessTokenId $tokenId): ?AccessToken
29 32
     {
30 33
         foreach ($this->accessTokenHandlers as $accessTokenHandler) {
Please login to merge, or discard this patch.
src/Component/Core/TokenType/TokenTypeManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
         return $this->get($this->defaultTokenType);
67 67
     }
68 68
 
69
+    /**
70
+     * @return string
71
+     */
69 72
     public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, ?TokenType &$type = null): ?string
70 73
     {
71 74
         foreach ($this->all() as $tmp_type) {
Please login to merge, or discard this patch.
src/Component/RefreshTokenGrant/RefreshTokenRevocationTypeHint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         return 'refresh_token';
31 31
     }
32 32
 
33
+    /**
34
+     * @return Token
35
+     */
33 36
     public function find(string $token): ?Token
34 37
     {
35 38
         $id = new RefreshTokenId($token);
Please login to merge, or discard this patch.
src/Component/TokenRevocationEndpoint/TokenTypeHint.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
     public function hint(): string;
21 21
 
22
+    /**
23
+     * @return Token
24
+     */
22 25
     public function find(string $token): ?Token;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function revoke(Token $token): void;
25 31
 }
Please login to merge, or discard this patch.
src/Component/ClientRegistrationEndpoint/InitialAccessToken.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -23,6 +23,10 @@
 block discarded – undo
23 23
     private $expiresAt;
24 24
     private $userAccountId;
25 25
 
26
+    /**
27
+     * @param UserAccountId $userAccountId
28
+     * @param \DateTimeImmutable|null $expiresAt
29
+     */
26 30
     public function __construct(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt)
27 31
     {
28 32
         $this->initialAccessTokenId = $initialAccessTokenId;
Please login to merge, or discard this patch.
src/Component/TokenEndpoint/GrantType.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 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
 
Please login to merge, or discard this patch.
src/SecurityBundle/Annotation/Checker/Checker.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,5 +18,8 @@
 block discarded – undo
18 18
 
19 19
 interface Checker
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function check(OAuth2Token $token, OAuth2 $configuration): void;
22 25
 }
Please login to merge, or discard this patch.
AuthorizationEndpoint/AuthorizationRequest/AuthorizationRequest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -209,6 +209,9 @@  discard block
 block discarded – undo
209 209
         return \array_key_exists($param, $this->getResponseParameters());
210 210
     }
211 211
 
212
+    /**
213
+     * @param string $value
214
+     */
212 215
     public function setResponseHeader(string $responseHeader, $value): void
213 216
     {
214 217
         $this->responseHeaders[$responseHeader] = $value;
@@ -274,6 +277,9 @@  discard block
 block discarded – undo
274 277
         $this->resourceServer = $resourceServer;
275 278
     }
276 279
 
280
+    /**
281
+     * @param string $value
282
+     */
277 283
     public function setConsentScreenOption(string $option, $value): void
278 284
     {
279 285
         $this->consentScreenOptions[$option] = $value;
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
 use OAuth2Framework\Component\Core\DataBag\DataBag;
20 20
 use OAuth2Framework\Component\Core\ResourceServer\ResourceServer;
21 21
 use OAuth2Framework\Component\Core\TokenType\TokenType;
22
-use OAuth2Framework\Component\Core\User\User;
23 22
 use OAuth2Framework\Component\Core\UserAccount\UserAccount;
23
+use OAuth2Framework\Component\Core\User\User;
24 24
 
25 25
 class AuthorizationRequest
26 26
 {
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/ConsentHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 
20 20
 interface ConsentHandler
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function prepare(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): void;
23 26
 
24 27
     public function hasBeenProcessed(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): bool;
Please login to merge, or discard this patch.