@@ -20,14 +20,14 @@ |
||
20 | 20 | /** |
21 | 21 | * Validate alpha spaces |
22 | 22 | */ |
23 | - Validator::extend('name', function ($attribute, $value) { |
|
23 | + Validator::extend('name', function($attribute, $value) { |
|
24 | 24 | return preg_match('/^[\pL\s\']+$/u', $value); |
25 | 25 | }); |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Validate phone number |
29 | 29 | */ |
30 | - Validator::extend('phone', function ($attribute, $value) { |
|
30 | + Validator::extend('phone', function($attribute, $value) { |
|
31 | 31 | $conditions = []; |
32 | 32 | $conditions[] = strlen($value) >= 10; |
33 | 33 | $conditions[] = strlen($value) <= 16; |