Skip to content

Commit 95a3c54

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent e19517e commit 95a3c54

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

src/DataTableComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function booted(): void {}
2727

2828
public function render(): \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
2929
{
30-
//dd($this->getCollapsedColumnsForContentNew());
30+
// dd($this->getCollapsedColumnsForContentNew());
3131
/*
3232
[
3333
"shouldCollapseAlways" => false

src/Traits/Helpers/CollapsingColumnHelpers.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ public function getCollapsedColumnsForContentNew(): array
161161
{
162162
$extras = [];
163163

164-
foreach($this->getCollapsedColumnsForContent() as $index => $col)
165-
{
164+
foreach ($this->getCollapsedColumnsForContent() as $index => $col) {
166165
$extras[$index] = [
167166
'shouldCollapseAlways' => $col->shouldCollapseAlways(),
168167
'shouldCollapseOnTablet' => $col->shouldCollapseOnTablet(),
@@ -175,5 +174,4 @@ public function getCollapsedColumnsForContentNew(): array
175174

176175
return $extras;
177176
}
178-
179177
}

src/Traits/Helpers/FooterHelpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Helpers;
44

5-
use Rappasoft\LaravelLivewireTables\Views\Column;
65
use Livewire\Attributes\Computed;
6+
use Rappasoft\LaravelLivewireTables\Views\Column;
77

88
trait FooterHelpers
99
{
1010
#[Computed]
1111
public function shouldShowFooter(): bool
1212
{
13-
return ($this->footerIsEnabled() && $this->hasColumnsWithFooter());
13+
return $this->footerIsEnabled() && $this->hasColumnsWithFooter();
1414
}
1515

1616
public function hasColumnsWithFooter(): bool
@@ -37,7 +37,7 @@ public function getUseHeaderAsFooterStatus(): bool
3737
{
3838
return $this->useHeaderAsFooterStatus;
3939
}
40-
40+
4141
#[Computed]
4242
public function useHeaderAsFooterIsEnabled(): bool
4343
{

src/Traits/Helpers/SecondaryHeaderHelpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?php
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Helpers;
4+
45
use Livewire\Attributes\Computed;
56

67
trait SecondaryHeaderHelpers
78
{
89
#[Computed]
910
public function shouldShowSecondaryHeader(): bool
1011
{
11-
return ($this->secondaryHeaderIsEnabled() && $this->hasColumnsWithSecondaryHeader());
12+
return $this->secondaryHeaderIsEnabled() && $this->hasColumnsWithSecondaryHeader();
1213
}
1314

1415
public function hasColumnsWithSecondaryHeader(): bool

src/Traits/Helpers/TableAttributeHelpers.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,34 @@ public function getCoreTableAttributes(): array
2020
];
2121
}
2222

23-
2423
#[Computed]
2524
public function getComponentWrapperAttributes(): array
2625
{
2726
return count($this->componentWrapperAttributes) ? $this->componentWrapperAttributes : ['id' => 'datatable-'.$this->getId()];
2827
}
29-
28+
3029
#[Computed]
3130
public function getTableWrapperAttributes(): array
3231
{
33-
return array_merge(['wire:key' => $this->getTableName() . '-twrap'], (count($this->tableWrapperAttributes) ? $this->tableWrapperAttributes : ['default' => true]));
32+
return array_merge(['wire:key' => $this->getTableName().'-twrap'], (count($this->tableWrapperAttributes) ? $this->tableWrapperAttributes : ['default' => true]));
3433
}
3534

3635
#[Computed]
3736
public function getTableAttributes(): array
3837
{
39-
return array_merge(['wire:key' => $this->getTableName() . '-table', 'id' => 'table-'.$this->getTableName()], (count($this->tableAttributes) ? $this->tableAttributes : ['default' => true]));
38+
return array_merge(['wire:key' => $this->getTableName().'-table', 'id' => 'table-'.$this->getTableName()], (count($this->tableAttributes) ? $this->tableAttributes : ['default' => true]));
4039
}
4140

4241
#[Computed]
4342
public function getTheadAttributes(): array
4443
{
45-
return array_merge(['wire:key' => $this->getTableName() . '-thead'], (count($this->theadAttributes) ? $this->theadAttributes : ['default' => true]));
44+
return array_merge(['wire:key' => $this->getTableName().'-thead'], (count($this->theadAttributes) ? $this->theadAttributes : ['default' => true]));
4645
}
4746

4847
#[Computed]
4948
public function getTbodyAttributes(): array
5049
{
51-
return array_merge(['wire:key' => $this->getTableName() . '-tbody', 'id' => $this->getTableName()."-tbody"], (count($this->tbodyAttributes) ? $this->tbodyAttributes : ['default' => true]));
50+
return array_merge(['wire:key' => $this->getTableName().'-tbody', 'id' => $this->getTableName().'-tbody'], (count($this->tbodyAttributes) ? $this->tbodyAttributes : ['default' => true]));
5251
}
5352

5453
/**

0 commit comments

Comments
 (0)