@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class TokenOwnerInterface |
39 | 39 | * @package Platine\OAuth2\Entity |
40 | 40 | */ |
41 | -interface UserAuthenticationInterface |
|
42 | -{ |
|
41 | +interface UserAuthenticationInterface { |
|
43 | 42 | /** |
44 | 43 | * Validate the user |
45 | 44 | * this MUST return an object that implement the TokenOwnerInterface, or |
@@ -42,8 +42,7 @@ |
||
42 | 42 | * @class AuthorizationServerInterface |
43 | 43 | * @package Platine\OAuth2 |
44 | 44 | */ |
45 | -interface AuthorizationServerInterface |
|
46 | -{ |
|
45 | +interface AuthorizationServerInterface { |
|
47 | 46 | /** |
48 | 47 | * Whether the authorization server has support the given grant |
49 | 48 | * @param string $grant |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class AuthorizationServer |
52 | 52 | * @package Platine\OAuth2 |
53 | 53 | */ |
54 | -class AuthorizationServer implements AuthorizationServerInterface |
|
55 | -{ |
|
54 | +class AuthorizationServer implements AuthorizationServerInterface { |
|
56 | 55 | /** |
57 | 56 | * The ClientService |
58 | 57 | * @var ClientService |
@@ -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 | * The AccessTokenService |
54 | 53 | * @var AccessTokenService |
@@ -45,8 +45,7 @@ |
||
45 | 45 | * @class ResourceServerInterface |
46 | 46 | * @package Platine\OAuth2 |
47 | 47 | */ |
48 | -interface ResourceServerInterface |
|
49 | -{ |
|
48 | +interface ResourceServerInterface { |
|
50 | 49 | /** |
51 | 50 | * Return the access token |
52 | 51 | * @param ServerRequestInterface $request |
@@ -42,8 +42,7 @@ |
||
42 | 42 | * @class AuthorizationRequestMiddleware |
43 | 43 | * @package Platine\OAuth2\Middleware |
44 | 44 | */ |
45 | -class AuthorizationRequestMiddleware implements MiddlewareInterface |
|
46 | -{ |
|
45 | +class AuthorizationRequestMiddleware implements MiddlewareInterface { |
|
47 | 46 | /** |
48 | 47 | * The authorization server instance |
49 | 48 | * @var AuthorizationServerInterface |
@@ -42,8 +42,7 @@ |
||
42 | 42 | * @class TokenRequestMiddleware |
43 | 43 | * @package Platine\OAuth2\Middleware |
44 | 44 | */ |
45 | -class TokenRequestMiddleware implements MiddlewareInterface |
|
46 | -{ |
|
45 | +class TokenRequestMiddleware implements MiddlewareInterface { |
|
47 | 46 | /** |
48 | 47 | * The authorization server instance |
49 | 48 | * @var AuthorizationServerInterface |
@@ -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 | * The authorization server instance |
49 | 48 | * @var AuthorizationServerInterface |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class ResourceServerMiddleware |
53 | 53 | * @package Platine\OAuth2\Middleware |
54 | 54 | */ |
55 | -class ResourceServerMiddleware implements MiddlewareInterface |
|
56 | -{ |
|
55 | +class ResourceServerMiddleware implements MiddlewareInterface { |
|
57 | 56 | /** |
58 | 57 | * The resource server instance |
59 | 58 | * @var ResourceServerInterface |