@@ -403,10 +403,10 @@ discard block |
||
403 | 403 | * @return object the current instance |
404 | 404 | */ |
405 | 405 | protected function filterValidationData() { |
406 | - foreach ($this->data as $key => $value ) { |
|
406 | + foreach ($this->data as $key => $value) { |
|
407 | 407 | if (is_string($value)) { |
408 | 408 | $this->data[$key] = trim($value); |
409 | - } else if(is_array($value)) { |
|
409 | + } else if (is_array($value)) { |
|
410 | 410 | $this->data[$key] = array_map('trim', $value); |
411 | 411 | } |
412 | 412 | } |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | '{paramValue}' => $paramValue |
450 | 450 | ); |
451 | 451 | if ($field2 !== null) { |
452 | - $template['{field2}'] = $field2; |
|
452 | + $template['{field2}'] = $field2; |
|
453 | 453 | $template['{value2}'] = $this->getFieldValue($field2); |
454 | 454 | $template['{label2}'] = $this->getFieldLabel($field2); |
455 | 455 | } |
@@ -1136,7 +1136,7 @@ discard block |
||
1136 | 1136 | $rule, |
1137 | 1137 | $paramValue |
1138 | 1138 | ); |
1139 | - } else{ |
|
1139 | + } else { |
|
1140 | 1140 | $this->forceError = true; |
1141 | 1141 | show_error('The callback validation function/method "' . $paramValue . '" does not exist'); |
1142 | 1142 | } |