Failed Conditions
Pull Request — ng (#102)
by Florent
12:50 queued 09:11
created
src/Component/Core/Client/ClientRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@
 block discarded – undo
19 19
      * Save the client.
20 20
      *
21 21
      * @param Client $client
22
+     * @return void
22 23
      */
23 24
     public function save(Client $client);
24 25
 
Please login to merge, or discard this patch.
src/Component/AuthorizationEndpoint/Authorization.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
     /**
311 311
      * @param string $responseHeader
312
-     * @param mixed  $value
312
+     * @param string  $value
313 313
      *
314 314
      * @return Authorization
315 315
      */
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
     /**
433 433
      * @param string $key
434
-     * @param mixed  $data
434
+     * @param boolean  $data
435 435
      *
436 436
      * @return Authorization
437 437
      */
Please login to merge, or discard this patch.
src/Component/RefreshTokenGrant/RefreshTokenRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@
 block discarded – undo
21 21
 {
22 22
     /**
23 23
      * @param RefreshToken $refreshToken
24
+     * @return void
24 25
      */
25 26
     public function save(RefreshToken $refreshToken);
26 27
 
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
 class AuthorizationCodeGrantType implements GrantType
Please login to merge, or discard this patch.
src/Component/ClientAuthentication/AuthenticationMethodManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      * @param ServerRequestInterface $request
129 129
      * @param Client                 $client
130 130
      * @param AuthenticationMethod   $authenticationMethod
131
-     * @param mixed                  $clientCredentials
131
+     * @param string                  $clientCredentials
132 132
      *
133 133
      * @return bool
134 134
      */
Please login to merge, or discard this patch.
ClientAuthentication/Tests/ClientSecretBasicAuthenticationMethodTest.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\ClientAuthentication\Tests;
15 15
 
16
+use OAuth2Framework\Component\ClientAuthentication\AuthenticationMethodManager;
17
+use OAuth2Framework\Component\ClientAuthentication\ClientSecretBasic;
16 18
 use OAuth2Framework\Component\Core\Client\Client;
17 19
 use OAuth2Framework\Component\Core\Client\ClientId;
18 20
 use OAuth2Framework\Component\Core\DataBag\DataBag;
19 21
 use OAuth2Framework\Component\Core\UserAccount\UserAccountId;
20
-use OAuth2Framework\Component\ClientAuthentication\AuthenticationMethodManager;
21
-use OAuth2Framework\Component\ClientAuthentication\ClientSecretBasic;
22 22
 use PHPUnit\Framework\TestCase;
23 23
 use Psr\Http\Message\ServerRequestInterface;
24 24
 
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
 class AccessTokenMiddleware implements MiddlewareInterface
26 26
 {
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
 class OAuth2SecurityMiddleware implements MiddlewareInterface
28 28
 {
Please login to merge, or discard this patch.
src/Component/OpenIdConnect/UserInfo/UserInfo.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 namespace OAuth2Framework\Component\OpenIdConnect\UserInfo;
15 15
 
16
+use OAuth2Framework\Component\Core\Client\Client;
17
+use OAuth2Framework\Component\Core\UserAccount\UserAccount;
16 18
 use OAuth2Framework\Component\OpenIdConnect\UserInfo\ClaimSource\ClaimSourceManager;
17 19
 use OAuth2Framework\Component\OpenIdConnect\UserInfo\Pairwise\PairwiseSubjectIdentifierAlgorithm;
18 20
 use OAuth2Framework\Component\OpenIdConnect\UserInfo\ScopeSupport\UserInfoScopeSupportManager;
19
-use OAuth2Framework\Component\Core\Client\Client;
20
-use OAuth2Framework\Component\Core\UserAccount\UserAccount;
21 21
 
22 22
 class UserInfo
23 23
 {
Please login to merge, or discard this patch.