Failed Conditions
Pull Request — ng (#81)
by Florent
21:10 queued 17:24
created
src/Bundle/Security/Factory/OAuth2SecurityFactory.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
 use OAuth2Framework\Bundle\Security\Authentication\Provider\OAuth2Provider;
17 17
 use OAuth2Framework\Bundle\Security\EntryPoint\OAuth2EntryPoint;
18 18
 use OAuth2Framework\Bundle\Security\Firewall\OAuth2Listener;
19
+use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface;
20
+use Symfony\Component\Config\Definition\Builder\NodeDefinition;
19 21
 use Symfony\Component\DependencyInjection\ChildDefinition;
20 22
 use Symfony\Component\DependencyInjection\ContainerBuilder;
21 23
 use Symfony\Component\DependencyInjection\Reference;
22
-use Symfony\Component\Config\Definition\Builder\NodeDefinition;
23
-use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface;
24 24
 use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
25 25
 
26 26
 final class OAuth2SecurityFactory implements SecurityFactoryInterface
Please login to merge, or discard this patch.
src/Component/AuthorizationCodeGrant/AuthorizationCodeGrantType.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 namespace OAuth2Framework\Component\AuthorizationCodeGrant;
15 15
 
16 16
 use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager;
17
-use OAuth2Framework\Component\TokenEndpoint\GrantTypeData;
18 17
 use OAuth2Framework\Component\Core\Client\Client;
19 18
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
20 19
 use OAuth2Framework\Component\TokenEndpoint\GrantType;
20
+use OAuth2Framework\Component\TokenEndpoint\GrantTypeData;
21 21
 use Psr\Http\Message\ServerRequestInterface;
22 22
 
23 23
 final class AuthorizationCodeGrantType implements GrantType
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/AuthorizationEndpoint.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\AuthorizationEndpoint;
15 15
 
16
-use Psr\Http\Server\RequestHandlerInterface;
17
-use Psr\Http\Server\MiddlewareInterface;
18 16
 use OAuth2Framework\Component\AuthorizationEndpoint\ConsentScreen\ExtensionManager;
19 17
 use OAuth2Framework\Component\AuthorizationEndpoint\Exception\OAuth2AuthorizationException;
20 18
 use OAuth2Framework\Component\AuthorizationEndpoint\UserAccountDiscovery\UserAccountDiscoveryManager;
21 19
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
22 20
 use Psr\Http\Message\ResponseInterface;
23 21
 use Psr\Http\Message\ServerRequestInterface;
22
+use Psr\Http\Server\MiddlewareInterface;
23
+use Psr\Http\Server\RequestHandlerInterface;
24 24
 
25 25
 abstract class AuthorizationEndpoint implements MiddlewareInterface
26 26
 {
Please login to merge, or discard this patch.
ClientConfigurationEndpoint/Tests/ClientConfigurationEndpointTest.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\BearerTokenType\BearerToken;
20 19
 use OAuth2Framework\Component\ClientConfigurationEndpoint\ClientConfigurationEndpoint;
21 20
 use OAuth2Framework\Component\ClientRegistrationEndpoint\Rule\RuleManager;
@@ -28,6 +27,7 @@  discard block
 block discarded – undo
28 27
 use PHPUnit\Framework\TestCase;
29 28
 use Prophecy\Argument;
30 29
 use Psr\Http\Message\ServerRequestInterface;
30
+use Psr\Http\Server\RequestHandlerInterface;
31 31
 use SimpleBus\Message\Bus\MessageBus;
32 32
 
33 33
 /**
Please login to merge, or discard this patch.
Component/Core/Tests/AccessToken/AccessTokenIntrospectionTypeHintTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use OAuth2Framework\Component\Core\AccessToken\AccessToken;
17 17
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenId;
18
-use OAuth2Framework\Component\Core\AccessToken\AccessTokenRepository;
19 18
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenIntrospectionTypeHint;
19
+use OAuth2Framework\Component\Core\AccessToken\AccessTokenRepository;
20 20
 use OAuth2Framework\Component\Core\Client\ClientId;
21 21
 use OAuth2Framework\Component\Core\DataBag\DataBag;
22 22
 use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId;
Please login to merge, or discard this patch.
src/Component/IssuerDiscoveryEndpoint/IssuerDiscoveryEndpoint.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
 use Interop\Http\Factory\ResponseFactoryInterface;
17 17
 use Interop\Http\Factory\UriFactoryInterface;
18
-use Psr\Http\Server\RequestHandlerInterface;
19
-use Psr\Http\Server\MiddlewareInterface;
20 18
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
21 19
 use Psr\Http\Message\ResponseInterface;
22 20
 use Psr\Http\Message\ServerRequestInterface;
23 21
 use Psr\Http\Message\UriInterface;
22
+use Psr\Http\Server\MiddlewareInterface;
23
+use Psr\Http\Server\RequestHandlerInterface;
24 24
 
25 25
 final class IssuerDiscoveryEndpoint implements MiddlewareInterface
26 26
 {
Please login to merge, or discard this patch.
src/Component/Middleware/AccessTokenMiddleware.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\Middleware;
15 15
 
16
-use Psr\Http\Server\RequestHandlerInterface;
17
-use Psr\Http\Server\MiddlewareInterface;
18 16
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenId;
19 17
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenRepository;
20 18
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
21 19
 use OAuth2Framework\Component\TokenType\TokenTypeManager;
22 20
 use Psr\Http\Message\ResponseInterface;
23 21
 use Psr\Http\Message\ServerRequestInterface;
22
+use Psr\Http\Server\MiddlewareInterface;
23
+use Psr\Http\Server\RequestHandlerInterface;
24 24
 
25 25
 final class AccessTokenMiddleware implements MiddlewareInterface
26 26
 {
Please login to merge, or discard this patch.
src/Component/Middleware/OAuth2ResponseMiddleware.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\Middleware;
15 15
 
16
-use Psr\Http\Server\RequestHandlerInterface;
17
-use Psr\Http\Server\MiddlewareInterface;
18 16
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
19 17
 use OAuth2Framework\Component\Core\Response\OAuth2ResponseFactoryManager;
20 18
 use Psr\Http\Message\ResponseInterface;
21 19
 use Psr\Http\Message\ServerRequestInterface;
20
+use Psr\Http\Server\MiddlewareInterface;
21
+use Psr\Http\Server\RequestHandlerInterface;
22 22
 
23 23
 final class OAuth2ResponseMiddleware implements MiddlewareInterface
24 24
 {
Please login to merge, or discard this patch.
src/Component/Middleware/OAuth2SecurityMiddleware.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@  discard block
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\Middleware;
15 15
 
16
-use Psr\Http\Server\RequestHandlerInterface;
17
-use Psr\Http\Server\MiddlewareInterface;
18 16
 use OAuth2Framework\Component\Core\AccessToken\AccessToken;
19 17
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenHandlerManager;
20 18
 use OAuth2Framework\Component\Core\AccessToken\AccessTokenId;
@@ -23,6 +21,8 @@  discard block
 block discarded – undo
23 21
 use OAuth2Framework\Component\TokenType\TokenTypeManager;
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
 final class OAuth2SecurityMiddleware implements MiddlewareInterface
28 28
 {
Please login to merge, or discard this patch.