@@ -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 |
@@ -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 |
@@ -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 |
@@ -65,8 +65,7 @@ discard block |
||
| 65 | 65 | * @class Application |
| 66 | 66 | * @package Platine\Framework\App |
| 67 | 67 | */ |
| 68 | -class Application extends Container |
|
| 69 | -{ |
|
| 68 | +class Application extends Container { |
|
| 70 | 69 | /** |
| 71 | 70 | * The application version |
| 72 | 71 | */ |
@@ -148,8 +147,7 @@ discard block |
||
| 148 | 147 | * Create new instance |
| 149 | 148 | * @param string $basePath |
| 150 | 149 | */ |
| 151 | - public function __construct(string $basePath = '') |
|
| 152 | - { |
|
| 150 | + public function __construct(string $basePath = '') { |
|
| 153 | 151 | parent::__construct(); |
| 154 | 152 | |
| 155 | 153 | $this->basePath = $basePath; |
@@ -244,8 +242,7 @@ discard block |
||
| 244 | 242 | * @param string $env |
| 245 | 243 | * @return $this |
| 246 | 244 | */ |
| 247 | - public function setEnvironment(string $env) |
|
| 248 | - { |
|
| 245 | + public function setEnvironment(string $env) { |
|
| 249 | 246 | $this->env = $env; |
| 250 | 247 | |
| 251 | 248 | return $this; |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * @class Auditor |
| 60 | 60 | * @package Platine\Framework\Audit |
| 61 | 61 | */ |
| 62 | -class Auditor |
|
| 63 | -{ |
|
| 62 | +class Auditor { |
|
| 64 | 63 | /** |
| 65 | 64 | * The audit repository |
| 66 | 65 | * @var AuditRepository |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | * @class EventType |
| 52 | 52 | * @package Platine\Framework\Audit\Enum |
| 53 | 53 | */ |
| 54 | -class EventType |
|
| 55 | -{ |
|
| 54 | +class EventType { |
|
| 56 | 55 | public const AUTH = 'auth'; |
| 57 | 56 | public const PASSWORD_RESET = 'password_reset'; |
| 58 | 57 | public const CREATE = 'create'; |