@@ -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 |