Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit da6c111

Browse files
Apply suggestions from code review
Co-Authored-By: Matthew Weier O'Phinney <[email protected]>
1 parent 45ec999 commit da6c111

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/book/validator.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ $validator->isValid('myIdentity', [
3737

3838
## Validation messages
3939

40-
Authentication validator defines five failure message types. Identifiers
40+
The authentication validator defines five failure message types; identifiers
4141
for them are available as constants for convenience.
4242
Common authentication failure codes, defined as constants in
4343
`Zend\Authentication\Result`, are mapped to validation messages
44-
using map in `CODE_MAP` constant. Other authentication codes default to
44+
using a map in `CODE_MAP` constant. Other authentication codes default to the
4545
`general` message type.
4646

4747
```php
@@ -66,21 +66,21 @@ class Authentication
6666
}
6767
```
6868

69-
Authentication validator extends `Zend\Validator\AbstractValidator` and provides
70-
common for all framework validators way to access, change or translate message templates.
71-
More information is available in
69+
The authentication validator extends `Zend\Validator\AbstractValidator`, providing
70+
a way common for all framework validators to access, change or translate message templates.
71+
More information is available in the
7272
[zend-validator documentation](https://docs.zendframework.com/zend-validator/messages/)
7373

7474
## Configure validation messages for custom authentication result codes
7575

76-
The constructor configuration option `code_map` allows to map custom codes
76+
The constructor configuration option `code_map` allows mapping custom codes
7777
from `Zend\Authentication\Result` to validation message identifiers.
7878
`code_map` is an array of integer code => string message identifier pairs
7979

8080
A new custom message identifier can be specified in `code_map` which will then
81-
be registered as a new message type with template value set to `general` message.
82-
Once registered, message template for the new identifier can be changed
83-
as described in [zend-validator documentation](https://docs.zendframework.com/zend-validator/messages/)
81+
be registered as a new message type with the template value set to the `general` message.
82+
Once registered, the message template for the new identifier can be changed
83+
as described in the [zend-validator documentation](https://docs.zendframework.com/zend-validator/messages/).
8484

8585
```php
8686
use Zend\Authentication\Validator\Authentication as AuthenticationValidator;

0 commit comments

Comments
 (0)