| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public static function prepare_fields(array $input) |
||
| 21 | { |
||
| 22 | |||
| 23 | $args = []; |
||
| 24 | |||
| 25 | if ( ! empty( $input['name'] ) ) { |
||
| 26 | $args['TKT_name'] = sanitize_text_field( $input['name'] ); |
||
| 27 | } |
||
| 28 | |||
| 29 | if ( ! empty( $input['description'] ) ) { |
||
| 30 | $args['TKT_description'] = sanitize_text_field( $input['description'] ); |
||
| 31 | } |
||
| 32 | |||
| 33 | // Likewise the other fields... |
||
| 34 | |||
| 35 | return $args; |
||
| 36 | } |
||
| 37 | |||
| 39 |