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

Commit 0deeb27

Browse files
committed
Merge branch 'hotfix/124'
Close #124
2 parents ebc4236 + 126fe17 commit 0deeb27

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/book/validators/file/crc32.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The following options are supported:
2424
$validator = new \Zend\Validator\File\Crc32('3b3652f');
2525

2626
// Or, check file against multiple hashes
27-
$validator = new \Zend\Validator\File\Crc32(array('3b3652f', 'e612b69'));
27+
$validator = new \Zend\Validator\File\Crc32(['3b3652f', 'e612b69']);
2828

2929
// Perform validation with file path
3030
if ($validator->isValid('./myfile.txt')) {

doc/book/validators/identical.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $form->add([
6868
$form->add([
6969
'name' => 'elementTwo',
7070
'type' => 'Password',
71-
'validators' => array(
71+
'validators' => [
7272
[
7373
'name' => 'Identical',
7474
'options' => [
@@ -136,7 +136,7 @@ $inputFilter = new InputFilter();
136136
$inputFilter->add([
137137
'name' => 'confirmEmail', // references (5)
138138
'validators' => [
139-
array(
139+
[
140140
'name' => 'Identical',
141141
'options' => [
142142
// 'user' key references 'user' fieldset (1), and 'email'
@@ -162,7 +162,7 @@ $inputFilter->add([
162162
// 'deeperFieldsetInput' element (4)
163163
'deeperFieldset' => 'deeperFieldsetInput',
164164
],
165-
],
165+
],
166166
],
167167
],
168168
],

doc/book/validators/in-array.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Basic usage is to provide an array during instantiation:
3535

3636
```php
3737
$validator = new Zend\Validator\InArray([
38-
'haystack' => ['value1', 'value2',...'valueN']
38+
'haystack' => ['value1', 'value2',...'valueN'],
3939
]);
4040

4141
if ($validator->isValid('value')) {
@@ -83,7 +83,7 @@ It's possible to set the strict mode at initialisation and afterwards with the
8383
```php
8484
// defaults to InArray::COMPARE_NOT_STRICT_AND_PREVENT_STR_TO_INT_VULNERABILITY
8585
$validator = new Zend\Validator\InArray([
86-
'haystack' => array('value1', 'value2', /* ... */ 'valueN'),
86+
'haystack' => ['value1', 'value2', /* ... */ 'valueN'],
8787
]);
8888

8989
// set strict mode
@@ -118,7 +118,7 @@ To validate multidimensional arrays you have to set the `recursive` option.
118118

119119
```php
120120
$validator = new Zend\Validator\InArray([
121-
'haystack' => array(
121+
'haystack' => [
122122
'firstDimension' => ['value1', 'value2', / ... */ 'valueN'],
123123
'secondDimension' => ['foo1', 'foo2', /* ... */ 'fooN'],
124124
],

0 commit comments

Comments
 (0)