Passed
Push — master ( bb4126...494ab2 )
by Koen
18:04
created
app/Http/Requests/Api/User/StoreRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     public function rules(): array
28 28
     {
29 29
         return [
30
-            'name'  => ['required', 'string', 'max:191'],
31
-            'email' => ['required', 'string', 'max:191', 'email', Rule::unique('users', 'email')],
30
+            'name'  => [ 'required', 'string', 'max:191' ],
31
+            'email' => [ 'required', 'string', 'max:191', 'email', Rule::unique('users', 'email') ],
32 32
         ];
33 33
     }
34 34
 }
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
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
         $user = $this->route()->parameter('user');
30 30
 
31 31
         return [
32
-            'name'  => ['required', 'string', 'max:191'],
33
-            'email' => ['required', 'string', 'max:191', 'email', Rule::unique('users', 'email')->ignore($user)],
32
+            'name'  => [ 'required', 'string', 'max:191' ],
33
+            'email' => [ 'required', 'string', 'max:191', 'email', Rule::unique('users', 'email')->ignore($user) ],
34 34
         ];
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
app/Http/Requests/Api/Profile/Password/UpdateRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@
 block discarded – undo
22 22
             'current_password' => [
23 23
                 'required',
24 24
                 'string',
25
-                function ($attribute, $value, $fail) {
25
+                function($attribute, $value, $fail) {
26 26
                     /** @var \App\Models\User $user */
27 27
                     $user = $this->user();
28 28
 
29 29
                     /** @var Hasher $hasher */
30 30
                     $hasher = $this->container->make(Hasher::class);
31 31
 
32
-                    if (! $hasher->check($value, $user->getAuthPassword())) {
32
+                    if (!$hasher->check($value, $user->getAuthPassword())) {
33 33
                         $fail('Current password is invalid.');
34 34
                     }
35 35
                 },
Please login to merge, or discard this patch.
app/Http/Requests/Api/Profile/Email/VerifyRequest.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
-            'email' => ['required', 'string', 'email'],
15
-            'token' => ['required', 'string'],
14
+            'email' => [ 'required', 'string', 'email' ],
15
+            'token' => [ 'required', 'string' ],
16 16
         ];
17 17
     }
18 18
 }
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', 'max:191'],
14
+            'name' => [ 'required', 'string', 'max:191' ],
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', 'max:191'],
15
-            'token'    => ['required', 'string'],
16
-            'password' => ['required', 'string', 'min:10', 'confirmed'],
14
+            'email'    => [ 'required', 'string', 'email', 'max:191' ],
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', 'max:191'],
15
-            'email' => ['required', 'string', 'email', 'max:191'],
14
+            'name'  => [ 'required', 'string', 'max:191' ],
15
+            'email' => [ 'required', 'string', 'email', 'max:191' ],
16 16
         ];
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
app/Http/Requests/Api/Auth/LoginRequest.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
-            'email'    => ['required', 'string', 'email'],
15
-            'password' => ['required', 'string'],
14
+            'email'    => [ 'required', 'string', 'email' ],
15
+            'password' => [ 'required', 'string' ],
16 16
         ];
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
app/Http/Responses/ResponseFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * @inheritDoc
16 16
      */
17
-    public function make(string $content = '', int $status = Response::HTTP_OK, array $headers = []): Response
17
+    public function make(string $content = '', int $status = Response::HTTP_OK, array $headers = [ ]): Response
18 18
     {
19 19
         return new Response($content, $status, $headers);
20 20
     }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @inheritDoc
24 24
      */
25
-    public function noContent(int $status = Response::HTTP_NO_CONTENT, array $headers = []): Response
25
+    public function noContent(int $status = Response::HTTP_NO_CONTENT, array $headers = [ ]): Response
26 26
     {
27 27
         return $this->make('', $status, $headers);
28 28
     }
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
      * @inheritDoc
32 32
      */
33 33
     public function json(
34
-        array $data = [],
34
+        array $data = [ ],
35 35
         int $status = Response::HTTP_OK,
36
-        array $headers = [],
36
+        array $headers = [ ],
37 37
         int $options = 0
38 38
     ): JsonResponse {
39
-        if (! array_key_exists('data', $data)) {
40
-            $data = ['data' => $data];
39
+        if (!array_key_exists('data', $data)) {
40
+            $data = [ 'data' => $data ];
41 41
         }
42 42
 
43 43
         return new JsonResponse($data, $status, $headers, $options);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function paginator(
50 50
         LengthAwarePaginator $paginator,
51 51
         int $status = Response::HTTP_OK,
52
-        array $headers = [],
52
+        array $headers = [ ],
53 53
         int $options = 0
54 54
     ): JsonResponse {
55 55
         return $this->json([
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         LengthAwarePaginator $paginator,
73 73
         callable $map,
74 74
         int $status = Response::HTTP_OK,
75
-        array $headers = [],
75
+        array $headers = [ ],
76 76
         int $options = 0
77 77
     ): JsonResponse {
78 78
         $paginator->setCollection($paginator->getCollection()->map($map));
Please login to merge, or discard this patch.