@@ -43,8 +43,7 @@ |
||
| 43 | 43 | * @class AuthorizationRequestMiddleware |
| 44 | 44 | * @package Platine\OAuth2\Middleware |
| 45 | 45 | */ |
| 46 | -class AuthorizationRequestMiddleware implements MiddlewareInterface |
|
| 47 | -{ |
|
| 46 | +class AuthorizationRequestMiddleware implements MiddlewareInterface { |
|
| 48 | 47 | /** |
| 49 | 48 | * Create new instance |
| 50 | 49 | * @param AuthorizationServerInterface $authorizationServer |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function getAccessToken( |
| 70 | 70 | ServerRequestInterface $request, |
| 71 | - string|array $scopes = [] |
|
| 71 | + string | array $scopes = [] |
|
| 72 | 72 | ): ?AccessToken { |
| 73 | 73 | $accessToken = $this->getTokenFromRequest($request); |
| 74 | 74 | if ($accessToken === null) { |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | * @class ResourceServer |
| 48 | 48 | * @package Platine\OAuth2 |
| 49 | 49 | */ |
| 50 | -class ResourceServer implements ResourceServerInterface |
|
| 51 | -{ |
|
| 50 | +class ResourceServer implements ResourceServerInterface { |
|
| 52 | 51 | /** |
| 53 | 52 | * Create new instance |
| 54 | 53 | * @param AccessTokenService $accessTokenService |
@@ -39,14 +39,12 @@ |
||
| 39 | 39 | * @class ClientService |
| 40 | 40 | * @package Platine\OAuth2\Service |
| 41 | 41 | */ |
| 42 | -class ClientService |
|
| 43 | -{ |
|
| 42 | +class ClientService { |
|
| 44 | 43 | /** |
| 45 | 44 | * Create new instance |
| 46 | 45 | * @param ClientRepositoryInterface $clientRepository |
| 47 | 46 | */ |
| 48 | - public function __construct(protected ClientRepositoryInterface $clientRepository) |
|
| 49 | - { |
|
| 47 | + public function __construct(protected ClientRepositoryInterface $clientRepository) { |
|
| 50 | 48 | } |
| 51 | 49 | |
| 52 | 50 | /** |
@@ -39,14 +39,12 @@ |
||
| 39 | 39 | * @class ScopeService |
| 40 | 40 | * @package Platine\OAuth2\Service |
| 41 | 41 | */ |
| 42 | -class ScopeService |
|
| 43 | -{ |
|
| 42 | +class ScopeService { |
|
| 44 | 43 | /** |
| 45 | 44 | * Create new instance |
| 46 | 45 | * @param ScopeRepositoryInterface $scopeRepository |
| 47 | 46 | */ |
| 48 | - public function __construct(protected ScopeRepositoryInterface $scopeRepository) |
|
| 49 | - { |
|
| 47 | + public function __construct(protected ScopeRepositoryInterface $scopeRepository) { |
|
| 50 | 48 | } |
| 51 | 49 | |
| 52 | 50 | /** |
@@ -38,8 +38,7 @@ discard block |
||
| 38 | 38 | * @class Scope |
| 39 | 39 | * @package Platine\OAuth2\Entity |
| 40 | 40 | */ |
| 41 | -class Scope implements Stringable |
|
| 42 | -{ |
|
| 41 | +class Scope implements Stringable { |
|
| 43 | 42 | /** |
| 44 | 43 | * The scope id |
| 45 | 44 | * @var int |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | /** |
| 68 | 67 | * Can not rewrite the constructor in child classes |
| 69 | 68 | */ |
| 70 | - final public function __construct() |
|
| 71 | - { |
|
| 69 | + final public function __construct() { |
|
| 72 | 70 | } |
| 73 | 71 | |
| 74 | 72 | /** |