Skip to content

Commit a3b5774

Browse files
committed
Refactor
1 parent c68b060 commit a3b5774

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Traits/WithFilters.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ public function hasFilter(string $filter): bool
169169
*/
170170
public function getFilter(string $filter): ?string
171171
{
172-
return isset($this->filters[$filter]) && $this->filters[$filter] !== null && $this->filters[$filter] !== '' ?
173-
$this->filters[$filter] :
174-
null;
172+
return $this->hasFilter($filter) ? $this->filters[$filter] : null;
175173
}
176174

177175
/**

0 commit comments

Comments
 (0)