diff --git a/src/FilamentFieldGroup.php b/src/FilamentFieldGroup.php index 6f924a4..cb39d0b 100644 --- a/src/FilamentFieldGroup.php +++ b/src/FilamentFieldGroup.php @@ -204,13 +204,14 @@ public function getFieldTypeConfig($name, array | string $data = []) //region Helper methods protected function replaceModelClass(string $interfaceClass, string $modelClass): void { - switch ($interfaceClass) - { + switch ($interfaceClass) { case \SolutionForest\FilamentFieldGroup\Models\Contracts\FieldGroup::class: $this->setFieldGroupModelClass($modelClass); + break; case \SolutionForest\FilamentFieldGroup\Models\Contracts\Field::class: $this->setFieldModelClass($modelClass); + break; } } diff --git a/src/Models/Contracts/Field.php b/src/Models/Contracts/Field.php index 7a5ace3..aed6a1e 100644 --- a/src/Models/Contracts/Field.php +++ b/src/Models/Contracts/Field.php @@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; use Spatie\EloquentSortable\Sortable; -interface Field extends Sortable +interface Field extends Sortable { public function group(): BelongsTo; } diff --git a/src/Models/Contracts/FieldGroup.php b/src/Models/Contracts/FieldGroup.php index f6dd8e9..02d1954 100644 --- a/src/Models/Contracts/FieldGroup.php +++ b/src/Models/Contracts/FieldGroup.php @@ -5,10 +5,10 @@ use Illuminate\Database\Eloquent\Relations\HasMany; use Spatie\EloquentSortable\Sortable; -interface FieldGroup extends Sortable +interface FieldGroup extends Sortable { public function fields(): HasMany; - + /** * @return \Filament\Forms\Components\Component */