From cfa87b7924ef715ce7723c6698a70a68fa72b660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 23 Aug 2021 20:00:44 +0200 Subject: [PATCH] phpcs fix AnswersController --- app/Http/Controllers/Api/V2/AnswerController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/V2/AnswerController.php b/app/Http/Controllers/Api/V2/AnswerController.php index 2dbf05c..c5c402b 100644 --- a/app/Http/Controllers/Api/V2/AnswerController.php +++ b/app/Http/Controllers/Api/V2/AnswerController.php @@ -20,8 +20,11 @@ class AnswerController extends Controller * @return \Illuminate\Http\JsonResponse */ // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed - public function storeCustomerAnswers(StoreCustomerAnswers $request, Service $service, Customer $customer): JsonResponse - { + public function storeCustomerAnswers( + StoreCustomerAnswers $request, + Service $service, + Customer $customer + ): JsonResponse { $this->authorize('customerBelongsToService', $customer); $existingAnswerIds = $customer->getAnswers($service)->pluck('id'); $answersID = Answer::whereIn('id', $request->answers)->pluck('id');