Passed
Push — develop ( 142042...e2d041 )
by Septianata
04:21
created
app/Http/Requests/Auth/RegisterRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Enum/Gender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
database/factories/UserFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ];
Please login to merge, or discard this patch.