Skip to content

Commit 9d34ea0

Browse files
committed
Minor reword
1 parent 6ddba55 commit 9d34ea0

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

reference/constraints/Email.rst

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ html5
169169
This matches the pattern used for the `HTML5 email input element`_.
170170

171171
.. include:: /reference/constraints/_normalizer-option.rst.inc
172+
172173
.. include:: /reference/constraints/_payload-option.rst.inc
173174

174175
.. _egulias/email-validator: https://packagist.org/packages/egulias/email-validator

reference/constraints/Ip.rst

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Parameter Description
9898
=============== ==============================================================
9999

100100
.. include:: /reference/constraints/_normalizer-option.rst.inc
101+
101102
.. include:: /reference/constraints/_payload-option.rst.inc
102103

103104
version

reference/constraints/Length.rst

+1
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,5 @@ Parameter Description
214214
================= ============================================================
215215

216216
.. include:: /reference/constraints/_normalizer-option.rst.inc
217+
217218
.. include:: /reference/constraints/_payload-option.rst.inc

reference/constraints/NotBlank.rst

+1-10
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ Parameter Description
111111
``{{ value }}`` The current (invalid) value
112112
=============== ==============================================================
113113

114-
normalizer
115-
~~~~~~~~~~
116-
117-
**type**: ``string`` **default**: ``null``
118-
119-
If the given value is a ``string``, this option can be used to normalize it while
120-
checking if it is valid. A ``callable`` must be passed.
121-
122-
For example, you may want to use :phpfunction:`trim` to ignore leading and
123-
trailing whitespace during validation.
114+
.. include:: /reference/constraints/_normalizer-option.rst.inc
124115

125116
.. include:: /reference/constraints/_payload-option.rst.inc

reference/constraints/Regex.rst

+1
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,5 @@ PHP function). However, if `match`_ is set to false, then validation will
289289
fail if the input string *does* match this pattern.
290290

291291
.. include:: /reference/constraints/_normalizer-option.rst.inc
292+
292293
.. include:: /reference/constraints/_payload-option.rst.inc

reference/constraints/Url.rst

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ Parameter Description
321321
}
322322
323323
.. include:: /reference/constraints/_normalizer-option.rst.inc
324+
324325
.. include:: /reference/constraints/_payload-option.rst.inc
325326

326327
protocols

reference/constraints/Uuid.rst

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Parameter Description
100100
=============== ==============================================================
101101

102102
.. include:: /reference/constraints/_normalizer-option.rst.inc
103+
103104
.. include:: /reference/constraints/_payload-option.rst.inc
104105

105106
strict
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
normalizer
22
~~~~~~~~~~
33

4-
**type**: ``string`` **default**: ``null``
4+
**type**: a `PHP callable`_ **default**: ``null``
55

6-
This option allows a ``callable`` to be passed in order to normalize the given
7-
value while checking if it is valid.
6+
This option allows to define the PHP callable applied to the given value before
7+
checking if it is valid.
88

9-
For example, you may want to use :phpfunction:`trim` to ignore leading and
10-
trailing whitespace during validation.
9+
For example, you may want to pass the ``'trim'`` string to apply the
10+
:phpfunction:`trim` PHP function in order to ignore leading and trailing
11+
whitespace during validation.
12+
13+
.. _`PHP callable`: https://www.php.net/callable

0 commit comments

Comments
 (0)