Passed
Pull Request — master (#7)
by Lucas
11:51
created
src/Model/CheckoutInstallments.php 1 patch
Spacing   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
         return new Mutator(
41 41
             null,
42 42
             fn($value, $ctx) =>
43
-            is_null($value) ? $value :
44
-            (
43
+            is_null($value) ? $value : (
45 44
                 Assert::value(floatval($value))->gte(0)->get()
46 45
                 ?? $ctx->raise('inválido')
47 46
             )
@@ -53,8 +52,7 @@  discard block
 block discarded – undo
53 52
         return new Mutator(
54 53
             null,
55 54
             fn($value, $ctx) =>
56
-            is_null($value) ? $value :
57
-            (
55
+            is_null($value) ? $value : (
58 56
                 Assert::value(intval($value))->gte(0)->get()
59 57
                 ?? $ctx->raise('inválido')
60 58
             )
@@ -66,8 +64,7 @@  discard block
 block discarded – undo
66 64
         return new Mutator(
67 65
             null,
68 66
             fn($value, $ctx) =>
69
-            is_null($value) ? $value :
70
-            (
67
+            is_null($value) ? $value : (
71 68
                 Assert::value(intval($value))->gte(0)->get()
72 69
                 ?? $ctx->raise('inválido')
73 70
             )
@@ -79,8 +76,7 @@  discard block
 block discarded – undo
79 76
         return new Mutator(
80 77
             null,
81 78
             fn($value, $ctx) =>
82
-            is_null($value) ? $value :
83
-            (
79
+            is_null($value) ? $value : (
84 80
                 Assert::value(floatval($value))->gte(0)->get()
85 81
                 ?? $ctx->raise('inválido')
86 82
             )
@@ -92,8 +88,7 @@  discard block
 block discarded – undo
92 88
         return new Mutator(
93 89
             null,
94 90
             fn($value, $ctx) =>
95
-            is_null($value) ? $value :
96
-            (
91
+            is_null($value) ? $value : (
97 92
                 Assert::value(floatval($value))->gte(0)->get()
98 93
                 ?? $ctx->raise('inválido')
99 94
             )
Please login to merge, or discard this patch.
src/Endpoint/PaymentLinksEndpointV2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @param array|null $filters
58 58
      * @return Response
59 59
      */
60
-    public function list(?array $filters = []): Response
60
+    public function list(?array $filters = []) : Response
61 61
     {
62 62
         return $this->_GET($filters ?? []);
63 63
     }
Please login to merge, or discard this patch.
src/Endpoint/EstablishmentDisputeEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      * @param array|null $filters
22 22
      * @return Response
23 23
      */
24
-    public function list(string $establishment_id, ?array $filters = []): Response
24
+    public function list(string $establishment_id, ?array $filters = []) : Response
25 25
     {
26 26
         return $this->_GET([], [], "/$establishment_id/transactions/disputes");
27 27
     }
Please login to merge, or discard this patch.
src/Endpoint/ReceivableEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * @param array|null $filters
21 21
      * @return Response
22 22
      */
23
-    public function list(?array $filters = []): Response
23
+    public function list(?array $filters = []) : Response
24 24
     {
25 25
         return $this->_GET($filters ?? [], [], '/upcoming');
26 26
     }
Please login to merge, or discard this patch.
src/Endpoint/TokenEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         return $this->_GET(['token' => $token]);
40 40
     }
41 41
 
42
-    public function list(?array $filters = []): Response
42
+    public function list(?array $filters = []) : Response
43 43
     {
44 44
         return $this->_GET($filters ?? []);
45 45
     }
Please login to merge, or discard this patch.