From 3f3ef733bf0aaf1a3ba0f6c88eff26a636307ff5 Mon Sep 17 00:00:00 2001 From: duncanmcclean Date: Tue, 12 Nov 2024 15:47:07 +0000 Subject: [PATCH] Fix styling --- src/Support/FieldUpdater.php | 2 ++ src/Transformers/BardTransformer.php | 3 +-- src/WordPress/Gutenberg.php | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Support/FieldUpdater.php b/src/Support/FieldUpdater.php index cea5afa..de72c79 100644 --- a/src/Support/FieldUpdater.php +++ b/src/Support/FieldUpdater.php @@ -31,11 +31,13 @@ public function updateFieldConfig(array $config): void { if ($prefix = $this->field->prefix()) { $this->updatePrefixedField($prefix, $config); + return; } if ($importedField = $this->getImportedField()) { $this->updateImportedField($importedField, $config); + return; } diff --git a/src/Transformers/BardTransformer.php b/src/Transformers/BardTransformer.php index 5ef790d..f17a8b8 100644 --- a/src/Transformers/BardTransformer.php +++ b/src/Transformers/BardTransformer.php @@ -2,11 +2,10 @@ namespace Statamic\Importer\Transformers; +use Facades\Statamic\Importer\Support\FieldUpdater; use Statamic\Facades\AssetContainer; -use Statamic\Facades\Fieldset; use Statamic\Fields\Field; use Statamic\Fieldtypes\Bard\Augmentor as BardAugmentor; -use Facades\Statamic\Importer\Support\FieldUpdater; use Statamic\Importer\WordPress\Gutenberg; use Statamic\Support\Str; diff --git a/src/WordPress/Gutenberg.php b/src/WordPress/Gutenberg.php index 322791a..d047072 100644 --- a/src/WordPress/Gutenberg.php +++ b/src/WordPress/Gutenberg.php @@ -4,9 +4,7 @@ use Facades\Statamic\Importer\Support\FieldUpdater; use Statamic\Facades\AssetContainer; -use Statamic\Facades\Blink; use Statamic\Facades\Blueprint as BlueprintFacade; -use Statamic\Facades\Fieldset; use Statamic\Fields\Blueprint; use Statamic\Fields\Field; use Statamic\Fieldtypes\Bard\Augmentor as BardAugmentor;