@@ -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 | $this->value = $value; |
| 65 | 63 | } |
| 66 | 64 | |
@@ -53,15 +53,13 @@ |
||
| 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 |
| 61 | 60 | * @param bool $include whether the given date is included or not |
| 62 | 61 | */ |
| 63 | - public function __construct(protected string $date, protected bool $include = false) |
|
| 64 | - { |
|
| 62 | + public function __construct(protected string $date, protected bool $include = false) { |
|
| 65 | 63 | $this->date = $date; |
| 66 | 64 | $this->include = $include; |
| 67 | 65 | } |
@@ -53,15 +53,13 @@ |
||
| 53 | 53 | * @class DateBefore |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class DateBefore implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class DateBefore implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Constructor |
| 60 | 59 | * @param string $date the date format to compare against |
| 61 | 60 | * @param bool $include whether the given date is included or not |
| 62 | 61 | */ |
| 63 | - public function __construct(protected string $date, protected bool $include = false) |
|
| 64 | - { |
|
| 62 | + public function __construct(protected string $date, protected bool $include = false) { |
|
| 65 | 63 | $this->date = $date; |
| 66 | 64 | $this->include = $include; |
| 67 | 65 | } |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * associated metadata for ensuring that a given data set |
| 57 | 57 | * is valid and returned correctly. |
| 58 | 58 | */ |
| 59 | -class Validator |
|
| 60 | -{ |
|
| 59 | +class Validator { |
|
| 61 | 60 | /** |
| 62 | 61 | * The data to validate |
| 63 | 62 | * @var array<string, mixed> |