Failed Conditions
Push — ng ( c00098...4b490a )
by Florent
06:57
created
src/Component/Scope/Tests/TokenEndpointScopeExtensionTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 use OAuth2Framework\Component\Core\Client\Client;
19 19
 use OAuth2Framework\Component\Core\Client\ClientId;
20 20
 use OAuth2Framework\Component\Core\DataBag\DataBag;
21
-use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner;
22 21
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
22
+use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner;
23 23
 use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
24 24
 use OAuth2Framework\Component\Scope\Policy\NoScopePolicy;
25 25
 use OAuth2Framework\Component\Scope\Policy\ScopePolicyManager;
Please login to merge, or discard this patch.
src/Component/TokenEndpoint/Extension/TokenEndpointExtensionManager.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * @param int $index
73 73
      *
74
-     * @return callable
74
+     * @return \Closure
75 75
      *
76 76
      * @throws OAuth2Exception
77 77
      */
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * @param int $index
94 94
      *
95
-     * @return callable
95
+     * @return \Closure
96 96
      *
97 97
      * @throws OAuth2Exception
98 98
      */
Please login to merge, or discard this 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\Client\Client;
18
-use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner;
19 18
 use OAuth2Framework\Component\Core\Exception\OAuth2Exception;
19
+use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner;
20 20
 use OAuth2Framework\Component\TokenEndpoint\GrantType;
21 21
 use OAuth2Framework\Component\TokenEndpoint\GrantTypeData;
22 22
 use Psr\Http\Message\ServerRequestInterface;
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
@@ -38,6 +38,7 @@
 block discarded – undo
38 38
      * @param ServerRequestInterface $request The request
39 39
      *
40 40
      * @throws OAuth2Exception
41
+     * @return void
41 42
      */
42 43
     public function checkRequest(ServerRequestInterface $request);
43 44
 
Please login to merge, or discard this patch.
Component/TokenIntrospectionEndpoint/Tests/TokenRevocationEndpointTest.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/TokenRevocationEndpoint/TokenTypeHint.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
      * @param Token $token
34
+     * @return void
34 35
      */
35 36
     public function revoke(Token $token);
36 37
 }
Please login to merge, or discard this patch.
src/Bundle/Tests/TestBundle/Controller/ApiController.php 1 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\Bundle\Tests\TestBundle\Controller;
15 15
 
16
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
17 16
 use OAuth2Framework\Bundle\Annotation\OAuth2;
17
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
18 18
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
19 19
 use Symfony\Component\HttpFoundation\JsonResponse;
20 20
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.
src/Component/Core/Domain/DomainUriLoader.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
         $this->mappings[$schema] = $filename;
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $path
37
+     */
35 38
     public function load($path)
36 39
     {
37 40
         if (array_key_exists($path, $this->mappings)) {
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\Core\Domain;
15 15
 
16
-use League\JsonReference\SchemaLoadingException;
17 16
 use League\JsonReference\LoaderInterface;
17
+use League\JsonReference\SchemaLoadingException;
18 18
 
19 19
 class DomainUriLoader implements LoaderInterface
20 20
 {
Please login to merge, or discard this patch.
src/Component/MetadataEndpoint/Tests/MetadataEndpointTest.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 Jose\Component\Core\AlgorithmManager;
20 19
 use Jose\Component\Core\Converter\StandardConverter;
21 20
 use Jose\Component\Core\JWK;
@@ -25,6 +24,7 @@  discard block
 block discarded – undo
25 24
 use OAuth2Framework\Component\MetadataEndpoint\MetadataEndpoint;
26 25
 use PHPUnit\Framework\TestCase;
27 26
 use Psr\Http\Message\ServerRequestInterface;
27
+use Psr\Http\Server\RequestHandlerInterface;
28 28
 
29 29
 /**
30 30
  * @group MetadataEndpoint
Please login to merge, or discard this patch.
src/Component/TokenEndpoint/GrantTypeData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * @param Client|null $client
56 56
      *
57
-     * @return GrantTypeData
57
+     * @return callable
58 58
      */
59 59
     public static function create(? Client $client): self
60 60
     {
Please login to merge, or discard this patch.