@@ -22,18 +22,18 @@ discard block |
||
| 22 | 22 | class ProductValidator extends AbstractValidator |
| 23 | 23 | { |
| 24 | 24 | /** |
| 25 | - * Create new instance |
|
| 26 | - * @param ProductParam<TEntity> $param |
|
| 27 | - * @param Lang $lang |
|
| 28 | - */ |
|
| 25 | + * Create new instance |
|
| 26 | + * @param ProductParam<TEntity> $param |
|
| 27 | + * @param Lang $lang |
|
| 28 | + */ |
|
| 29 | 29 | public function __construct(protected ProductParam $param, Lang $lang) |
| 30 | 30 | { |
| 31 | 31 | parent::__construct($lang); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * {@inheritdoc} |
|
| 36 | - */ |
|
| 35 | + * {@inheritdoc} |
|
| 36 | + */ |
|
| 37 | 37 | public function setValidationData(): void |
| 38 | 38 | { |
| 39 | 39 | $this->addData('name', $this->param->getName()); |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * {@inheritdoc} |
|
| 48 | - */ |
|
| 47 | + * {@inheritdoc} |
|
| 48 | + */ |
|
| 49 | 49 | public function setValidationRules(): void |
| 50 | 50 | { |
| 51 | 51 | $this->addRules('name', [ |
@@ -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 | |
@@ -20,18 +20,18 @@ discard block |
||
| 20 | 20 | class PermissionValidator extends AbstractValidator |
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | - * Create new instance |
|
| 24 | - * @param PermissionParam<TEntity> $param |
|
| 25 | - * @param Lang $lang |
|
| 26 | - */ |
|
| 23 | + * Create new instance |
|
| 24 | + * @param PermissionParam<TEntity> $param |
|
| 25 | + * @param Lang $lang |
|
| 26 | + */ |
|
| 27 | 27 | public function __construct(protected PermissionParam $param, Lang $lang) |
| 28 | 28 | { |
| 29 | 29 | parent::__construct($lang); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * {@inheritdoc} |
|
| 34 | - */ |
|
| 33 | + * {@inheritdoc} |
|
| 34 | + */ |
|
| 35 | 35 | public function setValidationData(): void |
| 36 | 36 | { |
| 37 | 37 | $this->addData('code', $this->param->getCode()); |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * {@inheritdoc} |
|
| 43 | - */ |
|
| 42 | + * {@inheritdoc} |
|
| 43 | + */ |
|
| 44 | 44 | public function setValidationRules(): void |
| 45 | 45 | { |
| 46 | 46 | $this->addRules('code', [ |
@@ -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 | |