@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class Base64UrlSafeEncoder |
54 | 54 | * @package Platine\Framework\Security\JWT\Encoder |
55 | 55 | */ |
56 | -class Base64UrlSafeEncoder implements EncoderInterface |
|
57 | -{ |
|
56 | +class Base64UrlSafeEncoder implements EncoderInterface { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class EncoderInterface |
52 | 52 | * @package Platine\Framework\Security\JWT |
53 | 53 | */ |
54 | -interface EncoderInterface |
|
55 | -{ |
|
54 | +interface EncoderInterface { |
|
56 | 55 | /** |
57 | 56 | * Encode the given data |
58 | 57 | * @param string $data |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | * @template T |
64 | 64 | */ |
65 | -class AuthenticationMiddleware implements MiddlewareInterface |
|
66 | -{ |
|
65 | +class AuthenticationMiddleware implements MiddlewareInterface { |
|
67 | 66 | /** |
68 | 67 | * The Authentication instance |
69 | 68 | * @var AuthenticationInterface |
@@ -61,8 +61,7 @@ |
||
61 | 61 | * @package Platine\Framework\Auth\Middleware |
62 | 62 | * @template T |
63 | 63 | */ |
64 | -class ApiAuthenticationMiddleware implements MiddlewareInterface |
|
65 | -{ |
|
64 | +class ApiAuthenticationMiddleware implements MiddlewareInterface { |
|
66 | 65 | /** |
67 | 66 | * The Authentication instance |
68 | 67 | * @var ApiAuthenticationInterface |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | * @template T |
64 | 64 | */ |
65 | -class AuthorizationMiddleware implements MiddlewareInterface |
|
66 | -{ |
|
65 | +class AuthorizationMiddleware implements MiddlewareInterface { |
|
67 | 66 | /** |
68 | 67 | * The Authorization instance |
69 | 68 | * @var AuthorizationInterface |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class AuthorizationInterface |
52 | 52 | * @package Platine\Framework\Auth |
53 | 53 | */ |
54 | -interface AuthorizationInterface |
|
55 | -{ |
|
54 | +interface AuthorizationInterface { |
|
56 | 55 | /** |
57 | 56 | * Check if user is granted the given permission |
58 | 57 | * @param string $permission the permission to check |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class AuthInvalidPasswordEvent |
55 | 55 | * @package Platine\Framework\Auth\Event |
56 | 56 | */ |
57 | -class AuthInvalidPasswordEvent extends Event |
|
58 | -{ |
|
57 | +class AuthInvalidPasswordEvent extends Event { |
|
59 | 58 | /** |
60 | 59 | * The authentication user |
61 | 60 | * @var User |
@@ -66,8 +65,7 @@ discard block |
||
66 | 65 | * Create new instance |
67 | 66 | * @param User $user |
68 | 67 | */ |
69 | - public function __construct(User $user) |
|
70 | - { |
|
68 | + public function __construct(User $user) { |
|
71 | 69 | parent::__construct(__CLASS__, []); |
72 | 70 | $this->user = $user; |
73 | 71 | } |
@@ -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 |
@@ -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 |