Skip to content

Commit 2d160bc

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent fe758b6 commit 2d160bc

File tree

2 files changed

+48
-51
lines changed

2 files changed

+48
-51
lines changed

src/Traits/Configuration/FilterConfiguration.php

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

33
namespace Rappasoft\LaravelLivewireTables\Traits\Configuration;
44

5-
trait FilterConfiguration
6-
{
7-
}
5+
trait FilterConfiguration {}
Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
1-
<?php
2-
3-
namespace Rappasoft\LaravelLivewireTables\Traits\Core\Filters;
4-
5-
use Livewire\Attributes\Locked;
6-
7-
trait HasFiltersStatus
8-
{
9-
#[Locked]
10-
public bool $filtersStatus = true;
11-
12-
public function getFiltersStatus(): bool
13-
{
14-
return $this->filtersStatus;
15-
}
16-
17-
public function filtersAreEnabled(): bool
18-
{
19-
return $this->getFiltersStatus() === true;
20-
}
21-
22-
public function filtersAreDisabled(): bool
23-
{
24-
return $this->getFiltersStatus() === false;
25-
}
26-
27-
28-
public function setFiltersStatus(bool $status): self
29-
{
30-
$this->filtersStatus = $status;
31-
32-
return $this;
33-
}
34-
35-
public function setFiltersEnabled(): self
36-
{
37-
$this->setFiltersStatus(true);
38-
39-
return $this;
40-
}
41-
42-
public function setFiltersDisabled(): self
43-
{
44-
$this->setFiltersStatus(false);
45-
46-
return $this;
47-
}
48-
}
1+
<?php
2+
3+
namespace Rappasoft\LaravelLivewireTables\Traits\Core\Filters;
4+
5+
use Livewire\Attributes\Locked;
6+
7+
trait HasFiltersStatus
8+
{
9+
#[Locked]
10+
public bool $filtersStatus = true;
11+
12+
public function getFiltersStatus(): bool
13+
{
14+
return $this->filtersStatus;
15+
}
16+
17+
public function filtersAreEnabled(): bool
18+
{
19+
return $this->getFiltersStatus() === true;
20+
}
21+
22+
public function filtersAreDisabled(): bool
23+
{
24+
return $this->getFiltersStatus() === false;
25+
}
26+
27+
public function setFiltersStatus(bool $status): self
28+
{
29+
$this->filtersStatus = $status;
30+
31+
return $this;
32+
}
33+
34+
public function setFiltersEnabled(): self
35+
{
36+
$this->setFiltersStatus(true);
37+
38+
return $this;
39+
}
40+
41+
public function setFiltersDisabled(): self
42+
{
43+
$this->setFiltersStatus(false);
44+
45+
return $this;
46+
}
47+
}

0 commit comments

Comments
 (0)