Failed Conditions
Push — master ( d5b8e0...d1e22e )
by Florent
11:16
created
src/Component/AuthorizationEndpoint/UserAccount/UserAccountChecker.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
      * @throws Exception\ProcessAuthorizationException
26 26
      * @throws Exception\RedirectToLoginPageException
27 27
      * @throws Exception\ShowConsentScreenException
28
+     * @return void
28 29
      */
29 30
     public function check(Authorization $authorization);
30 31
 }
Please login to merge, or discard this patch.
src/Component/ImplicitGrant/Tests/TokenResponseTypeTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 use OAuth2Framework\Component\Core\Client\Client;
22 22
 use OAuth2Framework\Component\Core\Client\ClientId;
23 23
 use OAuth2Framework\Component\Core\DataBag\DataBag;
24
+use OAuth2Framework\Component\Core\TokenType\TokenType;
24 25
 use OAuth2Framework\Component\Core\UserAccount\UserAccount;
25 26
 use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
26 27
 use OAuth2Framework\Component\ImplicitGrant\TokenResponseType;
27
-use OAuth2Framework\Component\Core\TokenType\TokenType;
28 28
 use PHPUnit\Framework\TestCase;
29 29
 use Prophecy\Argument;
30 30
 
Please login to merge, or discard this patch.
Component/RefreshTokenGrant/Tests/RefreshTokenRevocationTypeHintTest.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\RefreshTokenGrant\Tests;
15 15
 
16
-use OAuth2Framework\Component\RefreshTokenGrant\RefreshToken;
17
-use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenId;
18
-use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRepository;
19
-use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRevocationTypeHint;
20 16
 use OAuth2Framework\Component\Core\Client\ClientId;
21 17
 use OAuth2Framework\Component\Core\DataBag\DataBag;
22 18
 use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId;
23 19
 use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
20
+use OAuth2Framework\Component\RefreshTokenGrant\RefreshToken;
21
+use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenId;
22
+use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRepository;
23
+use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRevocationTypeHint;
24 24
 use OAuth2Framework\Component\TokenIntrospectionEndpoint\TokenTypeHint;
25 25
 use PHPUnit\Framework\TestCase;
26 26
 use Prophecy\Argument;
Please login to merge, or discard this patch.
TokenIntrospectionEndpoint/Tests/TokenIntrospectionEndpointTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@  discard block
 block discarded – undo
15 15
 
16 16
 use Http\Message\MessageFactory\DiactorosMessageFactory;
17 17
 use Http\Message\ResponseFactory;
18
-use Psr\Http\Server\RequestHandlerInterface;
19 18
 use OAuth2Framework\Component\Core\ResourceServer\ResourceServer;
20 19
 use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId;
21 20
 use OAuth2Framework\Component\Core\Token\Token;
@@ -24,6 +23,7 @@  discard block
 block discarded – undo
24 23
 use OAuth2Framework\Component\TokenIntrospectionEndpoint\TokenTypeHintManager;
25 24
 use PHPUnit\Framework\TestCase;
26 25
 use Psr\Http\Message\ServerRequestInterface;
26
+use Psr\Http\Server\RequestHandlerInterface;
27 27
 
28 28
 /**
29 29
  * @group TokenIntrospectionEndpoint
Please login to merge, or discard this patch.
src/Component/AuthorizationCodeGrant/AuthorizationCodeRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param AuthorizationCode $authorizationCode
31
+     * @return void
31 32
      */
32 33
     public function save(AuthorizationCode $authorizationCode): void;
33 34
 }
Please login to merge, or discard this patch.
AuthorizationCodeGrant/Tests/AuthorizationCodeResponseTypeTest.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,8 +13,11 @@  discard block
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\AuthorizationCodeGrant\Tests;
15 15
 
16
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode;
16 17
 use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId;
18
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeIdGenerator;
17 19
 use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeRepository;
20
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeResponseType;
18 21
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager;
19 22
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\Plain;
20 23
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\S256;
@@ -22,9 +25,6 @@  discard block
 block discarded – undo
22 25
 use OAuth2Framework\Component\Core\Client\Client;
23 26
 use OAuth2Framework\Component\Core\Client\ClientId;
24 27
 use OAuth2Framework\Component\Core\DataBag\DataBag;
25
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode;
26
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeResponseType;
27
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeIdGenerator;
28 28
 use OAuth2Framework\Component\Core\UserAccount\UserAccount;
29 29
 use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
30 30
 use PHPUnit\Framework\TestCase;
Please login to merge, or discard this patch.
src/Component/OpenIdConnect/IdTokenBuilder.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
 use Jose\Component\Core\JWK;
19 19
 use Jose\Component\Core\JWKSet;
20 20
 use Jose\Component\Encryption\JWEBuilder;
21
+use Jose\Component\Encryption\Serializer\CompactSerializer as JweCompactSerializer;
21 22
 use Jose\Component\KeyManagement\JKUFactory;
22 23
 use Jose\Component\Signature\JWSBuilder;
23 24
 use Jose\Component\Signature\Serializer\CompactSerializer as JwsCompactSerializer;
24
-use Jose\Component\Encryption\Serializer\CompactSerializer as JweCompactSerializer;
25 25
 use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId;
26 26
 use OAuth2Framework\Component\Core\AccessToken\AccessToken;
27 27
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenId;
Please login to merge, or discard this patch.
Component/AuthorizationCodeGrant/Tests/AuthorizationCodeGrantTypeTest.php 1 patch
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,19 +13,19 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\AuthorizationCodeGrant\Tests;
15 15
 
16
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode;
17
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeGrantType;
18
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId;
19
+use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeRepository;
16 20
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager;
17 21
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\Plain;
18 22
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\S256;
19 23
 use OAuth2Framework\Component\Core\Client\Client;
20 24
 use OAuth2Framework\Component\Core\Client\ClientId;
21 25
 use OAuth2Framework\Component\Core\DataBag\DataBag;
22
-use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId;
23 26
 use OAuth2Framework\Component\Core\Message\OAuth2Message;
27
+use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId;
24 28
 use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
25
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode;
26
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeGrantType;
27
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId;
28
-use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeRepository;
29 29
 use OAuth2Framework\Component\TokenEndpoint\GrantTypeData;
30 30
 use PHPUnit\Framework\TestCase;
31 31
 use Prophecy\Argument;
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/AuthorizationEndpoint.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\AuthorizationEndpoint;
15 15
 
16
-use OAuth2Framework\Component\AuthorizationEndpoint\ParameterChecker\ParameterCheckerManager;
17
-use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountCheckerManager;
18
-use Psr\Http\Server\RequestHandlerInterface;
19
-use Psr\Http\Server\MiddlewareInterface;
20 16
 use OAuth2Framework\Component\AuthorizationEndpoint\ConsentScreen\ExtensionManager;
21 17
 use OAuth2Framework\Component\AuthorizationEndpoint\Exception\OAuth2AuthorizationException;
18
+use OAuth2Framework\Component\AuthorizationEndpoint\ParameterChecker\ParameterCheckerManager;
19
+use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountCheckerManager;
22 20
 use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountDiscovery;
23 21
 use OAuth2Framework\Component\Core\Message\OAuth2Message;
24 22
 use Psr\Http\Message\ResponseInterface;
25 23
 use Psr\Http\Message\ServerRequestInterface;
24
+use Psr\Http\Server\MiddlewareInterface;
25
+use Psr\Http\Server\RequestHandlerInterface;
26 26
 
27 27
 abstract class AuthorizationEndpoint implements MiddlewareInterface
28 28
 {
Please login to merge, or discard this patch.