Passed
Branch master (32e99d)
by Lucas
10:41
created
src/Util/StateUtil.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,10 +43,9 @@
 block discarded – undo
43 43
         }
44 44
 
45 45
         $found =
46
-            array_search
47
-            (
46
+            array_search(
48 47
                 $state,
49
-                array_map(function ($v) {
48
+                array_map(function($v) {
50 49
                     return strtoupper(self::sanitizeString($v));
51 50
                 }, self::$states)
52 51
             );
Please login to merge, or discard this patch.
src/Util/ArrayUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public static function extractStrings(array $data): array
49 49
     {
50
-        return array_reduce($data, function ($strings, $value) {
50
+        return array_reduce($data, function($strings, $value) {
51 51
             if (is_array($value)) {
52 52
                 return array_merge($strings, self::extractStrings($value));
53 53
             } elseif (is_string($value) && !is_numeric($value)) {
Please login to merge, or discard this patch.
src/Http/Response.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,11 @@
 block discarded – undo
28 28
 
29 29
     public function unSerialize(): self
30 30
     {
31
-        if (empty($this->raw) || gettype(json_decode($this->raw)) === 'string')
32
-            $this->data = ['data' => $this->raw];
33
-        else
34
-            $this->data = $this->serializer ? $this->serializer->unserialize($this->raw) : null;
31
+        if (empty($this->raw) || gettype(json_decode($this->raw)) === 'string') {
32
+                    $this->data = ['data' => $this->raw];
33
+        } else {
34
+                    $this->data = $this->serializer ? $this->serializer->unserialize($this->raw) : null;
35
+        }
35 36
 
36 37
         return $this;
37 38
     }
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
@@ -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/SellerEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @param array|null $filters
56 56
      * @return Response
57 57
      */
58
-    public function list(?array $filters = []): Response
58
+    public function list(?array $filters = []) : Response
59 59
     {
60 60
         return $this->_GET($filters ?? []);
61 61
     }
Please login to merge, or discard this patch.
src/Endpoint/CustomerEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      * @param array|null $filters
67 67
      * @return Response
68 68
      */
69
-    public function list(?array $filters = []): Response
69
+    public function list(?array $filters = []) : Response
70 70
     {
71 71
         return $this->_GET($filters ?? []);
72 72
     }
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
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @param array|null $filters
23 23
      * @return Response
24 24
      */
25
-    public function list(?array $filters = []): Response
25
+    public function list(?array $filters = []) : Response
26 26
     {
27 27
         return $this->_GET($filters, [], '/transactions');
28 28
     }
Please login to merge, or discard this patch.
src/Endpoint/TransferEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * @param array|null $filters
24 24
      * @return Response
25 25
      */
26
-    public function list(?array $filters = []): Response
26
+    public function list(?array $filters = []) : Response
27 27
     {
28 28
         return $this->_GET($filters ?? []);
29 29
     }
Please login to merge, or discard this patch.
src/Endpoint/SubscriptionPlanEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      * @param array|null $filters
67 67
      * @return Response
68 68
      */
69
-    public function list(?array $filters = []): Response
69
+    public function list(?array $filters = []) : Response
70 70
     {
71 71
         return $this->_GET($filters ?? []);
72 72
     }
Please login to merge, or discard this patch.