Code Duplication    Length = 3-3 lines in 2 locations

classes/helpers/FrmFieldsHelper.php 2 locations

@@ 1056-1058 (lines=3) @@
1053
		if ( $parent && isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ] ) ) {
1054
			if ( FrmField::is_field_with_multiple_values( $field ) ) {
1055
				$other_val = isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ][ $opt_key ] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ][ $opt_key ] ) ) : '';
1056
			} else {
1057
				$other_val = sanitize_text_field( wp_unslash( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ] ) );
1058
			}
1059
1060
			return $other_val;
1061
@@ 1067-1069 (lines=3) @@
1064
1065
			if ( FrmField::is_field_with_multiple_values( $field ) ) {
1066
				$other_val = isset( $_POST['item_meta']['other'][ $field['id'] ][ $opt_key ] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta']['other'][ $field['id'] ][ $opt_key ] ) ) : '';
1067
			} else {
1068
				$other_val = sanitize_text_field( wp_unslash( $_POST['item_meta']['other'][ $field['id'] ] ) );
1069
			}
1070
1071
			return $other_val;
1072
		}