From 899727d8697c667a60104490376d7b92c65a85aa Mon Sep 17 00:00:00 2001 From: Elie NEHME Date: Thu, 21 Feb 2019 09:03:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)