@@ -94,8 +94,7 @@ |
||
94 | 94 | * @class OAuth2ServiceProvider |
95 | 95 | * @package Platine\App\Provider |
96 | 96 | */ |
97 | -class OAuth2ServiceProvider extends ServiceProvider |
|
98 | -{ |
|
97 | +class OAuth2ServiceProvider extends ServiceProvider { |
|
99 | 98 | /** |
100 | 99 | * {@inheritdoc} |
101 | 100 | */ |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class TokenOwner |
54 | 54 | * @package Platine\Framework\OAuth2\User |
55 | 55 | */ |
56 | -class TokenOwner implements TokenOwnerInterface |
|
57 | -{ |
|
56 | +class TokenOwner implements TokenOwnerInterface { |
|
58 | 57 | /** |
59 | 58 | * The owner id |
60 | 59 | * @var mixed |
@@ -65,16 +64,14 @@ discard block |
||
65 | 64 | * Create new instance |
66 | 65 | * @param mixed|null $id |
67 | 66 | */ |
68 | - public function __construct($id = null) |
|
69 | - { |
|
67 | + public function __construct($id = null) { |
|
70 | 68 | $this->id = $id; |
71 | 69 | } |
72 | 70 | |
73 | 71 | /** |
74 | 72 | * {@inheritdoc} |
75 | 73 | */ |
76 | - public function getOwnerId() |
|
77 | - { |
|
74 | + public function getOwnerId() { |
|
78 | 75 | return 1; |
79 | 76 | } |
80 | 77 | } |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class UserAuthentication |
55 | 55 | * @package Platine\Framework\OAuth2\User |
56 | 56 | */ |
57 | -class UserAuthentication implements UserAuthenticationInterface |
|
58 | -{ |
|
57 | +class UserAuthentication implements UserAuthenticationInterface { |
|
59 | 58 | /** |
60 | 59 | * {@inheritdoc} |
61 | 60 | */ |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class AuthorizationCodeRepository |
61 | 61 | * @package Platine\Framework\OAuth2\Repository |
62 | 62 | */ |
63 | -class AuthorizationCodeRepository extends Repository implements AuthorizationCodeRepositoryInterface |
|
64 | -{ |
|
63 | +class AuthorizationCodeRepository extends Repository implements AuthorizationCodeRepositoryInterface { |
|
65 | 64 | /** |
66 | 65 | * The Client Service |
67 | 66 | * @var ClientService |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | * @param EntityManager $manager |
74 | 73 | * @param ClientService $clientService |
75 | 74 | */ |
76 | - public function __construct(EntityManager $manager, ClientService $clientService) |
|
77 | - { |
|
75 | + public function __construct(EntityManager $manager, ClientService $clientService) { |
|
78 | 76 | parent::__construct($manager, OauthAuthorizationCode::class); |
79 | 77 | $this->clientService = $clientService; |
80 | 78 | } |
@@ -57,14 +57,12 @@ |
||
57 | 57 | * @class ClientRepository |
58 | 58 | * @package Platine\Framework\OAuth2\Repository |
59 | 59 | */ |
60 | -class ClientRepository extends Repository implements ClientRepositoryInterface |
|
61 | -{ |
|
60 | +class ClientRepository extends Repository implements ClientRepositoryInterface { |
|
62 | 61 | /** |
63 | 62 | * Create new instance |
64 | 63 | * @param EntityManager $manager |
65 | 64 | */ |
66 | - public function __construct(EntityManager $manager) |
|
67 | - { |
|
65 | + public function __construct(EntityManager $manager) { |
|
68 | 66 | parent::__construct($manager, OauthClient::class); |
69 | 67 | } |
70 | 68 |
@@ -57,14 +57,12 @@ |
||
57 | 57 | * @class ScopeRepository |
58 | 58 | * @package Platine\Framework\OAuth2\Repository |
59 | 59 | */ |
60 | -class ScopeRepository extends Repository implements ScopeRepositoryInterface |
|
61 | -{ |
|
60 | +class ScopeRepository extends Repository implements ScopeRepositoryInterface { |
|
62 | 61 | /** |
63 | 62 | * Create new instance |
64 | 63 | * @param EntityManager $manager |
65 | 64 | */ |
66 | - public function __construct(EntityManager $manager) |
|
67 | - { |
|
65 | + public function __construct(EntityManager $manager) { |
|
68 | 66 | parent::__construct($manager, OauthScope::class); |
69 | 67 | } |
70 | 68 |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class RefreshTokenRepository |
61 | 61 | * @package Platine\Framework\OAuth2\Repository |
62 | 62 | */ |
63 | -class RefreshTokenRepository extends Repository implements RefreshTokenRepositoryInterface |
|
64 | -{ |
|
63 | +class RefreshTokenRepository extends Repository implements RefreshTokenRepositoryInterface { |
|
65 | 64 | /** |
66 | 65 | * The Client Service |
67 | 66 | * @var ClientService |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | * @param EntityManager $manager |
74 | 73 | * @param ClientService $clientService |
75 | 74 | */ |
76 | - public function __construct(EntityManager $manager, ClientService $clientService) |
|
77 | - { |
|
75 | + public function __construct(EntityManager $manager, ClientService $clientService) { |
|
78 | 76 | parent::__construct($manager, OauthRefreshToken::class); |
79 | 77 | $this->clientService = $clientService; |
80 | 78 | } |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class AccessTokenRepository |
61 | 61 | * @package Platine\Framework\OAuth2\Repository |
62 | 62 | */ |
63 | -class AccessTokenRepository extends Repository implements AccessTokenRepositoryInterface |
|
64 | -{ |
|
63 | +class AccessTokenRepository extends Repository implements AccessTokenRepositoryInterface { |
|
65 | 64 | /** |
66 | 65 | * The Client Service |
67 | 66 | * @var ClientService |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | * @param EntityManager $manager |
74 | 73 | * @param ClientService $clientService |
75 | 74 | */ |
76 | - public function __construct(EntityManager $manager, ClientService $clientService) |
|
77 | - { |
|
75 | + public function __construct(EntityManager $manager, ClientService $clientService) { |
|
78 | 76 | parent::__construct($manager, OauthAccessToken::class); |
79 | 77 | $this->clientService = $clientService; |
80 | 78 | } |
@@ -11,8 +11,7 @@ |
||
11 | 11 | * @class OauthAuthorizationCode |
12 | 12 | * @package Platine\Framework\OAuth2\Entity |
13 | 13 | */ |
14 | -class OauthAuthorizationCode extends Entity |
|
15 | -{ |
|
14 | +class OauthAuthorizationCode extends Entity { |
|
16 | 15 | /** |
17 | 16 | * {@inheritdoc} |
18 | 17 | */ |