| @@ -67,9 +67,9 @@ | ||
| 67 | 67 | $errors = array(); |
| 68 | 68 | |
| 69 | 69 | $this->remove_commas_from_number( $args ); |
| 70 | 70 | |
| 71 | - //validate the number format | |
| 71 | + // Validate the number format. | |
| 72 | 72 | if ( ! is_numeric( $args['value'] ) && '' !== $args['value'] ) { |
| 73 | 73 | $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' ); |
| 74 | 74 | } |
| 75 | 75 | |
| @@ -105,9 +105,10 @@ | ||
| 105 | 105 | * @return void |
| 106 | 106 | */ |
| 107 | 107 | private function validate_step( &$errors, $args ) { |
| 108 | 108 | if ( isset( $errors[ 'field' . $args['id'] ] ) ) { |
| 109 | - return; // Don't need to check if value is invalid before. | |
| 109 | + // Don't need to check if value is invalid before. | |
| 110 | + return; | |
| 110 | 111 | } |
| 111 | 112 | |
| 112 | 113 | $step = FrmField::get_option( $this->field, 'step' ); |
| 113 | 114 | if ( ! $step || ! is_numeric( $step ) ) { |