Passed
Push — master ( 5ad05b...a04153 )
by Koen
04:32
created
app/Http/Requests/Api/User/IndexRequest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
     public function rules(): array
12 12
     {
13 13
         return [
14
-            'name'     => ['sometimes', 'string'],
15
-            'email'    => ['sometimes', 'string'],
16
-            'sort_by'  => ['sometimes', 'string', 'in:name,email'],
17
-            'desc'     => ['sometimes', 'boolean'],
18
-            'per_page' => ['sometimes', 'integer', 'min:1', 'max:100'],
14
+            'name'     => [ 'sometimes', 'string' ],
15
+            'email'    => [ 'sometimes', 'string' ],
16
+            'sort_by'  => [ 'sometimes', 'string', 'in:name,email' ],
17
+            'desc'     => [ 'sometimes', 'boolean' ],
18
+            'per_page' => [ 'sometimes', 'integer', 'min:1', 'max:100' ],
19 19
         ];
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
app/Http/Requests/Api/Profile/UpdateRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function rules(): array
12 12
     {
13 13
         return [
14
-            'name' => ['required', 'string'],
14
+            'name' => [ 'required', 'string' ],
15 15
         ];
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
app/Auth/Dispensary/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function put(string $key, string $token, int $ttl): void
13 13
     {
14
-        Dispense::query()->updateOrCreate(['key' => $key], [
14
+        Dispense::query()->updateOrCreate([ 'key' => $key ], [
15 15
             'token'      => $token,
16 16
             'expires_at' => Carbon::now()->addSeconds($ttl),
17 17
         ]);
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         $dispense = Dispense::query()->where('key', $key)->first();
23 23
 
24
-        if (! $dispense instanceof Dispense) {
24
+        if (!$dispense instanceof Dispense) {
25 25
             return null;
26 26
         }
27 27
 
Please login to merge, or discard this patch.
app/Notifications/User/Email/CantUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function via(): array
14 14
     {
15
-        return ['mail'];
15
+        return [ 'mail' ];
16 16
     }
17 17
 
18 18
     public function toMail(User $user): CantUpdateMail
Please login to merge, or discard this patch.
app/Notifications/User/Email/VerifyUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function via(): array
24 24
     {
25
-        return ['mail'];
25
+        return [ 'mail' ];
26 26
     }
27 27
 
28 28
     public function toMail(User $user): VerifyUpdateMail
Please login to merge, or discard this patch.
app/Notifications/User/PasswordReset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function via(): array
21 21
     {
22
-        return ['mail'];
22
+        return [ 'mail' ];
23 23
     }
24 24
 
25 25
     public function toMail(User $user): PasswordResetMail
Please login to merge, or discard this patch.
app/Notifications/User/Invitation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function via(): array
21 21
     {
22
-        return ['mail'];
22
+        return [ 'mail' ];
23 23
     }
24 24
 
25 25
     public function toMail(User $user): InvitationMail
Please login to merge, or discard this patch.
app/Http/Requests/Api/User/UpdateRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
         $user = $this->route()->parameter('user');
15 15
 
16 16
         return [
17
-            'name'  => ['required', 'string'],
18
-            'email' => ['required', 'string', 'email:rfc,dns', Rule::unique('users', 'email')->ignore($user)],
17
+            'name'  => [ 'required', 'string' ],
18
+            'email' => [ 'required', 'string', 'email:rfc,dns', Rule::unique('users', 'email')->ignore($user) ],
19 19
         ];
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
app/Http/Requests/Api/User/StoreRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
     public function rules(): array
13 13
     {
14 14
         return [
15
-            'name'  => ['required', 'string'],
16
-            'email' => ['required', 'string', 'email:rfc,dns', Rule::unique('users', 'email')],
15
+            'name'  => [ 'required', 'string' ],
16
+            'email' => [ 'required', 'string', 'email:rfc,dns', Rule::unique('users', 'email') ],
17 17
         ];
18 18
     }
19 19
 }
Please login to merge, or discard this patch.