Failed Conditions
Push — master ( 7c3864...930f9b )
by Florent
14:15
created
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.
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 string|null $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/Extension/Extension.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 Extension
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function process(ServerRequestInterface $request, AuthorizationRequest $authorization): void;
22 25
 }
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/LoginHandler.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 LoginHandler
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.
src/Component/AuthorizationEndpoint/ParameterChecker/ParameterChecker.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 ParameterChecker
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function check(AuthorizationRequest $authorization): void;
21 24
 }
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/ResponseType/ResponseType.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -41,7 +41,13 @@
 block discarded – undo
41 41
      */
42 42
     public function getResponseMode(): string;
43 43
 
44
+    /**
45
+     * @return void
46
+     */
44 47
     public function preProcess(AuthorizationRequest $authorization): void;
45 48
 
49
+    /**
50
+     * @return void
51
+     */
46 52
     public function process(AuthorizationRequest $authorization): void;
47 53
 }
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/SelectAccountHandler.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 SelectAccountHandler
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.
src/Component/AuthorizationEndpoint/User/UserDiscovery.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,7 +18,13 @@
 block discarded – undo
18 18
 
19 19
 interface UserDiscovery
20 20
 {
21
+    /**
22
+     * @return User
23
+     */
21 24
     public function getCurrentUser(): ?User;
22 25
 
26
+    /**
27
+     * @return UserAccount
28
+     */
23 29
     public function getCurrentAccount(): ?UserAccount;
24 30
 }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\AuthorizationEndpoint\User;
15 15
 
16
-use OAuth2Framework\Component\Core\User\User;
17 16
 use OAuth2Framework\Component\Core\UserAccount\UserAccount;
17
+use OAuth2Framework\Component\Core\User\User;
18 18
 
19 19
 interface UserDiscovery
20 20
 {
Please login to merge, or discard this patch.