@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class AuthenticationInterface |
57 | 57 | * @package Platine\Framework\Auth |
58 | 58 | */ |
59 | -interface AuthenticationInterface |
|
60 | -{ |
|
59 | +interface AuthenticationInterface { |
|
61 | 60 | /** |
62 | 61 | * Authenticate the user |
63 | 62 | * @param array<string, mixed> $credentials |
@@ -69,8 +69,7 @@ |
||
69 | 69 | * @package Platine\Framework\Auth\Authentication |
70 | 70 | * @template T |
71 | 71 | */ |
72 | -class JWTAuthentication implements ApiAuthenticationInterface |
|
73 | -{ |
|
72 | +class JWTAuthentication implements ApiAuthenticationInterface { |
|
74 | 73 | /** |
75 | 74 | * The JWT instance |
76 | 75 | * @var JWT |
@@ -63,8 +63,7 @@ |
||
63 | 63 | * class SessionAuthentication |
64 | 64 | * @package Platine\Framework\Auth\Authentication |
65 | 65 | */ |
66 | -class SessionAuthentication implements AuthenticationInterface |
|
67 | -{ |
|
66 | +class SessionAuthentication implements AuthenticationInterface { |
|
68 | 67 | /** |
69 | 68 | * The session instance to use |
70 | 69 | * @var Session |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class IdentityInterface |
52 | 52 | * @package Platine\Framework\Auth |
53 | 53 | */ |
54 | -interface IdentityInterface |
|
55 | -{ |
|
54 | +interface IdentityInterface { |
|
56 | 55 | /** |
57 | 56 | * Return the id of the current user |
58 | 57 | * @return mixed |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * class SessionAuthorization |
55 | 55 | * @package Platine\Framework\Auth\Authorization |
56 | 56 | */ |
57 | -class SessionAuthorization implements AuthorizationInterface |
|
58 | -{ |
|
57 | +class SessionAuthorization implements AuthorizationInterface { |
|
59 | 58 | /** |
60 | 59 | * The session instance to use |
61 | 60 | * @var Session |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class ApiAuthenticationInterface |
58 | 58 | * @package Platine\Framework\Auth |
59 | 59 | */ |
60 | -interface ApiAuthenticationInterface |
|
61 | -{ |
|
60 | +interface ApiAuthenticationInterface { |
|
62 | 61 | /** |
63 | 62 | * Whether the request is authenticated |
64 | 63 | * @param ServerRequestInterface $request |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Permission |
55 | 55 | * @package Platine\Framework\Auth\Entity |
56 | 56 | */ |
57 | -class Permission extends Entity |
|
58 | -{ |
|
57 | +class Permission extends Entity { |
|
59 | 58 | /** |
60 | 59 | * {@inheritdoc} |
61 | 60 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class Token |
56 | 56 | * @package Platine\Framework\Auth\Entity |
57 | 57 | */ |
58 | -class Token extends Entity |
|
59 | -{ |
|
58 | +class Token extends Entity { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Role |
55 | 55 | * @package Platine\Framework\Auth\Entity |
56 | 56 | */ |
57 | -class Role extends Entity |
|
58 | -{ |
|
57 | +class Role extends Entity { |
|
59 | 58 | /** |
60 | 59 | * {@inheritdoc} |
61 | 60 | */ |