@@ -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 | } |
@@ -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 | } |