Merge pull request #178 from mprince/boolean

Add boolean rule to README & remove unnecessary ternary
This commit is contained in:
Willem Wollebrants 2017-01-25 09:11:44 +01:00 committed by GitHub
commit 37408859b8
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -653,7 +653,7 @@ class Validator
*/
protected function validateBoolean($field, $value)
{
return (is_bool($value)) ? true : false;
return is_bool($value);
}
/**