From f5b6e0112294af4e91f71b40d666a3d92ef9ff23 Mon Sep 17 00:00:00 2001
From: HDVinnie
Date: Sun, 15 Sep 2024 19:16:24 -0400
Subject: [PATCH 1/3] update: ticket search
---
app/Http/Livewire/TicketSearch.php | 7 -------
resources/views/livewire/ticket-search.blade.php | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/app/Http/Livewire/TicketSearch.php b/app/Http/Livewire/TicketSearch.php
index fb8575b0f..8c4a6e1f6 100644
--- a/app/Http/Livewire/TicketSearch.php
+++ b/app/Http/Livewire/TicketSearch.php
@@ -70,13 +70,6 @@ class TicketSearch extends Component
$this->resetPage();
}
- final public function toggleProperties($property): void
- {
- if ($property === 'show') {
- $this->show = !$this->show;
- }
- }
-
/**
* @return \Illuminate\Pagination\LengthAwarePaginator
*/
diff --git a/resources/views/livewire/ticket-search.blade.php b/resources/views/livewire/ticket-search.blade.php
index 514df81da..9f3d74559 100644
--- a/resources/views/livewire/ticket-search.blade.php
+++ b/resources/views/livewire/ticket-search.blade.php
@@ -36,7 +36,7 @@
id="show"
class="form__checkbox"
type="checkbox"
- wire:click="toggleProperties('show')"
+ wire:model.live="show"
/>
From 22d30440c5eb6e34f310b4cca447382a61e1986c Mon Sep 17 00:00:00 2001
From: HDVinnie
Date: Sun, 15 Sep 2024 19:18:21 -0400
Subject: [PATCH 2/3] update: user search
---
app/Http/Livewire/UserSearch.php | 7 -------
phpstan-baseline.neon | 5 -----
resources/views/livewire/user-search.blade.php | 2 +-
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/app/Http/Livewire/UserSearch.php b/app/Http/Livewire/UserSearch.php
index e5dcbdfa7..546643982 100644
--- a/app/Http/Livewire/UserSearch.php
+++ b/app/Http/Livewire/UserSearch.php
@@ -74,13 +74,6 @@ class UserSearch extends Component
$this->resetPage();
}
- final public function toggleProperties($property): void
- {
- if ($property === 'show') {
- $this->show = !$this->show;
- }
- }
-
/**
* @return \Illuminate\Pagination\LengthAwarePaginator
*/
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index d5d16c282..a7e1fb989 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1615,11 +1615,6 @@ parameters:
count: 1
path: app/Http/Livewire/UserSearch.php
- -
- message: "#^Method App\\\\Http\\\\Livewire\\\\UserSearch\\:\\:toggleProperties\\(\\) has parameter \\$property with no type specified\\.$#"
- count: 1
- path: app/Http/Livewire/UserSearch.php
-
-
message: "#^Unable to resolve the template type TWhenReturnType in call to method Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:when\\(\\)$#"
count: 1
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index 29d59e0ad..20ad22f04 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -115,7 +115,7 @@
id="show"
class="form__checkbox"
type="checkbox"
- wire:click="toggleProperties('show')"
+ wire:model.live="show"
/>
From 4e6395979311e284561901bf964d1a1406182226 Mon Sep 17 00:00:00 2001
From: HDVinnie
Date: Sun, 15 Sep 2024 19:19:40 -0400
Subject: [PATCH 3/3] update: warning search
---
app/Http/Livewire/WarningLogSearch.php | 7 -------
phpstan-baseline.neon | 5 -----
resources/views/livewire/warning-log-search.blade.php | 2 +-
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/app/Http/Livewire/WarningLogSearch.php b/app/Http/Livewire/WarningLogSearch.php
index 090006a42..56db7ee19 100644
--- a/app/Http/Livewire/WarningLogSearch.php
+++ b/app/Http/Livewire/WarningLogSearch.php
@@ -54,13 +54,6 @@ class WarningLogSearch extends Component
#[Url(history: true)]
public string $sortDirection = 'desc';
- final public function toggleProperties($property): void
- {
- if ($property === 'show') {
- $this->show = !$this->show;
- }
- }
-
/**
* @return \Illuminate\Pagination\LengthAwarePaginator
*/
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index a7e1fb989..1dab7ddc0 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1635,11 +1635,6 @@ parameters:
count: 1
path: app/Http/Livewire/UserUploads.php
- -
- message: "#^Method App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:toggleProperties\\(\\) has parameter \\$property with no type specified\\.$#"
- count: 1
- path: app/Http/Livewire/WarningLogSearch.php
-
-
message: "#^Method App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:warnings\\(\\) should return Illuminate\\\\Pagination\\\\LengthAwarePaginator\\ but returns Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator\\.$#"
count: 1
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 746ffe38c..5fb8b2667 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -8,7 +8,7 @@
id="show"
class="form__checkbox"
type="checkbox"
- wire:click="toggleProperties('show')"
+ wire:model.live="show"
/>