From 3411d787bf0b67f87e4cf63f0ac90c4b5c459d9f Mon Sep 17 00:00:00 2001 From: lrljoe Date: Fri, 6 Oct 2023 22:04:31 +0000 Subject: [PATCH] Fix styling --- src/Views/Traits/Helpers/FilterHelpers.php | 4 +--- tests/Views/Traits/Helpers/FilterHelpersTest.php | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Views/Traits/Helpers/FilterHelpers.php b/src/Views/Traits/Helpers/FilterHelpers.php index 7a3fedff7..f0e8c731c 100644 --- a/src/Views/Traits/Helpers/FilterHelpers.php +++ b/src/Views/Traits/Helpers/FilterHelpers.php @@ -241,7 +241,6 @@ public function hasFilterDefaultValue(): bool return ! is_null($this->filterDefaultValue); } - public function getFilterLabelAttributes(): array { return [...['default' => true], ...$this->filterLabelAttributes]; @@ -249,7 +248,6 @@ public function getFilterLabelAttributes(): array public function hasFilterLabelAttributes(): bool { - return !($this->filterLabelAttributes != ['default' => true] && $this->filterLabelAttributes != ['default' => false]); + return ! ($this->filterLabelAttributes != ['default' => true] && $this->filterLabelAttributes != ['default' => false]); } - } diff --git a/tests/Views/Traits/Helpers/FilterHelpersTest.php b/tests/Views/Traits/Helpers/FilterHelpersTest.php index 5c553c8ea..9912a491d 100644 --- a/tests/Views/Traits/Helpers/FilterHelpersTest.php +++ b/tests/Views/Traits/Helpers/FilterHelpersTest.php @@ -373,6 +373,5 @@ public function can_get_filter_label_attributes(): void $this->assertSame($filter2->getFilterLabelAttributes(), ['class' => 'text-xl', 'default' => true]); $this->assertSame($filter3->getFilterLabelAttributes(), ['class' => 'text-2xl', 'default' => false]); - } }