Skip to content

Commit 6da7f78

Browse files
lee-togithub-actions[bot]
authored andcommitted
Fix styling
1 parent 64c34be commit 6da7f78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Fields/Layouts.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function addLayout(
7676
$headingAdditionalFields,
7777
);
7878

79-
if($validation !== []) {
79+
if ($validation !== []) {
8080
$this->rules[$name] = $validation;
8181
}
8282

@@ -357,22 +357,22 @@ function (Field $field) use ($value, $index, &$applyValues): void {
357357
*/
358358
protected function resolveBeforeApply(mixed $data): mixed
359359
{
360-
if($this->rules !== []) {
360+
if ($this->rules !== []) {
361361
$value = $this->getRequestValue();
362362

363-
if(!is_array($value)) {
363+
if (! is_array($value)) {
364364
$value = [];
365365
}
366366

367-
$value = Collection::make($value)->mapToGroups(fn($v) => [$v['_layout'] => $v]);
367+
$value = Collection::make($value)->mapToGroups(fn ($v) => [$v['_layout'] => $v]);
368368

369369
$rules = [];
370370
$attributes = [];
371371

372372
foreach ($this->rules as $layoutName => $rule) {
373373
$layout = $this->getLayouts()->findByName($layoutName);
374374

375-
if(\is_null($layout)) {
375+
if (\is_null($layout)) {
376376
continue;
377377
}
378378

@@ -384,7 +384,7 @@ protected function resolveBeforeApply(mixed $data): mixed
384384
$attributes["$layoutName.*.$fieldName"] = "{$layout->title()}(:position) {$column}";
385385
}
386386
}
387-
387+
388388
Validator::validate($value->toArray(), $rules, attributes: $attributes);
389389
}
390390

0 commit comments

Comments
 (0)