Passed
Push — master ( 2b724a...0cbda2 )
by João Felipe Magro
11:42
created
src/Model/Card.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Model/PaymentSplitRules.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             )
Please login to merge, or discard this patch.
src/Model/PaymentTransaction.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
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
             )
Please login to merge, or discard this patch.
src/Model/Schema/SchemaFloatAttribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Endpoint/WebhookEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Endpoint/TransactionEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Endpoint/EstablishmentTransactionEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Endpoint/EstablishmentEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Endpoint/SubscriptionEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.