Skip to content

Commit

Permalink
Apply Rector changes (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark authored and github-actions[bot] committed Nov 23, 2023
1 parent 2a3f987 commit 6648e19
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/Column/CheckboxColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ public function testContent(): void
->columns(
new DataColumn('id'),
new DataColumn('name'),
new CheckboxColumn(content: static function (Checkbox $input, DataContext $context): string {
return '<input name="checkbox-selection" type="checkbox" value="' . $context->getIndex() . '">';
}),
new CheckboxColumn(content: static fn(Checkbox $input, DataContext $context): string => '<input name="checkbox-selection" type="checkbox" value="' . $context->getIndex() . '">'),
)
->id('w1-grid')
->dataReader($this->createOffsetPaginator($this->data, 10))
Expand Down Expand Up @@ -115,10 +113,8 @@ public function testContentAttributes(): void
new DataColumn('id'),
new DataColumn('name'),
new CheckboxColumn(
content: static function (Checkbox $input, DataContext $context): string {
return '<input name="checkbox-selection" type="checkbox" value="'
. $context->getIndex() . '">';
},
content: static fn(Checkbox $input, DataContext $context): string => '<input name="checkbox-selection" type="checkbox" value="'
. $context->getIndex() . '">',
bodyAttributes: ['class' => 'test.class'],
),
)
Expand Down

0 comments on commit 6648e19

Please sign in to comment.