Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d34ea0

Browse files
committed
Minor reword
1 parent6ddba55 commit9d34ea0

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

‎reference/constraints/Email.rst‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 10 deletions
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‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 1 addition & 0 deletions
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
Lines changed: 8 additions & 5 deletions
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 allowsa ``callable``tobe passedin ordertonormalizethe given
7-
valuewhilecheckingif it is valid.
6+
This option allows todefine the PHP callable appliedto the given value before
7+
checkingif it is valid.
88

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp