Skip to content

Commit

Permalink
Add headings to the templates
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquemoody committed Dec 9, 2024
1 parent d5cf131 commit bba39a4
Show file tree
Hide file tree
Showing 149 changed files with 179 additions and 179 deletions.
4 changes: 2 additions & 2 deletions docs/rules/AllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ v::allOf(v::intVal(), v::positive())->isValid(15); // true

## Templates

`AllOf::TEMPLATE_SOME`
### `AllOf::TEMPLATE_SOME`

| Mode | Template |
|------------|----------------------------------------|
| `default` | These rules must pass for {{name}} |
| `inverted` | These rules must not pass for {{name}} |

`AllOf::TEMPLATE_NONE`
### `AllOf::TEMPLATE_NONE`

| Mode | Template |
|------------|--------------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/Alnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ of extra chars passed as the parameter.

## Templates

`Alnum::TEMPLATE_STANDARD`
### `Alnum::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-----------------------------------------------------------|
| `default` | {{name}} must contain only letters (a-z) and digits (0-9) |
| `inverted` | {{name}} must not contain letters (a-z) or digits (0-9) |

`Alnum::TEMPLATE_EXTRA`
### `Alnum::TEMPLATE_EXTRA`

| Mode | Template |
|------------|---------------------------------------------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/Alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ v::alpha()->uppercase()->isValid('example'); // false

## Templates

`Alpha::TEMPLATE_STANDARD`
### `Alpha::TEMPLATE_STANDARD`

| Mode | Template |
|------------|------------------------------------------|
| `default` | {{name}} must contain only letters (a-z) |
| `inverted` | {{name}} must not contain letters (a-z) |

`Alpha::TEMPLATE_EXTRA`
### `Alpha::TEMPLATE_EXTRA`

| Mode | Template |
|------------|------------------------------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/AlwaysInvalid.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ v::alwaysInvalid()->isValid('whatever'); // false

## Templates

`AlwaysInvalid::TEMPLATE_STANDARD`
### `AlwaysInvalid::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------|
| `default` | {{name}} must be valid |
| `inverted` | {{name}} must be invalid |

`AlwaysInvalid::TEMPLATE_SIMPLE`
### `AlwaysInvalid::TEMPLATE_SIMPLE`

| Mode | Template |
|------------|---------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/AlwaysValid.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ v::alwaysValid()->isValid('whatever'); // true

## Templates

`AlwaysValid::TEMPLATE_STANDARD`
### `AlwaysValid::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/AnyOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ so `AnyOf()` returns true.

## Templates

`AnyOf::TEMPLATE_STANDARD`
### `AnyOf::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/ArrayType.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ v::arrayType()->isValid(new ArrayObject()); // false

## Templates

`ArrayType::TEMPLATE_STANDARD`
### `ArrayType::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/ArrayVal.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ v::arrayVal()->isValid(new SimpleXMLElement('<xml></xml>')); // true

## Templates

`ArrayVal::TEMPLATE_STANDARD`
### `ArrayVal::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Base.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ v::base(2)->isValid('0120122001'); // false

## Templates

`Base::TEMPLATE_STANDARD`
### `Base::TEMPLATE_STANDARD`

| Mode | Template |
|------------|---------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Base64.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ v::base64()->isValid('respect!'); // false

## Templates

`Base64::TEMPLATE_STANDARD`
### `Base64::TEMPLATE_STANDARD`

| Mode | Template |
|------------|----------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Between.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Message template for this validator includes `{{minValue}}` and `{{maxValue}}`.

## Templates

`Between::TEMPLATE_STANDARD`
### `Between::TEMPLATE_STANDARD`

| Mode | Template |
|------------|------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/BetweenExclusive.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Validation makes comparison easier, check out our supported [comparable values](

## Templates

`BetweenExclusive::TEMPLATE_STANDARD`
### `BetweenExclusive::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/BoolType.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ v::boolType()->isValid(false); // true

## Templates

`BoolType::TEMPLATE_STANDARD`
### `BoolType::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/BoolVal.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ v::boolVal()->isValid(0); // true

## Templates

`BoolVal::TEMPLATE_STANDARD`
### `BoolVal::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Bsn.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ v::bsn()->isValid('612890053'); // true

## Templates

`Bsn::TEMPLATE_STANDARD`
### `Bsn::TEMPLATE_STANDARD`

| Mode | Template |
|------------|----------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Call.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ v::call(

## Templates

`Call::TEMPLATE_STANDARD`
### `Call::TEMPLATE_STANDARD`

| Mode | Template |
|------------|------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/CallableType.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ v::callableType()->isValid([new DateTime(), 'format']); // true

## Templates

`CallableType::TEMPLATE_STANDARD`
### `CallableType::TEMPLATE_STANDARD`

| Mode | Template |
|------------|---------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ v::callback(

## Templates

`Callback::TEMPLATE_STANDARD`
### `Callback::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Charset.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The array format is a logic OR, not AND.

## Templates

`Charset::TEMPLATE_STANDARD`
### `Charset::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Cnh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ v::cnh()->isValid('02650306461'); // true

## Templates

`Cnh::TEMPLATE_STANDARD`
### `Cnh::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-----------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Cnpj.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Ignores non-digit chars, so use `->digit()` if needed.

## Templates

`Cnpj::TEMPLATE_STANDARD`
### `Cnpj::TEMPLATE_STANDARD`

| Mode | Template |
|------------|------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/Consonant.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ v::consonant()->isValid('xkcd'); // true

## Templates

`Consonant::TEMPLATE_STANDARD`
### `Consonant::TEMPLATE_STANDARD`

| Mode | Template |
|------------|---------------------------------------|
| `default` | {{name}} must only contain consonants |
| `inverted` | {{name}} must not contain consonants |

`Consonant::TEMPLATE_EXTRA`
### `Consonant::TEMPLATE_EXTRA`

| Mode | Template |
|------------|---------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Contains.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Message template for this validator includes `{{containsValue}}`.

## Templates

`Contains::TEMPLATE_STANDARD`
### `Contains::TEMPLATE_STANDARD`

| Mode | Template |
|------------|---------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/ContainsAny.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Message template for this validator includes `{{needles}}`.

## Templates

`ContainsAny::TEMPLATE_STANDARD`
### `ContainsAny::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-----------------------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/Control.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ v::control()->isValid("\n\r\t"); // true

## Templates

`Control::TEMPLATE_STANDARD`
### `Control::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-----------------------------------------------|
| `default` | {{name}} must only contain control characters |
| `inverted` | {{name}} must not contain control characters |

`Control::TEMPLATE_EXTRA`
### `Control::TEMPLATE_EXTRA`

| Mode | Template |
|------------|-----------------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Countable.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ v::countable()->isValid('string'); // false

## Templates

`Countable::TEMPLATE_STANDARD`
### `Countable::TEMPLATE_STANDARD`

| Mode | Template |
|------------|----------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/CountryCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ When no set is defined, the rule uses `'alpha-2'` (`CountryCode::ALPHA2`).

## Templates

`CountryCode::TEMPLATE_STANDARD`
### `CountryCode::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Cpf.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ v::digit()->cpf()->isValid('11598647644'); // true

## Templates

`Cpf::TEMPLATE_STANDARD`
### `Cpf::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-----------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/CreditCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ v::digit()->creditCard()->isValid('5376747397208720'); // true

## Templates

`CreditCard::TEMPLATE_STANDARD`
### `CreditCard::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-------------------------------------------------|
| `default` | {{name}} must be a valid credit card number |
| `inverted` | {{name}} must not be a valid credit card number |

`CreditCard::TEMPLATE_BRANDED`
### `CreditCard::TEMPLATE_BRANDED`

| Mode | Template |
|------------|--------------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/CurrencyCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This rule supports the two [ISO 4217][] sets:

## Templates

`CurrencyCode::TEMPLATE_STANDARD`
### `CurrencyCode::TEMPLATE_STANDARD`

| Mode | Template |
|------------|--------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Date.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ v::date('Ydm')->isValid(20173112); // true

## Templates

`Date::TEMPLATE_STANDARD`
### `Date::TEMPLATE_STANDARD`

| Mode | Template |
|------------|------------------------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/DateTime.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ v::dateTime(DateTime::RFC3339_EXTENDED)->isValid($input); // false

## Templates

`DateTime::TEMPLATE_STANDARD`
### `DateTime::TEMPLATE_STANDARD`

| Mode | Template |
|------------|----------------------------------------|
| `default` | {{name}} must be a valid date/time |
| `inverted` | {{name}} must not be a valid date/time |

`DateTime::TEMPLATE_FORMAT`
### `DateTime::TEMPLATE_FORMAT`

| Mode | Template |
|------------|-----------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Decimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ v::decimal(1)->isValid(1.50); // true

## Templates

`Decimal::TEMPLATE_STANDARD`
### `Decimal::TEMPLATE_STANDARD`

| Mode | Template |
|------------|----------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/Digit.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ v::digit('.', '-')->isValid('172.655.537-21'); // true

## Templates

`Digit::TEMPLATE_STANDARD`
### `Digit::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-----------------------------------------|
| `default` | {{name}} must contain only digits (0-9) |
| `inverted` | {{name}} must not contain digits (0-9) |

`Digit::TEMPLATE_EXTRA`
### `Digit::TEMPLATE_EXTRA`

| Mode | Template |
|------------|-----------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ v::directory()->isValid(dir('/'));

## Templates

`Directory::TEMPLATE_STANDARD`
### `Directory::TEMPLATE_STANDARD`

| Mode | Template |
|------------|----------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/Domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Messages for this validator will reflect rules above.

## Templates

`Domain::TEMPLATE_STANDARD`
### `Domain::TEMPLATE_STANDARD`

| Mode | Template |
|------------|-------------------------------------|
Expand Down
Loading

0 comments on commit bba39a4

Please sign in to comment.