@@ -40,8 +40,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | ) |
@@ -57,7 +57,7 @@ |
||
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 | } |
@@ -21,7 +21,7 @@ |
||
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 | } |
@@ -20,7 +20,7 @@ |
||
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 | } |
@@ -39,7 +39,7 @@ |
||
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 | } |