@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class Integer |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Integer implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Integer implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * {@inheritdoc} |
| 60 | 59 | * @see RuleInterface |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class AlphaNumeric |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class AlphaNumeric implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class AlphaNumeric implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * String pattern to allow |
| 60 | 59 | * @var string |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class AlphaDash |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class AlphaDash implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class AlphaDash implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * String pattern to allow |
| 60 | 59 | * @var string |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class Email |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Email implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Email implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * {@inheritdoc} |
| 60 | 59 | * @see RuleInterface |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class NotEmpty |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class NotEmpty implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class NotEmpty implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * {@inheritdoc} |
| 60 | 59 | * @see RuleInterface |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class Number |
| 54 | 54 | * @package Platine\Validator\Rule |
| 55 | 55 | */ |
| 56 | -class Number implements RuleInterface |
|
| 57 | -{ |
|
| 56 | +class Number implements RuleInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * {@inheritdoc} |
| 60 | 59 | * @see RuleInterface |
@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * @class Enum |
| 56 | 56 | * @package Platine\Validator\Rule |
| 57 | 57 | */ |
| 58 | -class Enum implements RuleInterface |
|
| 59 | -{ |
|
| 58 | +class Enum implements RuleInterface { |
|
| 60 | 59 | /** |
| 61 | 60 | * the list to match |
| 62 | 61 | * @var array<mixed> |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | * Constructor |
| 68 | 67 | * @param class-string<object> $enumClass the enumeration class |
| 69 | 68 | */ |
| 70 | - public function __construct(protected string $enumClass) |
|
| 71 | - { |
|
| 69 | + public function __construct(protected string $enumClass) { |
|
| 72 | 70 | $this->enumClass = $enumClass; |
| 73 | 71 | } |
| 74 | 72 | |
@@ -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 | $this->value = $value; |
| 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 | $this->value = $value; |
| 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 | $this->length = $length; |
| 65 | 63 | } |
| 66 | 64 | |