@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | use Platine\Validator\RuleInterface; |
| 50 | 50 | use Platine\Validator\Validator; |
| 51 | 51 | |
| 52 | -class DateAfter implements RuleInterface |
|
| 53 | -{ |
|
| 52 | +class DateAfter implements RuleInterface { |
|
| 54 | 53 | |
| 55 | 54 | /** |
| 56 | 55 | * The date to compare against |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Constructor |
| 63 | 62 | * @param string $date the date format |
| 64 | 63 | */ |
| 65 | - public function __construct(string $date) |
|
| 66 | - { |
|
| 64 | + public function __construct(string $date) { |
|
| 67 | 65 | $this->date = $date; |
| 68 | 66 | } |
| 69 | 67 | |
@@ -49,8 +49,7 @@ |
||
| 49 | 49 | use Platine\Validator\RuleInterface; |
| 50 | 50 | use Platine\Validator\Validator; |
| 51 | 51 | |
| 52 | -class IP implements RuleInterface |
|
| 53 | -{ |
|
| 52 | +class IP implements RuleInterface { |
|
| 54 | 53 | |
| 55 | 54 | /** |
| 56 | 55 | * {@inheritdoc} |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | use Platine\Validator\RuleInterface; |
| 50 | 50 | use Platine\Validator\Validator; |
| 51 | 51 | |
| 52 | -class MinLength implements RuleInterface |
|
| 53 | -{ |
|
| 52 | +class MinLength implements RuleInterface { |
|
| 54 | 53 | |
| 55 | 54 | /** |
| 56 | 55 | * The length |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Constructor |
| 63 | 62 | * @param int $length |
| 64 | 63 | */ |
| 65 | - public function __construct(int $length) |
|
| 66 | - { |
|
| 64 | + public function __construct(int $length) { |
|
| 67 | 65 | $this->length = $length; |
| 68 | 66 | } |
| 69 | 67 | |
@@ -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 | /** |
| 56 | 55 | * {@inheritdoc} |
@@ -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 | /** |
| 56 | 55 | * String pattern to allow |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | use Platine\Validator\RuleInterface; |
| 50 | 50 | use Platine\Validator\Validator; |
| 51 | 51 | |
| 52 | -class NotMatches implements RuleInterface |
|
| 53 | -{ |
|
| 52 | +class NotMatches implements RuleInterface { |
|
| 54 | 53 | |
| 55 | 54 | /** |
| 56 | 55 | * Field to compare against |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Constructor |
| 63 | 62 | * @param string $field the field to compare against |
| 64 | 63 | */ |
| 65 | - public function __construct(string $field) |
|
| 66 | - { |
|
| 64 | + public function __construct(string $field) { |
|
| 67 | 65 | $this->field = $field; |
| 68 | 66 | } |
| 69 | 67 | |
@@ -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 | /** |
| 56 | 55 | * {@inheritdoc} |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | use Platine\Validator\RuleInterface; |
| 50 | 50 | use Platine\Validator\Validator; |
| 51 | 51 | |
| 52 | -class Equal implements RuleInterface |
|
| 53 | -{ |
|
| 52 | +class Equal implements RuleInterface { |
|
| 54 | 53 | |
| 55 | 54 | /** |
| 56 | 55 | * Value to compare against |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Constructor |
| 63 | 62 | * @param mixed $value the value to compare against |
| 64 | 63 | */ |
| 65 | - public function __construct($value) |
|
| 66 | - { |
|
| 64 | + public function __construct($value) { |
|
| 67 | 65 | $this->value = $value; |
| 68 | 66 | } |
| 69 | 67 | |
@@ -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 | /** |
| 56 | 55 | * String pattern to allow |