Skip to content

Commit e81b923

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 2942dcd commit e81b923

File tree

7 files changed

+8
-15
lines changed

7 files changed

+8
-15
lines changed

tests/Http/Livewire/BaseTable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
abstract class BaseTable extends DataTableComponent
88
{
9-
109
public string $paginationTest = 'standard';
1110

1211
public function enableDetailedPagination(string $type = 'standard')
@@ -44,10 +43,10 @@ public function bootAll()
4443
$this->mountWithSorting();
4544
$this->renderAll($view);
4645
}
46+
4747
public function renderAll($view = null)
4848
{
49-
if (is_null($view))
50-
{
49+
if (is_null($view)) {
5150
$view = view('livewire-tables::datatable');
5251
}
5352
$this->renderingWithColumns($view, $view->getData());
@@ -57,6 +56,7 @@ public function renderAll($view = null)
5756
$this->renderingWithReordering($view, $view->getData());
5857
$this->renderingWithPagination($view, $view->getData());
5958
$this->render();
59+
6060
return $view;
6161
}
62-
}
62+
}

tests/Http/Livewire/FailingTables/BrokenSecondaryHeaderTable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44

55
use Illuminate\Database\Eloquent\Builder;
66
use Rappasoft\LaravelLivewireTables\DataTableComponent;
7+
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\BaseTable;
78
use Rappasoft\LaravelLivewireTables\Tests\Models\{Breed,Pet,Species};
89
use Rappasoft\LaravelLivewireTables\Views\Column;
910
use Rappasoft\LaravelLivewireTables\Views\Columns\{ImageColumn,LinkColumn};
1011
use Rappasoft\LaravelLivewireTables\Views\Filters\{DateFilter,DateTimeFilter,MultiSelectDropdownFilter,MultiSelectFilter,NumberFilter,SelectFilter,TextFilter};
11-
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\BaseTable;
1212

1313
class BrokenSecondaryHeaderTable extends BaseTable
1414
{
1515
public $model = Pet::class;
1616

17-
1817
public function configure(): void
1918
{
2019
$this->setPrimaryKey('id');

tests/Http/Livewire/FailingTables/NoBuildMethodTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Database\Eloquent\Builder;
66
use Rappasoft\LaravelLivewireTables\DataTableComponent;
7+
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\BaseTable;
78
use Rappasoft\LaravelLivewireTables\Tests\Models\Breed;
89
use Rappasoft\LaravelLivewireTables\Tests\Models\Species;
910
use Rappasoft\LaravelLivewireTables\Views\Column;
@@ -16,7 +17,6 @@
1617
use Rappasoft\LaravelLivewireTables\Views\Filters\NumberFilter;
1718
use Rappasoft\LaravelLivewireTables\Views\Filters\SelectFilter;
1819
use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter;
19-
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\BaseTable;
2020

2121
class NoBuildMethodTable extends BaseTable
2222
{

tests/Http/Livewire/FailingTables/NoColumnsTable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\FailingTables;
44

5-
use Rappasoft\LaravelLivewireTables\Tests\Models\Pet;
65
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\PetsTable;
6+
use Rappasoft\LaravelLivewireTables\Tests\Models\Pet;
77

88
class NoColumnsTable extends PetsTable
99
{
@@ -14,5 +14,4 @@ public function columns(): array
1414
return [
1515
];
1616
}
17-
1817
}

tests/Http/Livewire/FailingTables/NoPrimaryKeyTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Database\Eloquent\Builder;
66
use Rappasoft\LaravelLivewireTables\DataTableComponent;
7+
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\BaseTable;
78
use Rappasoft\LaravelLivewireTables\Tests\Models\Breed;
89
use Rappasoft\LaravelLivewireTables\Tests\Models\Pet;
910
use Rappasoft\LaravelLivewireTables\Tests\Models\Species;
@@ -17,7 +18,6 @@
1718
use Rappasoft\LaravelLivewireTables\Views\Filters\NumberFilter;
1819
use Rappasoft\LaravelLivewireTables\Views\Filters\SelectFilter;
1920
use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter;
20-
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\BaseTable;
2121

2222
class NoPrimaryKeyTable extends BaseTable
2323
{

tests/Http/Livewire/PetsTable.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function changeLocale(string $locale)
2828
App::setLocale($locale);
2929
}
3030

31-
3231
public function configure(): void
3332
{
3433
$this->setPrimaryKey('id');
@@ -152,6 +151,4 @@ public function filters(): array
152151
->setFilterPillBlade('livewire-tables::tests.testFilterPills'),
153152
];
154153
}
155-
156-
157154
}

tests/Http/Livewire/PetsTableWithOwner.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
class PetsTableWithOwner extends PetsTable
2424
{
25-
26-
2725
public function columns(): array
2826
{
2927
return [

0 commit comments

Comments
 (0)