@@ -31,13 +31,13 @@ |
||
| 31 | 31 | return [ |
| 32 | 32 | 'username' => 'required|string|max:255|unique:users,username', |
| 33 | 33 | 'fullname' => 'required|string|max:255', |
| 34 | - 'gender' => ['sometimes', Rule::in(Gender::toValues())], |
|
| 34 | + 'gender' => [ 'sometimes', Rule::in(Gender::toValues()) ], |
|
| 35 | 35 | 'email' => 'required|string|email|max:255|unique:users', |
| 36 | 36 | 'phone_country' => 'sometimes|in:ID', |
| 37 | - 'phone' => ['required', 'string', 'phone:ID', Rule::unique('users')->where(function ($query) { |
|
| 37 | + 'phone' => [ 'required', 'string', 'phone:ID', Rule::unique('users')->where(function($query) { |
|
| 38 | 38 | $query->where('phone', PhoneNumber::make($this->input('phone'), 'ID')->formatE164()); |
| 39 | - })], |
|
| 40 | - 'password' => ['required', 'confirmed', Rules\Password::defaults()], |
|
| 39 | + }) ], |
|
| 40 | + 'password' => [ 'required', 'confirmed', Rules\Password::defaults() ], |
|
| 41 | 41 | ]; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -33,6 +33,6 @@ |
||
| 33 | 33 | return [ |
| 34 | 34 | 'male' => trans('Mr.'), |
| 35 | 35 | 'female' => trans('Mrs.'), |
| 36 | - ][$this->value] ?? null; |
|
| 36 | + ][ $this->value ] ?? null; |
|
| 37 | 37 | } |
| 38 | 38 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function definition() |
| 26 | 26 | { |
| 27 | - $gender = $this->faker->randomElement(['male', 'female']); |
|
| 27 | + $gender = $this->faker->randomElement([ 'male', 'female' ]); |
|
| 28 | 28 | |
| 29 | 29 | return [ |
| 30 | 30 | 'username' => $this->faker->userName, |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function unverified() |
| 48 | 48 | { |
| 49 | - return $this->state(function (array $attributes) { |
|
| 49 | + return $this->state(function(array $attributes) { |
|
| 50 | 50 | return [ |
| 51 | 51 | 'email_verified_at' => null, |
| 52 | 52 | ]; |