Failed Conditions
Pull Request — ng (#78)
by Florent
23:32 queued 19:08
created
src/Bundle/DependencyInjection/Source/Component.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,11 +22,13 @@  discard block
 block discarded – undo
22 22
      * @param string           $path
23 23
      * @param ContainerBuilder $container
24 24
      * @param array            $config
25
+     * @return void
25 26
      */
26 27
     public function load(string $path, ContainerBuilder $container, array $config);
27 28
 
28 29
     /**
29 30
      * @param NodeDefinition $node
31
+     * @return void
30 32
      */
31 33
     public function addConfiguration(NodeDefinition $node);
32 34
 
@@ -34,6 +36,7 @@  discard block
 block discarded – undo
34 36
      * @param array            $bundleConfig
35 37
      * @param string           $path
36 38
      * @param ContainerBuilder $container
39
+     * @return void
37 40
      */
38 41
     public function prepend(array $bundleConfig, string $path, ContainerBuilder $container);
39 42
 }
Please login to merge, or discard this patch.
src/Bundle/Resolver/AccessTokenResolver.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use OAuth2Framework\Bundle\SecurityPlugin\Security\Authentication\Token\OAuth2Token;
17 17
 use OAuth2Framework\Component\Model\AccessToken\AccessToken;
18 18
 use Symfony\Component\HttpFoundation\Request;
19
-use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
20 19
 use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
20
+use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
21 21
 use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
22 22
 
23 23
 final class AccessTokenResolver implements ArgumentValueResolverInterface
Please login to merge, or discard this patch.
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/Bundle/Tests/TestBundle/Service/UserProvider.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -40,6 +40,7 @@
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * {@inheritdoc}
43
+     * @param string $username
43 44
      */
44 45
     public function loadUserByUsername($username)
45 46
     {
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.
AuthorizationEndpoint/UserAccountDiscovery/UserAccountDiscovery.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 Authorization $authorization
31
+     * @return void
31 32
      */
32 33
     public function check(Authorization $authorization);
33 34
 }
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.
src/Component/ClientRegistrationEndpoint/Rule/Rule.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
      * @param ClientId           $clientId
23 23
      * @param DataBag            $commandParameters
24 24
      * @param DataBag            $validatedParameters
25
-     * @param UserAccountId|null $userAccountId
26 25
      * @param callable           $next
27 26
      *
28 27
      * @return DataBag
Please login to merge, or discard this patch.