Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 18, 2023
1 parent 4d25637 commit 98b6fa9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Data/Form/FormLayoutColumnData.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function from(array $column): self
'fields' => collect($column['fields'])->map(fn (array $row) => collect($row)->map(fn (array $field) => isset($field['legend'])
? FormLayoutFieldsetData::from($field)
: LayoutFieldData::from($field)
)
)
)->toArray(),
];

Expand Down
2 changes: 1 addition & 1 deletion src/Data/Form/FormLayoutFieldsetData.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function from(array $fieldset): self
$fieldset = [
...$fieldset,
'fields' => collect($fieldset['fields'])->map(fn (array $row) => collect($row)->map(fn (array $field) => LayoutFieldData::from($field)
)
)
)->toArray(),
];

Expand Down
2 changes: 1 addition & 1 deletion src/Data/LayoutFieldData.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function from(array $field): self
...$field,
'item' => isset($field['item'])
? collect($field['item'])->map(fn (array $row) => collect($row)->map(fn (array $itemField) => LayoutFieldData::from($itemField)
)
)
)->toArray()
: null,
];
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Show/ShowLayoutColumnData.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function from(array $column): self
$column = [
...$column,
'fields' => collect($column['fields'])->map(fn (array $row) => collect($row)->map(fn (array $field) => LayoutFieldData::from($field)
)
)
)->toArray(),
];

Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/Form/Eloquent/SharpFormEloquentUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public function buildFormFields(FieldsContainer $formFields): void
$formFields->addField(SharpFormTextField::make('name'));
}


public function update($id, array $data)
{
return $this->save(new Person(), $data);
Expand Down Expand Up @@ -111,7 +110,6 @@ public function update($id, array $data)
]);
});


it('allows to manually ignore a field', function () {
$person = Person::create(['name' => 'Niels Bohr', 'age' => 21]);

Expand Down

0 comments on commit 98b6fa9

Please sign in to comment.