@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class Equal |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Equal implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Equal implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param mixed $value the value to compare against |
| 61 | 60 | */ |
| 62 | - public function __construct(protected mixed $value) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected mixed $value) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class Date |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Date implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Date implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param string $format the date format to validate |
| 61 | 60 | */ |
| 62 | - public function __construct(protected string $format = 'Y-m-d') |
|
| 63 | - { |
|
| 61 | + public function __construct(protected string $format = 'Y-m-d') { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class NotEqual |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class NotEqual implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class NotEqual implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param mixed $value the value to compare against |
| 61 | 60 | */ |
| 62 | - public function __construct(protected mixed $value) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected mixed $value) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class Matches |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Matches implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Matches implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param string $field the field to compare against |
| 61 | 60 | */ |
| 62 | - public function __construct(protected string $field) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected string $field) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class InList |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class InList implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class InList implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param array<mixed> $list The list to match |
| 61 | 60 | */ |
| 62 | - public function __construct(protected array $list) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected array $list) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * Constructor |
| 60 | 60 | * @param string|float|int|bool|null $value the value to compare against |
| 61 | 61 | */ |
| 62 | - public function __construct(protected string|float|int|bool|null $value) |
|
| 62 | + public function __construct(protected string | float | int | bool | null $value) |
|
| 63 | 63 | { |
| 64 | 64 | } |
| 65 | 65 | |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class Min |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Min implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Min implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param string|float|int|bool|null $value the value to compare against |
| 61 | 60 | */ |
| 62 | - public function __construct(protected string|float|int|bool|null $value) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected string|float|int|bool|null $value) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class DateAfter |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class DateAfter implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class DateAfter implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param string $date the date format to compare against |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class MinLength |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class MinLength implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class MinLength implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param int $length |
| 61 | 60 | */ |
| 62 | - public function __construct(protected int $length) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected int $length) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class ExactLength |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class ExactLength implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class ExactLength implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param int $length |
| 61 | 60 | */ |
| 62 | - public function __construct(protected int $length) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected int $length) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | /** |