mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Add boolean rule to README & remove unnecessary ternary
This commit is contained in:
parent
a38c9b8fce
commit
a09ac827c6
@ -109,6 +109,7 @@ V::lang('ar');
|
||||
* `accepted` - Checkbox or Radio must be accepted (yes, on, 1, true)
|
||||
* `numeric` - Must be numeric
|
||||
* `integer` - Must be integer number
|
||||
* `boolean` - Must be boolean
|
||||
* `array` - Must be array
|
||||
* `length` - String must be certain length
|
||||
* `lengthBetween` - String must be between given lengths
|
||||
|
||||
@ -653,7 +653,7 @@ class Validator
|
||||
*/
|
||||
protected function validateBoolean($field, $value)
|
||||
{
|
||||
return (is_bool($value)) ? true : false;
|
||||
return is_bool($value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user