fix: phpcs
This commit is contained in:
parent
f5b8deee6a
commit
7111f9adee
1 changed files with 10 additions and 2 deletions
|
|
@ -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)],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue