From ada03a11ea52d472217ac0ec98674d12ac0a96e3 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 23 Feb 2024 00:35:29 +0100 Subject: [PATCH] Lint --- app/Form/Actions/FormUpdateMetaAction.php | 3 ++- app/Remote/Actions/SearchAction.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Form/Actions/FormUpdateMetaAction.php b/app/Form/Actions/FormUpdateMetaAction.php index 825bfc12..f45f1044 100644 --- a/app/Form/Actions/FormUpdateMetaAction.php +++ b/app/Form/Actions/FormUpdateMetaAction.php @@ -6,6 +6,7 @@ use App\Form\Models\Form; use Illuminate\Validation\Rule; use Lorisleiva\Actions\ActionRequest; use Lorisleiva\Actions\Concerns\AsAction; +use Symfony\Component\HttpFoundation\JsonResponse; class FormUpdateMetaAction { @@ -36,7 +37,7 @@ class FormUpdateMetaAction $form->update(['meta' => $input]); } - public function asController(Form $form, ActionRequest $request) + public function asController(Form $form, ActionRequest $request): JsonResponse { $this->handle($form, $request->validated()); diff --git a/app/Remote/Actions/SearchAction.php b/app/Remote/Actions/SearchAction.php index eeaa681e..89033215 100644 --- a/app/Remote/Actions/SearchAction.php +++ b/app/Remote/Actions/SearchAction.php @@ -3,17 +3,20 @@ namespace App\Remote\Actions; use App\Initialize\Actions\NamiSearchAction; +use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Support\Facades\Crypt; use Lorisleiva\Actions\ActionRequest; use Lorisleiva\Actions\Concerns\AsAction; -use Zoomyboy\LaravelNami\Api; use Zoomyboy\LaravelNami\Nami; class SearchAction { use AsAction; - public function handle(ActionRequest $request) + /** + * @return LengthAwarePaginator> + */ + public function handle(ActionRequest $request): LengthAwarePaginator { $token = str($request->header('Authorization'))->replace('Bearer ', '')->toString(); $credentials = json_decode(Crypt::decryptString($token));