respect-validation/library
Henrique Moody cd2390a9b0
Refactor "Domain" rule
The "Domain" rule duplicates a lot of its logic among the methods
"check()," "validate()," and "assert()." Such duplication makes it hard
to maintain and hard to understand.

Besides that:

- It triggers a PHP error when trying to validate a non-scalar value;

- It does not show the exceptions in the correct hierarchy;

- It allows to change the TLD validation after to object is created.

This commit will fix those issues and create better tests for the rule.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-05 18:57:22 +02:00
..
Exceptions Add inclusive messages to LengthException 2019-03-31 00:50:24 +01:00
Helpers Update the Coding Standards 2019-02-17 19:52:26 +01:00
Rules Refactor "Domain" rule 2019-04-05 18:57:22 +02:00
Factory.php Update the Coding Standards 2019-02-17 19:52:26 +01:00
Validatable.php Apply "SlevomatCodingStandard.TypeHints.TypeHintDeclaration" 2019-02-09 14:09:28 +01:00
Validator.php Refactor "Sorted" rule 2019-03-10 18:31:03 +01:00