diff --git a/README.md b/README.md index 97bbac1..e1fc785 100644 --- a/README.md +++ b/README.md @@ -59,18 +59,18 @@ $validator->validate(); // bool depends on $_POST content ``` ### Available rules ### -1. [All Rulles](https://github.com/elie29/validator/blob/master/src/Rule/AbstractRule.php) accepts required and trim options. required is false by default, trim is true by default. +1. [All Rulles](https://github.com/elie29/validator/blob/master/src/Rule/AbstractRule.php) accept `required` and `trim` options. `required` is false by default while `trim` is true by default. 1. [BicRule](https://github.com/elie29/validator/blob/master/src/Rule/BicRule.php) 1. [BooleanRule](https://github.com/elie29/validator/blob/master/src/Rule/BooleanRule.php) -1. [CompareRule](https://github.com/elie29/validator/blob/master/src/Rule/CompareRule.php) accepts sign and expected options. sign is [equal](https://github.com/elie29/validator/blob/master/src/Rule/RuleInterface.php) by default, expectd is null by default. -1. [DateRule](https://github.com/elie29/validator/blob/master/src/Rule/DateRule.php) accepts format and separator options. +1. [CompareRule](https://github.com/elie29/validator/blob/master/src/Rule/CompareRule.php) accepts `sign` and `expected` options. `sign` is [equal](https://github.com/elie29/validator/blob/master/src/Rule/RuleInterface.php) by default, `expected` is null by default. +1. [DateRule](https://github.com/elie29/validator/blob/master/src/Rule/DateRule.php) accepts `format` and `separator` options. 1. [EmailRule](https://github.com/elie29/validator/blob/master/src/Rule/EmailRule.php) -1. [IpRule](https://github.com/elie29/validator/blob/master/src/Rule/IpRule.php) accepts flag option. +1. [IpRule](https://github.com/elie29/validator/blob/master/src/Rule/IpRule.php) accepts `flag` option. 1. [JsonRule](https://github.com/elie29/validator/blob/master/src/Rule/JsonRule.php) -1. [MatchRule](https://github.com/elie29/validator/blob/master/src/Rule/MatchRule.php) requires pattern option. -1. [NumericRule](https://github.com/elie29/validator/blob/master/src/Rule/NumericRule.php) accepts min and max options. -1. [RangeRule](https://github.com/elie29/validator/blob/master/src/Rule/RangeRule.php) accepts range option. -1. [StringRule](https://github.com/elie29/validator/blob/master/src/Rule/StringRule.php) accepts min and max options. +1. [MatchRule](https://github.com/elie29/validator/blob/master/src/Rule/MatchRule.php) requires `pattern` option. +1. [NumericRule](https://github.com/elie29/validator/blob/master/src/Rule/NumericRule.php) accepts `min` and `max` options. +1. [RangeRule](https://github.com/elie29/validator/blob/master/src/Rule/RangeRule.php) accepts `range` option. +1. [StringRule](https://github.com/elie29/validator/blob/master/src/Rule/StringRule.php) accepts `min` and `max` options. 1. [TimeRule](https://github.com/elie29/validator/blob/master/src/Rule/TimeRule.php) 1. [Your own rule](#how-to-add-a-new-rule)