Skip to content

Commit 0c38c7b

Browse files
committed
docs: fix linting errors
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
1 parent abdb129 commit 0c38c7b

File tree

14 files changed

+34
-23
lines changed

14 files changed

+34
-23
lines changed

docs/book/validators/barcode.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ your own barcode validator, you need the following information.
311311

312312
- `Length`: The length your barcode must have. It can have one of the following
313313
values:
314-
- `Integer`: A value greater 0, which means that the barcode must have this
315-
length.
316-
- `-1`: There is no limitation for the length of this barcode.
317-
- `"even"`: The length of this barcode must have a even amount of digits.
318-
- `"odd"`: The length of this barcode must have a odd amount of digits.
319-
- `array`: An array of integer values. The length of this barcode must have
320-
one of the set array values.
314+
- `Integer`: A value greater 0, which means that the barcode must have this
315+
length.
316+
- `-1`: There is no limitation for the length of this barcode.
317+
- `"even"`: The length of this barcode must have a even amount of digits.
318+
- `"odd"`: The length of this barcode must have a odd amount of digits.
319+
- `array`: An array of integer values. The length of this barcode must have
320+
one of the set array values.
321321
- `Characters`: A string which contains all allowed characters for this barcode.
322322
Also the integer value 128 is allowed, which means the first 128 characters of
323323
the ASCII table.

docs/book/validators/between.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
`Laminas\Validator\Between` allows you to validate if a given value is between two
44
other values.
55

6+
<!-- markdownlint-disable-next-line MD001 -->
67
> ### Only supports number validation
78
>
89
> `Laminas\Validator\Between` supports only the validation of numbers. Strings or

docs/book/validators/credit-card.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The following issuing institutes are accepted:
3535
- Visa Electron
3636
- Russia Mir
3737

38+
<!-- markdownlint-disable-next-line MD001 -->
3839
> ### Invalid institutes
3940
>
4041
> The institutes **Bankcard** and **Diners Club enRoute** no longer exist, and

docs/book/validators/csrf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The typical mitigation is to create a one-time token that is transmitted as part
99
This token expires after first submission or after a short amount of time, preventing replays or further submissions.
1010
If the token provided does not match what was originally sent, an error should be returned.
1111

12+
<!-- markdownlint-disable-next-line MD001 -->
1213
> ### Installation Requirements
1314
>
1415
> The CSRF validator depends on [laminas-math](https://docs.laminas.dev/laminas-math/) to generate the hash and on [laminas-session](https://docs.laminas.dev/laminas-session/) to persist the generated token between requests.

docs/book/validators/db.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
a means to test whether a record exists in a given table of a database, with a
55
given value.
66

7+
<!-- markdownlint-disable-next-line MD001 -->
78
> ### Installation requirements
89
>
910
> `Laminas\Validator\Db\NoRecordExists` and `Laminas\Validator\Db\RecordExists`

docs/book/validators/digits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
`Laminas\Validator\Digits` validates if a given value contains only digits.
44

5+
<!-- markdownlint-disable-next-line MD001 -->
56
> ### Installation requirements
67
>
78
> `Laminas\Validator\Digits` depends on the laminas-filter component, so be sure to

docs/book/validators/email-address.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ using `setOptions()`. The following options are supported:
3434
in conjunction with the hostnameValidator option to set the hostname validator.
3535
Possible values of this option defined in [Hostname](hostname.md) validator's
3636
`ALLOW_*` constants:
37-
- `ALLOW_DNS` (default) - Allows Internet domain names _(e.g. example.com)_
38-
- `ALLOW_IP` - Allows IP addresses _(e.g. 192.168.0.1)_
39-
- `ALLOW_LOCAL` - Allows local network such as _localhost_ or _www.localdomain_
40-
- `ALLOW_URI` - Allows hostnames in URI generic syntax. See [RFC 3986](https://www.ietf.org/rfc/rfc3986.txt)
41-
- `ALLOW_ALL` - Allows all types of hostnames
37+
- `ALLOW_DNS` (default) - Allows Internet domain names _(e.g. example.com)_
38+
- `ALLOW_IP` - Allows IP addresses _(e.g. 192.168.0.1)_
39+
- `ALLOW_LOCAL` - Allows local network such as _localhost_ or _www.localdomain_
40+
- `ALLOW_URI` - Allows hostnames in URI generic syntax. See [RFC 3986](https://www.ietf.org/rfc/rfc3986.txt)
41+
- `ALLOW_ALL` - Allows all types of hostnames
4242

4343
- `useDeepMxCheck`: Defines if the servers MX records should be verified by a deep check.
4444
When this option is set to `true` then additionally to MX records also the `A`,
@@ -54,7 +54,6 @@ using `setOptions()`. The following options are supported:
5454
option is defined to `true` then the MX records are used to verify if the
5555
server accepts emails. This option defaults to `false`.
5656

57-
5857
## Complex local parts
5958

6059
`Laminas\Validator\EmailAddress` will match any valid email address according to

docs/book/validators/greater-than.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
`Laminas\Validator\GreaterThan` allows you to validate if a given value is greater
44
than a minimum border value.
55

6+
<!-- markdownlint-disable-next-line MD001 -->
67
> ### Only supports numbers
78
>
89
> `Laminas\Validator\GreaterThan` supports only the validation of numbers. Strings

docs/book/validators/hex.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if ($validator->isValid('123ABC')) {
1414
}
1515
```
1616

17+
<!-- markdownlint-disable-next-line MD001 -->
1718
> ### Invalid characters
1819
>
1920
> All other characters will return false, including whitespace and decimal

docs/book/validators/in-array.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ The following options are supported for `Laminas\Validator\InArray`:
1313
- `strict`: Three modes of comparison are offered owing to an often overlooked,
1414
and potentially dangerous security issue when validating string input from
1515
user input.
16-
- `InArray::COMPARE_STRICT`: This is a normal `in_array()` strict comparison
17-
that checks value and type.
18-
- `InArray::COMPARE_NOT_STRICT`: This is a normal `in_array()` non-strict
19-
comparison that checks value only, but not type.
20-
- `InArray::COMPARE_NOT_STRICT_AND_PREVENT_STR_TO_INT_VULNERABILTY`: This
21-
operates in essentially the same way as `InArray::COMPARE_NOT_STRICT`,
22-
but ensures that strings are not cast to integer during comparison,
23-
preventing `0 == 'foo43'` types of false positives.
16+
- `InArray::COMPARE_STRICT`: This is a normal `in_array()` strict comparison
17+
that checks value and type.
18+
- `InArray::COMPARE_NOT_STRICT`: This is a normal `in_array()` non-strict
19+
comparison that checks value only, but not type.
20+
- `InArray::COMPARE_NOT_STRICT_AND_PREVENT_STR_TO_INT_VULNERABILTY`: This
21+
operates in essentially the same way as `InArray::COMPARE_NOT_STRICT`,
22+
but ensures that strings are not cast to integer during comparison,
23+
preventing `0 == 'foo43'` types of false positives.
2424

2525
> ### Use non-strict carefully
2626
>

0 commit comments

Comments
 (0)