@@ -36,8 +36,7 @@ discard block |
||
36 | 36 | * @class Scope |
37 | 37 | * @package Platine\OAuth2\Entity |
38 | 38 | */ |
39 | -class Scope |
|
40 | -{ |
|
39 | +class Scope { |
|
41 | 40 | /** |
42 | 41 | * The scope id |
43 | 42 | * @var int |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | /** |
66 | 65 | * Can not rewrite the constructor in child classes |
67 | 66 | */ |
68 | - final public function __construct() |
|
69 | - { |
|
67 | + final public function __construct() { |
|
70 | 68 | } |
71 | 69 | |
72 | 70 | /** |
@@ -36,8 +36,7 @@ |
||
36 | 36 | * @class AuthorizationCode |
37 | 37 | * @package Platine\OAuth2\Entity |
38 | 38 | */ |
39 | -class AuthorizationCode extends BaseToken |
|
40 | -{ |
|
39 | +class AuthorizationCode extends BaseToken { |
|
41 | 40 | /** |
42 | 41 | * The redirect URI |
43 | 42 | * @var string |
@@ -43,8 +43,7 @@ discard block |
||
43 | 43 | * @class BaseToken |
44 | 44 | * @package Platine\OAuth2\Entity |
45 | 45 | */ |
46 | -abstract class BaseToken |
|
47 | -{ |
|
46 | +abstract class BaseToken { |
|
48 | 47 | /** |
49 | 48 | * The token value |
50 | 49 | * @var string |
@@ -78,8 +77,7 @@ discard block |
||
78 | 77 | /** |
79 | 78 | * Can not rewrite the constructor in child classes |
80 | 79 | */ |
81 | - final public function __construct() |
|
82 | - { |
|
80 | + final public function __construct() { |
|
83 | 81 | } |
84 | 82 | |
85 | 83 | /** |
@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class RefreshTokenRepositoryInterface |
39 | 39 | * @package Platine\OAuth2\Repository |
40 | 40 | */ |
41 | -interface RefreshTokenRepositoryInterface extends TokenRepositoryInterface |
|
42 | -{ |
|
41 | +interface RefreshTokenRepositoryInterface extends TokenRepositoryInterface { |
|
43 | 42 | /** |
44 | 43 | * Save the refresh token |
45 | 44 | * @param RefreshToken $token |
@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class TokenRepositoryInterface |
39 | 39 | * @package Platine\OAuth2\Repository |
40 | 40 | */ |
41 | -interface TokenRepositoryInterface |
|
42 | -{ |
|
41 | +interface TokenRepositoryInterface { |
|
43 | 42 | /** |
44 | 43 | * Find the token |
45 | 44 | * @param string $token |
@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class ClientRepositoryInterface |
39 | 39 | * @package Platine\OAuth2\Repository |
40 | 40 | */ |
41 | -interface ClientRepositoryInterface |
|
42 | -{ |
|
41 | +interface ClientRepositoryInterface { |
|
43 | 42 | /** |
44 | 43 | * Save the client |
45 | 44 | * @param Client $client |
@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class AccessTokenRepositoryInterface |
39 | 39 | * @package Platine\OAuth2\Repository |
40 | 40 | */ |
41 | -interface AccessTokenRepositoryInterface extends TokenRepositoryInterface |
|
42 | -{ |
|
41 | +interface AccessTokenRepositoryInterface extends TokenRepositoryInterface { |
|
43 | 42 | /** |
44 | 43 | * Save the token |
45 | 44 | * @param AccessToken $token |
@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class AuthorizationCodeRepositoryInterface |
39 | 39 | * @package Platine\OAuth2\Repository |
40 | 40 | */ |
41 | -interface AuthorizationCodeRepositoryInterface extends TokenRepositoryInterface |
|
42 | -{ |
|
41 | +interface AuthorizationCodeRepositoryInterface extends TokenRepositoryInterface { |
|
43 | 42 | /** |
44 | 43 | * Save the authorization code |
45 | 44 | * @param AuthorizationCode $token |
@@ -38,8 +38,7 @@ |
||
38 | 38 | * @class ScopeRepositoryInterface |
39 | 39 | * @package Platine\OAuth2\Repository |
40 | 40 | */ |
41 | -interface ScopeRepositoryInterface |
|
42 | -{ |
|
41 | +interface ScopeRepositoryInterface { |
|
43 | 42 | /** |
44 | 43 | * Save the scope |
45 | 44 | * @param Scope $scope |