@@ -4,6 +4,6 @@ |
||
| 4 | 4 | use Platine\App\Http\Action\HomeAction; |
| 5 | 5 | use Platine\Route\Router; |
| 6 | 6 | |
| 7 | - return [static function (Router $router): void { |
|
| 7 | + return [static function(Router $router): void { |
|
| 8 | 8 | $router->get('/', HomeAction::class, 'home'); |
| 9 | 9 | }]; |
@@ -19,8 +19,7 @@ |
||
| 19 | 19 | * @template T |
| 20 | 20 | * @extends BaseAction<T> |
| 21 | 21 | */ |
| 22 | -class AuthAction extends BaseAction |
|
| 23 | -{ |
|
| 22 | +class AuthAction extends BaseAction { |
|
| 24 | 23 | /** |
| 25 | 24 | * Create new instance |
| 26 | 25 | * @param AuthenticationInterface $authentication |
@@ -15,8 +15,7 @@ |
||
| 15 | 15 | * @template T |
| 16 | 16 | * @extends BaseAction<T> |
| 17 | 17 | */ |
| 18 | -class LogoutAction extends BaseAction |
|
| 19 | -{ |
|
| 18 | +class LogoutAction extends BaseAction { |
|
| 20 | 19 | /** |
| 21 | 20 | * Create new instance |
| 22 | 21 | * @param AuthenticationInterface $authentication |
@@ -16,15 +16,13 @@ |
||
| 16 | 16 | * @package Platine\App\Validator |
| 17 | 17 | * @template TEntity as \Platine\Orm\Entity |
| 18 | 18 | */ |
| 19 | -class RoleValidator extends AbstractValidator |
|
| 20 | -{ |
|
| 19 | +class RoleValidator extends AbstractValidator { |
|
| 21 | 20 | /** |
| 22 | 21 | * Create new instance |
| 23 | 22 | * @param RoleParam<TEntity> $param |
| 24 | 23 | * @param Lang $lang |
| 25 | 24 | */ |
| 26 | - public function __construct(protected RoleParam $param, Lang $lang) |
|
| 27 | - { |
|
| 25 | + public function __construct(protected RoleParam $param, Lang $lang) { |
|
| 28 | 26 | parent::__construct($lang); |
| 29 | 27 | } |
| 30 | 28 | |
@@ -17,15 +17,13 @@ |
||
| 17 | 17 | * @package Platine\App\Validator |
| 18 | 18 | * @template TEntity as \Platine\Orm\Entity |
| 19 | 19 | */ |
| 20 | -class AuthValidator extends AbstractValidator |
|
| 21 | -{ |
|
| 20 | +class AuthValidator extends AbstractValidator { |
|
| 22 | 21 | /** |
| 23 | 22 | * Create new instance |
| 24 | 23 | * @param AuthParam<TEntity> $param |
| 25 | 24 | * @param Lang $lang |
| 26 | 25 | */ |
| 27 | - public function __construct(protected AuthParam $param, Lang $lang) |
|
| 28 | - { |
|
| 26 | + public function __construct(protected AuthParam $param, Lang $lang) { |
|
| 29 | 27 | parent::__construct($lang); |
| 30 | 28 | } |
| 31 | 29 | |
@@ -21,8 +21,7 @@ |
||
| 21 | 21 | * @package Platine\App\Validator |
| 22 | 22 | * @template TEntity as \Platine\Orm\Entity |
| 23 | 23 | */ |
| 24 | -class UserValidator extends AbstractValidator |
|
| 25 | -{ |
|
| 24 | +class UserValidator extends AbstractValidator { |
|
| 26 | 25 | /** |
| 27 | 26 | * Create new instance |
| 28 | 27 | * @param UserParam<TEntity> $param |
@@ -16,15 +16,13 @@ |
||
| 16 | 16 | * @package Platine\App\Validator |
| 17 | 17 | * @template TEntity as \Platine\Orm\Entity |
| 18 | 18 | */ |
| 19 | -class ProductCategoryValidator extends AbstractValidator |
|
| 20 | -{ |
|
| 19 | +class ProductCategoryValidator extends AbstractValidator { |
|
| 21 | 20 | /** |
| 22 | 21 | * Create new instance |
| 23 | 22 | * @param ProductCategoryParam<TEntity> $param |
| 24 | 23 | * @param Lang $lang |
| 25 | 24 | */ |
| 26 | - public function __construct(protected ProductCategoryParam $param, Lang $lang) |
|
| 27 | - { |
|
| 25 | + public function __construct(protected ProductCategoryParam $param, Lang $lang) { |
|
| 28 | 26 | parent::__construct($lang); |
| 29 | 27 | } |
| 30 | 28 | |
@@ -19,15 +19,13 @@ |
||
| 19 | 19 | * @package Platine\App\Validator |
| 20 | 20 | * @template TEntity as \Platine\Orm\Entity |
| 21 | 21 | */ |
| 22 | -class ProductValidator extends AbstractValidator |
|
| 23 | -{ |
|
| 22 | +class ProductValidator extends AbstractValidator { |
|
| 24 | 23 | /** |
| 25 | 24 | * Create new instance |
| 26 | 25 | * @param ProductParam<TEntity> $param |
| 27 | 26 | * @param Lang $lang |
| 28 | 27 | */ |
| 29 | - public function __construct(protected ProductParam $param, Lang $lang) |
|
| 30 | - { |
|
| 28 | + public function __construct(protected ProductParam $param, Lang $lang) { |
|
| 31 | 29 | parent::__construct($lang); |
| 32 | 30 | } |
| 33 | 31 | |
@@ -17,15 +17,13 @@ |
||
| 17 | 17 | * @package Platine\App\Validator |
| 18 | 18 | * @template TEntity as \Platine\Orm\Entity |
| 19 | 19 | */ |
| 20 | -class PermissionValidator extends AbstractValidator |
|
| 21 | -{ |
|
| 20 | +class PermissionValidator extends AbstractValidator { |
|
| 22 | 21 | /** |
| 23 | 22 | * Create new instance |
| 24 | 23 | * @param PermissionParam<TEntity> $param |
| 25 | 24 | * @param Lang $lang |
| 26 | 25 | */ |
| 27 | - public function __construct(protected PermissionParam $param, Lang $lang) |
|
| 28 | - { |
|
| 26 | + public function __construct(protected PermissionParam $param, Lang $lang) { |
|
| 29 | 27 | parent::__construct($lang); |
| 30 | 28 | } |
| 31 | 29 | |