Skip to content

Commit d5367fb

Browse files
committed
Fix classnames
1 parent dc8ba7a commit d5367fb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Concerns/HasConfigurableFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ trait HasConfigurableFields
88
{
99
private function initializeConfig(string $fieldType): array
1010
{
11-
$className = 'Vormkracht10\\FilamentFields\\Fields\\' . Str::studly($fieldType);
11+
$className = 'Vormkracht10\\Fields\\Fields\\' . Str::studly($fieldType);
1212

1313
if (! class_exists($className)) {
1414
return [];

src/Concerns/HasFieldTypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function getFieldTypeFormSchema(?string $fieldType): array
3232
protected static function resolveFieldTypeClassName(string $fieldType): ?string
3333
{
3434
if (Field::tryFrom($fieldType)) {
35-
return sprintf('Vormkracht10\\FilamentFields\\Fields\\%s', Str::studly($fieldType));
35+
return sprintf('Vormkracht10\\Fields\\Fields\\%s', Str::studly($fieldType));
3636
}
3737

3838
return Fields::getFields()[$fieldType] ?? null;

src/Filament/RelationManagers/FieldsRelationManager.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function form(Form $form): Form
4242
->required()
4343
->placeholder(__('Name'))
4444
->live(debounce: 250)
45-
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state))),
45+
->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
4646

4747
TextInput::make('slug')
4848
->readonly(),
@@ -74,10 +74,10 @@ function () {
7474
]),
7575
Section::make('Configuration')
7676
->columns(3)
77-
->schema(fn (Get $get) => $this->getFieldTypeFormSchema(
77+
->schema(fn(Get $get) => $this->getFieldTypeFormSchema(
7878
$get('field_type')
7979
))
80-
->visible(fn (Get $get) => filled($get('field_type'))),
80+
->visible(fn(Get $get) => filled($get('field_type'))),
8181
]),
8282
]);
8383
}
@@ -95,7 +95,7 @@ private function formatCustomFields(array $fields): array
9595

9696
private function initializeDefaultConfig(string $fieldType): array
9797
{
98-
$className = 'Vormkracht10\\FilamentFields\\Fields\\' . Str::studly($fieldType);
98+
$className = 'Vormkracht10\\Fields\\Fields\\' . Str::studly($fieldType);
9999

100100
if (! class_exists($className)) {
101101
return [];
@@ -161,7 +161,7 @@ public function table(Table $table): Table
161161
'model_key' => $this->ownerRecord->slug,
162162
];
163163
})
164-
->mutateFormDataUsing(fn (array $data, Model $record): array => $this->transferValuesOnSlugChange($data, $record))
164+
->mutateFormDataUsing(fn(array $data, Model $record): array => $this->transferValuesOnSlugChange($data, $record))
165165
->after(function (Component $livewire) {
166166
$livewire->dispatch('refreshFields');
167167
}),

0 commit comments

Comments
 (0)