From 7111f9adee71e0b3029163335e652ef30f7bdb0e Mon Sep 17 00:00:00 2001 From: Nicolas Demangeat Date: Wed, 27 Nov 2024 14:20:28 +0100 Subject: [PATCH] fix: phpcs --- app/Http/Requests/Fo/ListenFormRequest.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/Fo/ListenFormRequest.php b/app/Http/Requests/Fo/ListenFormRequest.php index 4a525d4..6f48617 100644 --- a/app/Http/Requests/Fo/ListenFormRequest.php +++ b/app/Http/Requests/Fo/ListenFormRequest.php @@ -43,12 +43,20 @@ class ListenFormRequest extends FormRequest 'phone' => [ 'present', 'nullable', - !is_null(request()->country) ? (Country::make(request()->country)->value === Country::france->value ? 'phone:FR|max:25' : 'number|max:50') : 'number|max:50' + !is_null(request()->country) ? + (Country::make(request()->country)->value === Country::france->value ? + 'phone:FR|max:25' : + 'number|max:50') : + 'number|max:50' ], 'postal_code' => [ 'present', 'nullable', - !is_null(request()->country) ? (Country::make(request()->country)->value === Country::france->value ? 'postal_code:FR|max:25' : 'number|max:50') : 'number|max:50' + !is_null(request()->country) ? + (Country::make(request()->country)->value === Country::france->value ? + 'postal_code:FR|max:25' : + 'number|max:50') : + 'number|max:50' ], 'city' => 'present|nullable|string|between:3,20', 'country' => ['present', 'nullable', new Enum(Country::class)],