@@ -204,9 +204,15 @@ |
||
| 204 | 204 | ): object |
| 205 | 205 | { |
| 206 | 206 | $inside_array = $this->getInsideArray($typeValue); |
| 207 | - if ($isRequired) array_unshift($inside_array, new Assert\NotBlank()); |
|
| 208 | - if ($length) array_push($inside_array, new Assert\Length($length)); |
|
| 209 | - if ($args) array_push($inside_array, $args); |
|
| 207 | + if ($isRequired) { |
|
| 208 | + array_unshift($inside_array, new Assert\NotBlank()); |
|
| 209 | + } |
|
| 210 | + if ($length) { |
|
| 211 | + array_push($inside_array, new Assert\Length($length)); |
|
| 212 | + } |
|
| 213 | + if ($args) { |
|
| 214 | + array_push($inside_array, $args); |
|
| 215 | + } |
|
| 210 | 216 | |
| 211 | 217 | return $isRequired |
| 212 | 218 | ? new Assert\Required($inside_array) |
@@ -413,10 +413,10 @@ |
||
| 413 | 413 | $this->threeDS2AuthorizationInformation = $threeDS2AuthorizationInformation; |
| 414 | 414 | } |
| 415 | 415 | |
| 416 | - /** |
|
| 417 | - * Gets the value of statementDescriptorSuffix. |
|
| 418 | - * @return mixed |
|
| 419 | - */ |
|
| 416 | + /** |
|
| 417 | + * Gets the value of statementDescriptorSuffix. |
|
| 418 | + * @return mixed |
|
| 419 | + */ |
|
| 420 | 420 | public function getStatementDescriptorSuffix() |
| 421 | 421 | { |
| 422 | 422 | return $this->statementDescriptorSuffix; |