Skip to content

Commit 8bc411f

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent a334bdd commit 8bc411f

File tree

7 files changed

+11
-17
lines changed

7 files changed

+11
-17
lines changed

src/LaravelLivewireTablesServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Rappasoft\LaravelLivewireTables;
44

55
use Illuminate\Foundation\Console\AboutCommand;
6-
use Illuminate\Support\ServiceProvider;
76
use Illuminate\Support\Facades\Blade;
7+
use Illuminate\Support\ServiceProvider;
88
use Livewire\ComponentHookRegistry;
99
use Rappasoft\LaravelLivewireTables\Commands\MakeCommand;
1010
use Rappasoft\LaravelLivewireTables\Features\AutoInjectRappasoftAssets;
@@ -45,7 +45,7 @@ public function boot(): void
4545
$this->loadViewsFrom(__DIR__.'/../resources/views', 'livewire-tables');
4646

4747
$this->consoleCommands();
48-
48+
4949
if (config('livewire-tables.inject_core_assets_enabled') || config('livewire-tables.inject_third_party_assets_enabled') || config('livewire-tables.enable_blade_directives')) {
5050
(new RappasoftFrontendAssets)->boot();
5151
}
@@ -82,15 +82,15 @@ public function consoleCommands(): void
8282
]);
8383
}
8484
}
85-
85+
8686
public function addBladeLoopDirective(): void
8787
{
8888
Blade::directive('tableloop', function ($expression) {
8989
return "<?php foreach ($expression): ?>";
9090
});
91-
91+
9292
Blade::directive('endtableloop', function ($expression) {
93-
return "<?php endforeach; ?>";
93+
return '<?php endforeach; ?>';
9494
});
9595

9696
}

src/Traits/Configuration/CollapsingColumnConfiguration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ public function unsetCollapsedStatuses(): void
3131
unset($this->shouldMobileCollapse);
3232
unset($this->shouldTabletCollapse);
3333
}
34-
3534
}

src/Traits/Configuration/ColumnConfiguration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ public function setAppendedColumns(array $appendedColumns): void
1515
$this->appendedColumns = collect($appendedColumns);
1616
$this->hasRunColumnSetup = false;
1717
}
18-
1918
}

src/Traits/Helpers/CollapsingColumnHelpers.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public function collapsingColumnsAreDisabled(): bool
3434
#[Computed]
3535
public function showCollapsingColumnSections(): bool
3636
{
37-
return ($this->collapsingColumnsAreEnabled() && $this->hasCollapsedColumns());
37+
return $this->collapsingColumnsAreEnabled() && $this->hasCollapsedColumns();
3838
}
3939

4040
#[Computed]
4141
public function hasCollapsedColumns(): bool
4242
{
43-
return ($this->hasCollapsingColumns() && ($this->shouldCollapseOnMobile() || $this->shouldCollapseOnTablet() || $this->shouldCollapseAlways()));
43+
return $this->hasCollapsingColumns() && ($this->shouldCollapseOnMobile() || $this->shouldCollapseOnTablet() || $this->shouldCollapseAlways());
4444
}
4545

4646
#[Computed]
@@ -150,10 +150,9 @@ public function getCollapsedColumnsForContent(): Collection
150150
{
151151
$colspan = $this->getColspanCount();
152152
$columns = $this->getColumns()
153-
->reject(fn (Column $column) => ($column->isHidden() || ($column->isSelectable() && ! $this->columnSelectIsEnabledForColumn($column))))
154-
->reject(fn (Column $column) => $column->shouldNeverCollapse());
153+
->reject(fn (Column $column) => ($column->isHidden() || ($column->isSelectable() && ! $this->columnSelectIsEnabledForColumn($column))))
154+
->reject(fn (Column $column) => $column->shouldNeverCollapse());
155155

156156
return $columns;
157157
}
158-
159158
}

src/Traits/Helpers/ColumnHelpers.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ public function getColumnCount(): int
125125
return $this->getColumns()->count();
126126
}
127127

128-
129128
public function getPrependedColumns(): Collection
130129
{
131130
return $this->prependedColumns ?? collect($this->prependColumns());

src/Traits/WithCollapsingColumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Rappasoft\LaravelLivewireTables\Traits\Configuration\CollapsingColumnConfiguration;
66
use Rappasoft\LaravelLivewireTables\Traits\Helpers\CollapsingColumnHelpers;
77
use Rappasoft\LaravelLivewireTables\Traits\Styling\Columns\HasCollapsingColumnsStyling;
8+
89
trait WithCollapsingColumns
910
{
1011
use CollapsingColumnConfiguration,
@@ -18,5 +19,4 @@ trait WithCollapsingColumns
1819
protected ?bool $shouldMobileCollapse;
1920

2021
protected ?bool $shouldTabletCollapse;
21-
2222
}

src/Views/Traits/Columns/IsCollapsible.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ trait IsCollapsible
1212

1313
protected bool $collapseSometimes = false;
1414

15-
1615
public function collapseOnMobile(): self
1716
{
1817
$this->collapseOnMobile = true;
@@ -67,7 +66,6 @@ public function shouldNeverCollapse(): bool
6766

6867
public function shouldCollapseNever(): bool
6968
{
70-
return (($this->shouldCollapseOnMobile() === false) && ($this->shouldCollapseOnTablet() === false) && ($this->shouldCollapseAlways() === false));
69+
return ($this->shouldCollapseOnMobile() === false) && ($this->shouldCollapseOnTablet() === false) && ($this->shouldCollapseAlways() === false);
7170
}
72-
7371
}

0 commit comments

Comments
 (0)