@@ -7,8 +7,7 @@ |
||
7 | 7 | use Platine\Database\Schema\CreateTable; |
8 | 8 | use Platine\Framework\Migration\AbstractMigration; |
9 | 9 | |
10 | -class AddOauth2ScopesTable20230802144938 extends AbstractMigration |
|
11 | -{ |
|
10 | +class AddOauth2ScopesTable20230802144938 extends AbstractMigration { |
|
12 | 11 | public function up(): void |
13 | 12 | { |
14 | 13 | //Action when migrate up |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use Platine\Database\Schema\CreateTable; |
8 | 8 | use Platine\Framework\Migration\AbstractMigration; |
9 | 9 | |
10 | -class AddOauth2RefreshTokensTable20230802152020 extends AbstractMigration |
|
11 | -{ |
|
10 | +class AddOauth2RefreshTokensTable20230802152020 extends AbstractMigration { |
|
12 | 11 | public function up(): void |
13 | 12 | { |
14 | 13 | //Action when migrate up |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use Platine\Database\Schema\CreateTable; |
8 | 8 | use Platine\Framework\Migration\AbstractMigration; |
9 | 9 | |
10 | -class AddOauth2AccessTokensTable20230802151233 extends AbstractMigration |
|
11 | -{ |
|
10 | +class AddOauth2AccessTokensTable20230802151233 extends AbstractMigration { |
|
12 | 11 | public function up(): void |
13 | 12 | { |
14 | 13 | //Action when migrate up |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use Platine\Database\Schema\CreateTable; |
8 | 8 | use Platine\Framework\Migration\AbstractMigration; |
9 | 9 | |
10 | -class AddOauth2ClientsTable20230802150106 extends AbstractMigration |
|
11 | -{ |
|
10 | +class AddOauth2ClientsTable20230802150106 extends AbstractMigration { |
|
12 | 11 | public function up(): void |
13 | 12 | { |
14 | 13 | //Action when migrate up |
@@ -38,14 +38,12 @@ |
||
38 | 38 | * @class OAuthRedirectResponse |
39 | 39 | * @package Platine\OAuth2\Response |
40 | 40 | */ |
41 | -class OAuthRedirectResponse extends Response |
|
42 | -{ |
|
41 | +class OAuthRedirectResponse 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 | } |
@@ -39,8 +39,7 @@ |
||
39 | 39 | * @class OAuthJsonResponse |
40 | 40 | * @package Platine\OAuth2\Response |
41 | 41 | */ |
42 | -class OAuthJsonResponse extends Response |
|
43 | -{ |
|
42 | +class OAuthJsonResponse extends Response { |
|
44 | 43 | /** |
45 | 44 | * Create new instance |
46 | 45 | * @param mixed $data |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class AuthorizationServer |
53 | 53 | * @package Platine\OAuth2 |
54 | 54 | */ |
55 | -class AuthorizationServer implements AuthorizationServerInterface |
|
56 | -{ |
|
55 | +class AuthorizationServer implements AuthorizationServerInterface { |
|
57 | 56 | /** |
58 | 57 | * The grant list |
59 | 58 | * @var array<string, GrantInterface> |
@@ -42,8 +42,7 @@ |
||
42 | 42 | * @class RevocationRequestMiddleware |
43 | 43 | * @package Platine\OAuth2\Middleware |
44 | 44 | */ |
45 | -class RevocationRequestMiddleware implements MiddlewareInterface |
|
46 | -{ |
|
45 | +class RevocationRequestMiddleware implements MiddlewareInterface { |
|
47 | 46 | /** |
48 | 47 | * Create new instance |
49 | 48 | * @param AuthorizationServerInterface $authorizationServer |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class ResourceServerMiddleware |
54 | 54 | * @package Platine\OAuth2\Middleware |
55 | 55 | */ |
56 | -class ResourceServerMiddleware implements MiddlewareInterface |
|
57 | -{ |
|
56 | +class ResourceServerMiddleware implements MiddlewareInterface { |
|
58 | 57 | /** |
59 | 58 | * Create new instance |
60 | 59 | * @param ResourceServerInterface $resourceServer |