@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | string $method, |
39 | 39 | array $args = [], |
40 | 40 | ?string $message = null |
41 | - ) { |
|
41 | + ){ |
|
42 | 42 | $this->checker = $checker; |
43 | 43 | $this->method = $method; |
44 | 44 | $this->args = $args; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function getMessage(string $field, $value): string |
68 | 68 | { |
69 | - if (!empty($this->message)) { |
|
69 | + if (!empty($this->message)){ |
|
70 | 70 | return Translator::interpolate( |
71 | 71 | $this->message, |
72 | 72 | array_merge([$value, $field], $this->args) |
@@ -66,7 +66,8 @@ |
||
66 | 66 | */ |
67 | 67 | public function getMessage(string $field, $value): string |
68 | 68 | { |
69 | - if (!empty($this->message)) { |
|
69 | + if (!empty($this->message)) |
|
70 | + { |
|
70 | 71 | return Translator::interpolate( |
71 | 72 | $this->message, |
72 | 73 | array_merge([$value, $field], $this->args) |
@@ -27,8 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option){ |
|
31 | + if (empty($validator->getValue($option))){ |
|
32 | 32 | return true; |
33 | 33 | } |
34 | 34 | } |
@@ -27,8 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option) |
|
31 | + { |
|
32 | + if (empty($validator->getValue($option))) |
|
33 | + { |
|
32 | 34 | return true; |
33 | 35 | } |
34 | 36 | } |
@@ -32,8 +32,8 @@ |
||
32 | 32 | */ |
33 | 33 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
34 | 34 | { |
35 | - foreach ($this->compositor->makeConditions($field, $this->options) as $condition) { |
|
36 | - if ($condition->isMet($validator, $field, $value)) { |
|
35 | + foreach ($this->compositor->makeConditions($field, $this->options) as $condition){ |
|
36 | + if ($condition->isMet($validator, $field, $value)){ |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | } |
@@ -32,8 +32,10 @@ |
||
32 | 32 | */ |
33 | 33 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
34 | 34 | { |
35 | - foreach ($this->compositor->makeConditions($field, $this->options) as $condition) { |
|
36 | - if ($condition->isMet($validator, $field, $value)) { |
|
35 | + foreach ($this->compositor->makeConditions($field, $this->options) as $condition) |
|
36 | + { |
|
37 | + if ($condition->isMet($validator, $field, $value)) |
|
38 | + { |
|
37 | 39 | return false; |
38 | 40 | } |
39 | 41 | } |
@@ -27,8 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (!empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option){ |
|
31 | + if (!empty($validator->getValue($option))){ |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | } |
@@ -27,8 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (!empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option) |
|
31 | + { |
|
32 | + if (!empty($validator->getValue($option))) |
|
33 | + { |
|
32 | 34 | return false; |
33 | 35 | } |
34 | 36 | } |
@@ -27,8 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option){ |
|
31 | + if (empty($validator->getValue($option))){ |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | } |
@@ -27,8 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option) |
|
31 | + { |
|
32 | + if (empty($validator->getValue($option))) |
|
33 | + { |
|
32 | 34 | return false; |
33 | 35 | } |
34 | 36 | } |
@@ -27,8 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (!$validator->hasValue($option)) { |
|
30 | + foreach ($this->options as $option){ |
|
31 | + if (!$validator->hasValue($option)){ |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | } |
@@ -27,8 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (!$validator->hasValue($option)) { |
|
30 | + foreach ($this->options as $option) |
|
31 | + { |
|
32 | + if (!$validator->hasValue($option)) |
|
33 | + { |
|
32 | 34 | return false; |
33 | 35 | } |
34 | 36 | } |
@@ -32,12 +32,12 @@ |
||
32 | 32 | */ |
33 | 33 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
34 | 34 | { |
35 | - if (empty($this->options)) { |
|
35 | + if (empty($this->options)){ |
|
36 | 36 | return true; |
37 | 37 | } |
38 | 38 | |
39 | - foreach ($this->compositor->makeConditions($field, $this->options) as $condition) { |
|
40 | - if ($condition->isMet($validator, $field, $value)) { |
|
39 | + foreach ($this->compositor->makeConditions($field, $this->options) as $condition){ |
|
40 | + if ($condition->isMet($validator, $field, $value)){ |
|
41 | 41 | return true; |
42 | 42 | } |
43 | 43 | } |
@@ -32,12 +32,15 @@ |
||
32 | 32 | */ |
33 | 33 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
34 | 34 | { |
35 | - if (empty($this->options)) { |
|
35 | + if (empty($this->options)) |
|
36 | + { |
|
36 | 37 | return true; |
37 | 38 | } |
38 | 39 | |
39 | - foreach ($this->compositor->makeConditions($field, $this->options) as $condition) { |
|
40 | - if ($condition->isMet($validator, $field, $value)) { |
|
40 | + foreach ($this->compositor->makeConditions($field, $this->options) as $condition) |
|
41 | + { |
|
42 | + if ($condition->isMet($validator, $field, $value)) |
|
43 | + { |
|
41 | 44 | return true; |
42 | 45 | } |
43 | 46 | } |
@@ -27,8 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (!empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option){ |
|
31 | + if (!empty($validator->getValue($option))){ |
|
32 | 32 | return true; |
33 | 33 | } |
34 | 34 | } |
@@ -27,8 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if (!empty($validator->getValue($option))) { |
|
30 | + foreach ($this->options as $option) |
|
31 | + { |
|
32 | + if (!empty($validator->getValue($option))) |
|
33 | + { |
|
32 | 34 | return true; |
33 | 35 | } |
34 | 36 | } |
@@ -27,8 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if ($validator->hasValue($option)) { |
|
30 | + foreach ($this->options as $option){ |
|
31 | + if ($validator->hasValue($option)){ |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | } |
@@ -27,8 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function isMet(ValidatorInterface $validator, string $field, $value): bool |
29 | 29 | { |
30 | - foreach ($this->options as $option) { |
|
31 | - if ($validator->hasValue($option)) { |
|
30 | + foreach ($this->options as $option) |
|
31 | + { |
|
32 | + if ($validator->hasValue($option)) |
|
33 | + { |
|
32 | 34 | return false; |
33 | 35 | } |
34 | 36 | } |