@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @var array $rules |
| 26 | 26 | */ |
| 27 | - private $rules = []; |
|
| 27 | + private $rules = [ ]; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * ForAll constructor. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * @var Error $errors[] |
| 50 | 50 | */ |
| 51 | - $errors = []; |
|
| 51 | + $errors = [ ]; |
|
| 52 | 52 | foreach ($this->rules as $rule) { |
| 53 | 53 | |
| 54 | 54 | $result = $rule->validate($data); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @var Error $error |
| 60 | 60 | */ |
| 61 | 61 | foreach ($result->getErrors() as $error) { |
| 62 | - $errors[] = $error; |
|
| 62 | + $errors[ ] = $error; |
|
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * @var array|Rule[] $rules |
| 37 | 37 | */ |
| 38 | - private $rules = []; |
|
| 38 | + private $rules = [ ]; |
|
| 39 | 39 | /** |
| 40 | 40 | * ForAtLeast constructor. |
| 41 | 41 | * @param int $numOfRules |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * @var array|Error[] $errors |
| 62 | 62 | */ |
| 63 | - $errors = []; |
|
| 63 | + $errors = [ ]; |
|
| 64 | 64 | $passed = 0; |
| 65 | 65 | |
| 66 | 66 | foreach ($this->rules as $rule) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @var Error $error |
| 73 | 73 | */ |
| 74 | 74 | foreach ($result->getErrors() as $error) { |
| 75 | - $errors[] = $error; |
|
| 75 | + $errors[ ] = $error; |
|
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | else { |