@@ -38,14 +38,12 @@ |
||
| 38 | 38 | * @class RedirectResponse |
| 39 | 39 | * @package Platine\OAuth2\Response |
| 40 | 40 | */ |
| 41 | -class RedirectResponse extends Response |
|
| 42 | -{ |
|
| 41 | +class RedirectResponse extends Response { |
|
| 43 | 42 | /** |
| 44 | 43 | * Create new instance |
| 45 | 44 | * @param string $uri |
| 46 | 45 | */ |
| 47 | - public function __construct(string $uri = '/') |
|
| 48 | - { |
|
| 46 | + public function __construct(string $uri = '/') { |
|
| 49 | 47 | parent::__construct(302); |
| 50 | 48 | $this->headers['location'] = [$uri]; |
| 51 | 49 | } |
@@ -45,8 +45,7 @@ |
||
| 45 | 45 | * @class RefreshTokenGrant |
| 46 | 46 | * @package Platine\OAuth2\Grant |
| 47 | 47 | */ |
| 48 | -class RefreshTokenGrant extends BaseGrant |
|
| 49 | -{ |
|
| 48 | +class RefreshTokenGrant extends BaseGrant { |
|
| 50 | 49 | public const GRANT_TYPE = 'refresh_token'; |
| 51 | 50 | public const GRANT_RESPONSE_TYPE = ''; |
| 52 | 51 | |
@@ -36,8 +36,7 @@ |
||
| 36 | 36 | * @class AuthorizationServerInterface |
| 37 | 37 | * @package Platine\OAuth2 |
| 38 | 38 | */ |
| 39 | -interface AuthorizationServerInterface |
|
| 40 | -{ |
|
| 39 | +interface AuthorizationServerInterface { |
|
| 41 | 40 | /** |
| 42 | 41 | * Whether the authorization server the given grant |
| 43 | 42 | * @param string $grant |