From a3d016b393493510b029fc751a62dc3e47471019 Mon Sep 17 00:00:00 2001 From: dyszczo <krzysztof.dyszczyk@gmail.com> Date: Wed, 17 Jun 2020 17:12:40 +0100 Subject: [PATCH] fixed formatting --- src/Form/FormWithFields.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Form/FormWithFields.php b/src/Form/FormWithFields.php index 4ecc9eb..61f1169 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() ); -- GitLab