From b43c524ff2216b7bab26282eb4a33fbb4fd8060e Mon Sep 17 00:00:00 2001 From: HDVinnie Date: Mon, 4 Mar 2024 03:42:21 +0000 Subject: [PATCH] PHP Style Change (Laravel Pint CI) --- app/Http/Livewire/AuditLogSearch.php | 3 ++- app/Http/Livewire/EmailUpdateSearch.php | 2 +- app/Http/Livewire/HistorySearch.php | 1 - app/Http/Livewire/SimilarTorrent.php | 2 +- app/Http/Livewire/TorrentDownloadSearch.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Livewire/AuditLogSearch.php b/app/Http/Livewire/AuditLogSearch.php index 7d4621124..25b19be26 100644 --- a/app/Http/Livewire/AuditLogSearch.php +++ b/app/Http/Livewire/AuditLogSearch.php @@ -18,6 +18,7 @@ use Livewire\Attributes\Computed; use Livewire\Attributes\Url; use Livewire\Component; use Livewire\WithPagination; +use JsonException; class AuditLogSearch extends Component { @@ -75,8 +76,8 @@ class AuditLogSearch extends Component } /** + * @throws JsonException * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator - * @throws \JsonException */ #[Computed] final public function audits(): \Illuminate\Contracts\Pagination\LengthAwarePaginator diff --git a/app/Http/Livewire/EmailUpdateSearch.php b/app/Http/Livewire/EmailUpdateSearch.php index 81cc5046c..24e4075eb 100644 --- a/app/Http/Livewire/EmailUpdateSearch.php +++ b/app/Http/Livewire/EmailUpdateSearch.php @@ -23,8 +23,8 @@ use App\Traits\LivewireSort; class EmailUpdateSearch extends Component { - use WithPagination; use LivewireSort; + use WithPagination; #[Url] public string $username = ''; diff --git a/app/Http/Livewire/HistorySearch.php b/app/Http/Livewire/HistorySearch.php index 49b4318fd..b205af50a 100644 --- a/app/Http/Livewire/HistorySearch.php +++ b/app/Http/Livewire/HistorySearch.php @@ -56,7 +56,6 @@ class HistorySearch extends Component #[Url] public string $sortDirection = 'desc'; - final public function updatedPage(): void { $this->dispatch('paginationChanged'); diff --git a/app/Http/Livewire/SimilarTorrent.php b/app/Http/Livewire/SimilarTorrent.php index 3b35a9a79..dd61481dd 100644 --- a/app/Http/Livewire/SimilarTorrent.php +++ b/app/Http/Livewire/SimilarTorrent.php @@ -151,7 +151,7 @@ class SimilarTorrent extends Component $this->dispatch( 'swal:confirm', type: 'warning', - message: 'Are you sure?', + message: 'Are you sure?', body: 'If deleted, you will not be able to recover the following files!'.nl2br("\n") .nl2br(implode("\n", $names)), ); diff --git a/app/Http/Livewire/TorrentDownloadSearch.php b/app/Http/Livewire/TorrentDownloadSearch.php index a3e46c628..84b3cc7d1 100644 --- a/app/Http/Livewire/TorrentDownloadSearch.php +++ b/app/Http/Livewire/TorrentDownloadSearch.php @@ -28,8 +28,8 @@ use Livewire\WithPagination; */ class TorrentDownloadSearch extends Component { - use WithPagination; use LivewireSort; + use WithPagination; #[Url] public int $perPage = 50;