mirror of
https://github.com/Respect/Validation.git
synced 2024-06-11 02:02:16 +02:00
Fix coding standard of code in the "Feature guide"
This commit is contained in:
parent
a009286ba6
commit
120d924d8d
|
@ -41,7 +41,7 @@ $user->birthdate = '1987-07-01';
|
|||
Is possible to validate its attributes in a single chain:
|
||||
|
||||
```php
|
||||
$userValidator = v::attribute('name', v::stringType()->length(1,32))
|
||||
$userValidator = v::attribute('name', v::stringType()->length(1, 32))
|
||||
->attribute('birthdate', v::date()->age(18));
|
||||
|
||||
$userValidator->validate($user); // true
|
||||
|
|
Loading…
Reference in a new issue