File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function toArray(Request $request): array
20
20
'name ' => $ this ->name ,
21
21
'last_name ' => $ this ->last_name ,
22
22
'email ' => $ this ->email ,
23
- 'phone_number ' => $ this ->formatPhoneNumber () ,
23
+ 'phone_number ' => $ this ->phone_number ,
24
24
'phone_country ' => $ this ->phone_country ,
25
25
'voivodship ' => $ this ->voivodship ,
26
26
'city ' => $ this ->city ,
@@ -32,18 +32,4 @@ public function toArray(Request $request): array
32
32
'updated_at ' => $ this ->updated_at ,
33
33
];
34
34
}
35
-
36
- private function formatPhoneNumber (): ?string
37
- {
38
- if (empty ($ this ->phone_number )) {
39
- return null ;
40
- }
41
- try {
42
- $ phone = new PhoneNumber ($ this ->phone_number , $ this ->phone_country );
43
-
44
- return $ phone ->formatNational ();
45
- } catch (\Throwable $ e ) {
46
- return $ this ->phone_number ;
47
- }
48
- }
49
35
}
You can’t perform that action at this time.
0 commit comments