diff --git a/src/Fields/Field.php b/src/Fields/Field.php index c4d676c4..f792555d 100644 --- a/src/Fields/Field.php +++ b/src/Fields/Field.php @@ -110,21 +110,21 @@ public function get(string|null $parentKey = null): array if (isset($this->settings['conditional_logic'])) { $this->settings['conditional_logic'] = array_map( - fn ($rules) => $rules->get($parentKey), + fn($rules) => $rules->get($parentKey), $this->settings['conditional_logic'] ); } if (isset($this->settings['layouts'])) { $this->settings['layouts'] = array_map( - fn ($layout) => $layout->get($key), + fn($layout) => $layout->get($key), $this->settings['layouts'] ); } if (isset($this->settings['sub_fields'])) { $this->settings['sub_fields'] = array_map( - fn ($field) => $field->get($key), + fn($field) => $field->get($key), $this->settings['sub_fields'] ); } diff --git a/src/Fields/Settings/Choices.php b/src/Fields/Settings/Choices.php index d02f9a7c..5eb74956 100644 --- a/src/Fields/Settings/Choices.php +++ b/src/Fields/Settings/Choices.php @@ -23,7 +23,7 @@ trait Choices public function choices(array $choices): static { if (array_is_list($choices)) { - $choices = array_combine(array_map(fn ($key) => Key::sanitize($key), $choices), $choices); + $choices = array_combine(array_map(fn($key) => Key::sanitize($key), $choices), $choices); } $this->settings['choices'] = $choices; diff --git a/src/helpers.php b/src/helpers.php index d02b7169..20569411 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -32,9 +32,9 @@ function register_extended_field_group(array $settings): array $settings['style'] ??= 'seamless'; - $settings['fields'] = array_map(fn ($field) => $field->get($key), $settings['fields']); + $settings['fields'] = array_map(fn($field) => $field->get($key), $settings['fields']); - $settings['location'] = array_map(fn ($location) => $location->get(), $settings['location']); + $settings['location'] = array_map(fn($location) => $location->get(), $settings['location']); $settings['key'] = Key::generate($key, 'group');