Skip to content

Commit 9c493b2

Browse files
rappasoftactions-user
authored andcommitted
Fix styling
1 parent 7c50187 commit 9c493b2

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/Traits/WithBulkActions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public function resetBulk(): void
6868
*/
6969
public function selectedRowsQuery()
7070
{
71-
return $this->query()->when($this->selectAll,
71+
return $this->query()->when(
72+
$this->selectAll,
7273
fn ($query) => $this->applySearchFilter($query),
7374
fn ($query) => $query->whereIn($query->qualifyColumn($this->primaryKey), $this->selected)
7475
);

tests/DataTableComponentTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ public function bulk_actions_defined_through_function()
162162
$this->assertEquals(1, $this->table->count());
163163
}
164164

165-
/** @test */
166-
public function bulk_actions_defined_through_with_select_all_function()
167-
{
168-
$this->assertArrayHasKey('count', $this->table->bulkActions);
165+
/** @test */
166+
public function bulk_actions_defined_through_with_select_all_function()
167+
{
168+
$this->assertArrayHasKey('count', $this->table->bulkActions);
169169

170-
$this->table->resetFilters();
171-
$this->table->filters['search'] = 'Chico';
172-
$this->assertEquals(1, $this->table->getRowsProperty()->total());
173-
$this->table->selectAll();
174-
$this->assertEquals(1, $this->table->count());
175-
}
170+
$this->table->resetFilters();
171+
$this->table->filters['search'] = 'Chico';
172+
$this->assertEquals(1, $this->table->getRowsProperty()->total());
173+
$this->table->selectAll();
174+
$this->assertEquals(1, $this->table->count());
175+
}
176176
}

0 commit comments

Comments
 (0)