Skip to content

Commit a7bc5ca

Browse files
committed
Merge branch 'main' of github.com:backstagephp/fields
2 parents 4373b7e + 082c3ad commit a7bc5ca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Fields/Repeater.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ public function getForm(): array
115115
Forms\Components\Toggle::make('config.reorderableWithButtons')
116116
->label(__('Reorderable with buttons'))
117117
->dehydrated()
118-
->disabled(fn(Forms\Get $get): bool => $get('config.reorderable') === false)
118+
->disabled(fn (Forms\Get $get): bool => $get('config.reorderable') === false)
119119
->inline(false),
120120
]),
121121
Forms\Components\Toggle::make('config.collapsible')
122122
->label(__('Collapsible'))
123123
->inline(false),
124124
Forms\Components\Toggle::make('config.collapsed')
125125
->label(__('Collapsed'))
126-
->visible(fn(Forms\Get $get): bool => $get('config.collapsible') === true)
126+
->visible(fn (Forms\Get $get): bool => $get('config.collapsible') === true)
127127
->inline(false),
128128
Forms\Components\Toggle::make('config.cloneable')
129129
->label(__('Cloneable'))
@@ -142,9 +142,9 @@ public function getForm(): array
142142
->live(debounce: 250)
143143
->labelKey('name')
144144
->maxDepth(0)
145-
->addable(fn(string $operation) => $operation !== 'create')
146-
->disabled(fn(string $operation) => $operation === 'create')
147-
->hint(fn(string $operation) => $operation === 'create' ? __('Fields can be added once the field is created.') : '')
145+
->addable(fn (string $operation) => $operation !== 'create')
146+
->disabled(fn (string $operation) => $operation === 'create')
147+
->hint(fn (string $operation) => $operation === 'create' ? __('Fields can be added once the field is created.') : '')
148148
->hintColor('primary')
149149
->form([
150150
Section::make('Field')
@@ -159,7 +159,7 @@ public function getForm(): array
159159
->required()
160160
->placeholder(__('Name'))
161161
->live(debounce: 250)
162-
->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
162+
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state))),
163163
TextInput::make('slug')
164164
->readonly(),
165165
Select::make('field_type')
@@ -189,10 +189,10 @@ function () {
189189
])->columnSpanFull(),
190190
Section::make('Configuration')
191191
->columns(3)
192-
->schema(fn(Get $get) => $this->getFieldTypeFormSchema(
192+
->schema(fn (Get $get) => $this->getFieldTypeFormSchema(
193193
$get('field_type')
194194
))
195-
->visible(fn(Get $get) => filled($get('field_type'))),
195+
->visible(fn (Get $get) => filled($get('field_type'))),
196196
]),
197197
])->columns(2),
198198
])->columnSpanFull(),

0 commit comments

Comments
 (0)