Passed
Pull Request — master (#9)
by Koen
13:26
created
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', Rule::unique('users', 'email')],
15
+            'name'  => [ 'required', 'string' ],
16
+            'email' => [ 'required', 'string', 'email', Rule::unique('users', 'email') ],
17 17
         ];
18 18
     }
19 19
 }
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', Rule::unique('users', 'email')->ignore($user)],
17
+            'name'  => [ 'required', 'string' ],
18
+            'email' => [ 'required', 'string', 'email', 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/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/Http/Requests/Api/Registration/VerifyRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
     public function rules(): array
12 12
     {
13 13
         return [
14
-            'email'    => ['required', 'string', 'email'],
15
-            'token'    => ['required', 'string'],
16
-            'password' => ['required', 'string', 'min:10', 'confirmed'],
14
+            'email'    => [ 'required', 'string', 'email' ],
15
+            'token'    => [ 'required', 'string' ],
16
+            'password' => [ 'required', 'string', 'min:10', 'confirmed' ],
17 17
         ];
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
app/Http/Requests/Api/Registration/StoreRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
     public function rules(): array
12 12
     {
13 13
         return [
14
-            'name'  => ['required', 'string'],
15
-            'email' => ['required', 'string', 'email'],
14
+            'name'  => [ 'required', 'string' ],
15
+            'email' => [ 'required', 'string', 'email' ],
16 16
         ];
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
app/Http/Requests/Api/Invitation/AcceptRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
     public function rules(): array
10 10
     {
11 11
         return [
12
-            'token'    => ['required', 'string'],
13
-            'email'    => ['required', 'string', 'email'],
14
-            'password' => ['required', 'string', 'min:10', 'confirmed'],
12
+            'token'    => [ 'required', 'string' ],
13
+            'email'    => [ 'required', 'string', 'email' ],
14
+            'password' => [ 'required', 'string', 'min:10', 'confirmed' ],
15 15
         ];
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
app/Contracts/Http/Responses/ResponseFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 interface ResponseFactory
12 12
 {
13
-    public function make(string $content = '', int $status = 200, array $headers = []): Response;
13
+    public function make(string $content = '', int $status = 200, array $headers = [ ]): Response;
14 14
 
15
-    public function noContent(int $status = Response::HTTP_NO_CONTENT, array $headers = []): Response;
15
+    public function noContent(int $status = Response::HTTP_NO_CONTENT, array $headers = [ ]): Response;
16 16
 
17 17
     /**
18 18
      * @param  string|array|object $data
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
      * @return JsonResponse
23 23
      */
24 24
     public function json(
25
-        array $data = [],
25
+        array $data = [ ],
26 26
         int $status = Response::HTTP_OK,
27
-        array $headers = [],
27
+        array $headers = [ ],
28 28
         int $options = 0
29 29
     ): JsonResponse;
30 30
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function paginator(
39 39
         LengthAwarePaginator $paginator,
40 40
         int $status = Response::HTTP_OK,
41
-        array $headers = [],
41
+        array $headers = [ ],
42 42
         int $options = 0
43 43
     ): JsonResponse;
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         LengthAwarePaginator $paginator,
55 55
         callable $map,
56 56
         int $status = Response::HTTP_OK,
57
-        array $headers = [],
57
+        array $headers = [ ],
58 58
         int $options = 0
59 59
     ): JsonResponse;
60 60
 }
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.