@@ -76,8 +76,7 @@ discard block |
||
76 | 76 | return new Mutator( |
77 | 77 | null, |
78 | 78 | fn($value, $ctx) => |
79 | - is_null($value) ? $value : |
|
80 | - ( |
|
79 | + is_null($value) ? $value : ( |
|
81 | 80 | Assert::value($value)->asDigits()->lbetween(2, 2)->or()->lbetween(4, 4)->get() ?? $ctx->raise('inválido (informe um valor numérico de 2 ou 4 dígitos)') |
82 | 81 | ) |
83 | 82 | ); |
@@ -88,8 +87,7 @@ discard block |
||
88 | 87 | return new Mutator( |
89 | 88 | null, |
90 | 89 | fn($value, $ctx) => |
91 | - is_null($value) ? $value : |
|
92 | - ( |
|
90 | + is_null($value) ? $value : ( |
|
93 | 91 | Assert::value($value)->asDigits()->lbetween(3, 3)->or()->lbetween(4, 4)->get() ?? $ctx->raise('inválido (informe um valor numérico de 3 ou 4 dígitos)') |
94 | 92 | ) |
95 | 93 | ); |
@@ -44,8 +44,7 @@ discard block |
||
44 | 44 | return new Mutator( |
45 | 45 | null, |
46 | 46 | fn($value, $ctx) => |
47 | - is_null($value) ? $value : |
|
48 | - ( |
|
47 | + is_null($value) ? $value : ( |
|
49 | 48 | Assert::value(floatval($value))->gte(0)->get() |
50 | 49 | ?? $ctx->raise('inválido') |
51 | 50 | ) |
@@ -57,8 +56,7 @@ discard block |
||
57 | 56 | return new Mutator( |
58 | 57 | null, |
59 | 58 | fn($value, $ctx) => |
60 | - is_null($value) ? $value : |
|
61 | - ( |
|
59 | + is_null($value) ? $value : ( |
|
62 | 60 | Assert::value(floatval($value))->gte(0)->get() |
63 | 61 | ?? $ctx->raise('inválido') |
64 | 62 | ) |
@@ -47,8 +47,7 @@ |
||
47 | 47 | return new Mutator( |
48 | 48 | null, |
49 | 49 | fn($value, $ctx) => |
50 | - is_null($value) ? $value : |
|
51 | - ( |
|
50 | + is_null($value) ? $value : ( |
|
52 | 51 | Assert::value(floatval($value))->gte(0)->get() |
53 | 52 | ?? $ctx->raise('inválido') |
54 | 53 | ) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function parseContextual($value) |
28 | 28 | { |
29 | 29 | if (is_int($value)) { |
30 | - $value = (float) $value; |
|
30 | + $value = (float)$value; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | if (!is_null($this->min) && $value < $this->min) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @codeCoverageIgnore |
52 | 52 | */ |
53 | - public function list(?array $filters = []): Response |
|
53 | + public function list(?array $filters = []) : Response |
|
54 | 54 | { |
55 | 55 | return $this->_GET($filters ?? []); |
56 | 56 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @return Response |
35 | 35 | * |
36 | 36 | */ |
37 | - public function list(?array $filters = []): Response |
|
37 | + public function list(?array $filters = []) : Response |
|
38 | 38 | { |
39 | 39 | return $this->_GET($filters ?? []); |
40 | 40 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @codeCoverageIgnore |
26 | 26 | */ |
27 | - public function list(?array $filters = []): Response |
|
27 | + public function list(?array $filters = []) : Response |
|
28 | 28 | { |
29 | 29 | return $this->_GET($filters, [], '/transactions'); |
30 | 30 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @codeCoverageIgnore |
52 | 52 | */ |
53 | - public function list(?array $filters = []): Response |
|
53 | + public function list(?array $filters = []) : Response |
|
54 | 54 | { |
55 | 55 | return $this->_GET($filters ?? []); |
56 | 56 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @codeCoverageIgnore |
52 | 52 | */ |
53 | - public function list(?array $filters = []): Response |
|
53 | + public function list(?array $filters = []) : Response |
|
54 | 54 | { |
55 | 55 | return $this->_GET($filters ?? []); |
56 | 56 | } |