respect-validation/docs
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
..
rules Refactor "Domain" rule 2019-04-05 18:57:22 +02:00
concrete-api.md Fix coding standard of a code in "concrete-api.md" 2019-02-10 12:37:33 +01:00
feature-guide.md Merge branch '1.1' 2019-03-31 15:40:12 +02:00
index.md Update PHP support 2018-12-02 11:09:24 +01:00
installation.md Merge branch '1.1' 2018-08-23 02:12:44 +02:00
license.md Merge branch '1.1' 2018-08-23 02:12:44 +02:00
list-of-rules.md Create "Iban" rule 2019-02-10 12:54:54 +01:00