@@ -425,10 +425,10 @@ discard block |
||
425 | 425 | * @return object the current instance |
426 | 426 | */ |
427 | 427 | protected function filterValidationData() { |
428 | - foreach ($this->data as $key => $value ) { |
|
428 | + foreach ($this->data as $key => $value) { |
|
429 | 429 | if (is_string($value)) { |
430 | 430 | $this->data[$key] = trim($value); |
431 | - } else if(is_array($value)) { |
|
431 | + } else if (is_array($value)) { |
|
432 | 432 | $this->data[$key] = array_map('trim', $value); |
433 | 433 | } |
434 | 434 | } |
@@ -1037,7 +1037,7 @@ discard block |
||
1037 | 1037 | if (call_user_func_array($paramValue, array($value)) === false) { |
1038 | 1038 | $this->setFieldErrorWithRequiredCheck($field, $value, $rule, $paramValue); |
1039 | 1039 | } |
1040 | - } else{ |
|
1040 | + } else { |
|
1041 | 1041 | $this->forceError = true; |
1042 | 1042 | show_error('The callback validation function/method "' . $paramValue . '" does not exist'); |
1043 | 1043 | } |