diff --git a/src/Form/FormWithFields.php b/src/Form/FormWithFields.php index 4ecc9eb869a6b15a002805384f56bc25e014c1bb..61f1169b6fe8322d2854239493374de3b393869d 100644 --- a/src/Form/FormWithFields.php +++ b/src/Form/FormWithFields.php @@ -172,7 +172,9 @@ class FormWithFields implements Form, ContainerForm, FieldProvider { foreach ( $this->get_fields() as $field ) { $data_key = $field->get_name(); - if( empty($data_key) ) continue; + if ( empty( $data_key ) ) { + continue; + } if ( ! isset( $this->updated_data[ $data_key ] ) ) { $container->set( $data_key, $field->get_default_value() );