Skip to content

Commit 898ce70

Browse files
rappasoftgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6b3255a commit 898ce70

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

src/Traits/Helpers/FilterHelpers.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function hasFilters(): bool
6262
public function hasVisibleFilters(): bool
6363
{
6464
return $this->getFilters()
65-
->reject(fn(Filter $filter) => $filter->isHiddenFromMenus())
65+
->reject(fn (Filter $filter) => $filter->isHiddenFromMenus())
6666
->count();
6767
}
6868

@@ -128,24 +128,24 @@ public function hasAppliedFiltersWithValues(): bool
128128
public function hasAppliedVisibleFiltersWithValuesThatCanBeCleared(): bool
129129
{
130130
return collect($this->getAppliedFiltersWithValues())
131-
->map(fn($_item, $key) => $this->getFilterByKey($key))
132-
->reject(fn(Filter $filter) => $filter->isHiddenFromMenus() && !$filter->isResetByClearButton())
131+
->map(fn ($_item, $key) => $this->getFilterByKey($key))
132+
->reject(fn (Filter $filter) => $filter->isHiddenFromMenus() && ! $filter->isResetByClearButton())
133133
->count();
134134
}
135135

136136
public function getFilterBadgeCount(): int
137137
{
138138
return collect($this->getAppliedFiltersWithValues())
139-
->map(fn($_item, $key) => $this->getFilterByKey($key))
140-
->reject(fn(Filter $filter) => $filter->isHiddenFromFilterCount())
139+
->map(fn ($_item, $key) => $this->getFilterByKey($key))
140+
->reject(fn (Filter $filter) => $filter->isHiddenFromFilterCount())
141141
->count();
142142
}
143143

144144
public function hasAppliedVisibleFiltersForPills(): bool
145145
{
146146
return collect($this->getAppliedFiltersWithValues())
147-
->map(fn($_item, $key) => $this->getFilterByKey($key))
148-
->reject(fn(Filter $filter) => $filter->isHiddenFromPills())
147+
->map(fn ($_item, $key) => $this->getFilterByKey($key))
148+
->reject(fn (Filter $filter) => $filter->isHiddenFromPills())
149149
->count();
150150
}
151151

src/Views/Traits/Configuration/FilterConfiguration.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,41 @@ public function setFilterPillValues(array $values): self
4343
return $this;
4444
}
4545

46-
// TODO: Test
47-
public function hiddenFromMenus(): self
48-
{
49-
$this->hiddenFromMenus = true;
46+
// TODO: Test
47+
public function hiddenFromMenus(): self
48+
{
49+
$this->hiddenFromMenus = true;
5050

51-
return $this;
52-
}
51+
return $this;
52+
}
5353

54-
public function hiddenFromPills(): self
55-
{
56-
$this->hiddenFromPills = true;
54+
public function hiddenFromPills(): self
55+
{
56+
$this->hiddenFromPills = true;
5757

58-
return $this;
59-
}
58+
return $this;
59+
}
6060

61-
public function hiddenFromFilterCount(): self
62-
{
63-
$this->hiddenFromFilterCount = true;
61+
public function hiddenFromFilterCount(): self
62+
{
63+
$this->hiddenFromFilterCount = true;
6464

65-
return $this;
66-
}
65+
return $this;
66+
}
6767

68-
public function hiddenFromAll(): self
69-
{
70-
$this->hiddenFromMenus = true;
71-
$this->hiddenFromPills = true;
72-
$this->hiddenFromFilterCount = true;
68+
public function hiddenFromAll(): self
69+
{
70+
$this->hiddenFromMenus = true;
71+
$this->hiddenFromPills = true;
72+
$this->hiddenFromFilterCount = true;
7373

74-
return $this;
75-
}
74+
return $this;
75+
}
7676

77-
public function notResetByClearButton(): self
78-
{
79-
$this->resetByClearButton = false;
77+
public function notResetByClearButton(): self
78+
{
79+
$this->resetByClearButton = false;
8080

81-
return $this;
82-
}
81+
return $this;
82+
}
8383
}

0 commit comments

Comments
 (0)