@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class IP |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class IP implements RuleInterface |
|
57 | -{ |
|
56 | +class IP implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | * @see RuleInterface |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class Password |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class Password implements RuleInterface |
|
57 | -{ |
|
56 | +class Password implements RuleInterface { |
|
58 | 57 | /* |
59 | 58 | * The error type list |
60 | 59 | */ |
@@ -80,8 +79,7 @@ discard block |
||
80 | 79 | * Constructor |
81 | 80 | * @param array<string, bool|int> $rules |
82 | 81 | */ |
83 | - public function __construct(array $rules = []) |
|
84 | - { |
|
82 | + public function __construct(array $rules = []) { |
|
85 | 83 | $this->rules = array_merge([ |
86 | 84 | 'length' => 5, |
87 | 85 | 'uppercase' => false, |
@@ -53,8 +53,7 @@ discard block |
||
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 | * Value to compare against |
60 | 59 | * @var mixed |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * Constructor |
66 | 65 | * @param mixed $value the value to compare against |
67 | 66 | */ |
68 | - public function __construct(mixed $value) |
|
69 | - { |
|
67 | + public function __construct(mixed $value) { |
|
70 | 68 | $this->value = $value; |
71 | 69 | } |
72 | 70 |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | * Minimum Value to compare against |
60 | 60 | * @var string|float|int|bool|null |
61 | 61 | */ |
62 | - protected string|float|int|bool|null $min; |
|
62 | + protected string | float | int | bool | null $min; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Maximum Value to compare against |
66 | 66 | * @var string|float|int|bool|null |
67 | 67 | */ |
68 | - protected string|float|int|bool|null $max; |
|
68 | + protected string | float | int | bool | null $max; |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Constructor |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | * @param string|float|int|bool|null $max the maximum value to compare against |
74 | 74 | */ |
75 | 75 | public function __construct( |
76 | - string|float|int|bool|null $min, |
|
77 | - string|float|int|bool|null $max |
|
76 | + string | float | int | bool | null $min, |
|
77 | + string | float | int | bool | null $max |
|
78 | 78 | ) { |
79 | 79 | $this->min = $min; |
80 | 80 | $this->max = $max; |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class Range |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class Range implements RuleInterface |
|
57 | -{ |
|
56 | +class Range implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * Minimum Value to compare against |
60 | 59 | * @var string|float|int|bool|null |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class MaxLength |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class MaxLength implements RuleInterface |
|
57 | -{ |
|
56 | +class MaxLength implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * The length |
60 | 59 | * @var int |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * Constructor |
66 | 65 | * @param int $length |
67 | 66 | */ |
68 | - public function __construct(int $length) |
|
69 | - { |
|
67 | + public function __construct(int $length) { |
|
70 | 68 | $this->length = $length; |
71 | 69 | } |
72 | 70 |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class URL |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class URL implements RuleInterface |
|
57 | -{ |
|
56 | +class URL implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | * @see RuleInterface |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class Alpha |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class Alpha implements RuleInterface |
|
57 | -{ |
|
56 | +class Alpha implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * String pattern to allow |
60 | 59 | * @var string |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class IPv4 |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class IPv4 implements RuleInterface |
|
57 | -{ |
|
56 | +class IPv4 implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | * @see RuleInterface |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class IPv6 |
54 | 54 | * @package Platine\Validator\Rule |
55 | 55 | */ |
56 | -class IPv6 implements RuleInterface |
|
57 | -{ |
|
56 | +class IPv6 implements RuleInterface { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | * @see RuleInterface |