@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * associated metadata for ensuring that a given data set |
55 | 55 | * is valid and returned correctly. |
56 | 56 | */ |
57 | -class Validator |
|
58 | -{ |
|
57 | +class Validator { |
|
59 | 58 | /** |
60 | 59 | * The data to validate |
61 | 60 | * @var array<string, mixed> |
@@ -110,8 +109,7 @@ discard block |
||
110 | 109 | * @param Lang $lang |
111 | 110 | * @param string $langDomain |
112 | 111 | */ |
113 | - public function __construct(Lang $lang, string $langDomain = 'validators') |
|
114 | - { |
|
112 | + public function __construct(Lang $lang, string $langDomain = 'validators') { |
|
115 | 113 | $this->lang = $lang; |
116 | 114 | $this->langDomain = $langDomain; |
117 | 115 | |
@@ -181,8 +179,7 @@ discard block |
||
181 | 179 | * @param mixed $default the default value to return if can not find field value |
182 | 180 | * @return mixed |
183 | 181 | */ |
184 | - public function getData(?string $field = null, $default = null) |
|
185 | - { |
|
182 | + public function getData(?string $field = null, $default = null) { |
|
186 | 183 | if ($field === null) { |
187 | 184 | return $this->data; |
188 | 185 | } |
@@ -49,8 +49,7 @@ |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class Integer implements RuleInterface |
|
53 | -{ |
|
52 | +class Integer implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * {@inheritdoc} |
56 | 55 | * @see RuleInterface |
@@ -49,8 +49,7 @@ |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class AlphaDash implements RuleInterface |
|
53 | -{ |
|
52 | +class AlphaDash implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * String pattern to allow |
56 | 55 | * @var string |
@@ -49,8 +49,7 @@ |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class Number implements RuleInterface |
|
53 | -{ |
|
52 | +class Number implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * {@inheritdoc} |
56 | 55 | * @see RuleInterface |
@@ -49,8 +49,7 @@ |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class Email implements RuleInterface |
|
53 | -{ |
|
52 | +class Email implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * {@inheritdoc} |
56 | 55 | * @see RuleInterface |
@@ -49,8 +49,7 @@ discard block |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class Matches implements RuleInterface |
|
53 | -{ |
|
52 | +class Matches implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * Field to compare against |
56 | 55 | * @var string |
@@ -61,8 +60,7 @@ discard block |
||
61 | 60 | * Constructor |
62 | 61 | * @param string $field the field to compare against |
63 | 62 | */ |
64 | - public function __construct(string $field) |
|
65 | - { |
|
63 | + public function __construct(string $field) { |
|
66 | 64 | $this->field = $field; |
67 | 65 | } |
68 | 66 |
@@ -49,8 +49,7 @@ |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class Alpha implements RuleInterface |
|
53 | -{ |
|
52 | +class Alpha implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * String pattern to allow |
56 | 55 | * @var string |
@@ -49,8 +49,7 @@ discard block |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class InList implements RuleInterface |
|
53 | -{ |
|
52 | +class InList implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * The list to match |
56 | 55 | * @var array<mixed> |
@@ -61,8 +60,7 @@ discard block |
||
61 | 60 | * Constructor |
62 | 61 | * @param array<mixed> $list |
63 | 62 | */ |
64 | - public function __construct(array $list) |
|
65 | - { |
|
63 | + public function __construct(array $list) { |
|
66 | 64 | $this->list = $list; |
67 | 65 | } |
68 | 66 |
@@ -49,8 +49,7 @@ |
||
49 | 49 | use Platine\Validator\RuleInterface; |
50 | 50 | use Platine\Validator\Validator; |
51 | 51 | |
52 | -class AlphaNumeric implements RuleInterface |
|
53 | -{ |
|
52 | +class AlphaNumeric implements RuleInterface { |
|
54 | 53 | /** |
55 | 54 | * String pattern to allow |
56 | 55 | * @var string |