| @@ -9,17 +9,14 @@ | ||
| 9 | 9 | class FrmFieldDefault extends FrmFieldType { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @var bool |
| 13 | - * | |
| 14 | 13 | * @since 3.0 |
| 15 | 14 | */ |
| 16 | 15 | protected $holds_email_values = true; |
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | - * @param string $type | |
| 20 | - * | |
| 21 | - * @return void | |
| 18 | + * @param $type string | |
| 22 | 19 | */ |
| 23 | 20 | protected function set_type( $type ) { |
| 24 | 21 | if ( empty( $type ) ) { |
| 25 | 22 | $type = 'text'; |
| @@ -26,13 +23,8 @@ | ||
| 26 | 23 | } |
| 27 | 24 | parent::set_type( $type ); |
| 28 | 25 | } |
| 29 | 26 | |
| 30 | - /** | |
| 31 | - * @param string $name | |
| 32 | - * | |
| 33 | - * @return void | |
| 34 | - */ | |
| 35 | 27 | public function show_on_form_builder( $name = '' ) { |
| 36 | 28 | $field = FrmFieldsHelper::setup_edit_vars( $this->field ); |
| 37 | 29 | |
| 38 | 30 | ob_start(); |
| @@ -47,14 +39,8 @@ | ||
| 47 | 39 | echo $input_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 48 | 40 | } |
| 49 | 41 | } |
| 50 | 42 | |
| 51 | - /** | |
| 52 | - * @param array $args | |
| 53 | - * @param array $shortcode_atts | |
| 54 | - * | |
| 55 | - * @return string | |
| 56 | - */ | |
| 57 | 43 | public function front_field_input( $args, $shortcode_atts ) { |
| 58 | 44 | $pass_args = array( |
| 59 | 45 | 'errors' => $args['errors'], |
| 60 | 46 | 'html_id' => $args['html_id'], |
| @@ -64,7 +50,7 @@ | ||
| 64 | 50 | do_action( 'frm_form_field_' . $this->type, $this->field, $args['field_name'], $pass_args ); |
| 65 | 51 | $input_html = ob_get_contents(); |
| 66 | 52 | ob_end_clean(); |
| 67 | 53 | |
| 68 | - return is_string( $input_html ) ? $input_html : ''; | |
| 54 | + return $input_html; | |
| 69 | 55 | } |
| 70 | 56 | } |