Completed
Push — master ( 374367...b950ab )
by Vladimir
09:30
created
src/Api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
 
197 197
     protected function token(): ?string
198 198
     {
199
-        return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function () {
199
+        return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function() {
200 200
             $response = $this->http->post(
201 201
                 $this->url.'/login',
202 202
                 ['form_params' => ['username' => $this->username, 'password' => $this->password]]
Please login to merge, or discard this patch.
src/Paymarket/Paymarket.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
 
24 24
     protected function transformCollection(array $collection, string $class): array
25 25
     {
26
-        return array_map(function ($attributes) use ($class) {
26
+        return array_map(function($attributes) use ($class) {
27 27
             return new $class($attributes, $this);
28 28
         }, $collection);
29 29
     }
Please login to merge, or discard this patch.
src/Paymarket/Resources/Service.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         $this->isActiveForMerchant = (bool) array_get($attributes, 'pivot.is_active');
44 44
 
45
-        $this->parameters = array_map(function (array $parameterAttributes) {
45
+        $this->parameters = array_map(function(array $parameterAttributes) {
46 46
             return new ServiceParameter($parameterAttributes);
47 47
         }, $attributes['parameters'] ?? []);
48 48
     }
Please login to merge, or discard this patch.
src/Gateway.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      * @param int $expiryYear
77 77
      * @param string $cvv
78 78
      * @param string $cf
79
-     * @param float|string $amount
79
+     * @param double $amount
80 80
      * @param array $parameters
81 81
      *
82 82
      * @return InitResponse
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
             'exp_year' => $expiryYear,
107 107
             'cardholder' => $cardHolder,
108 108
             'token' => md5(
109
-                $this->merchantId .
110
-                $productId .
111
-                $amount .
112
-                $cf .
113
-                array_get($parameters, 'cf2') .
114
-                array_get($parameters, 'cf3') .
109
+                $this->merchantId.
110
+                $productId.
111
+                $amount.
112
+                $cf.
113
+                array_get($parameters, 'cf2').
114
+                array_get($parameters, 'cf3').
115 115
                 $this->secretWord
116 116
             ),
117 117
         ]);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             'opcode' => 2,
136 136
             'product_id' => $productId,
137 137
             'cf' => $cf,
138
-            'token' => md5($this->merchantId . $productId . $cf . $this->secretWord),
138
+            'token' => md5($this->merchantId.$productId.$cf.$this->secretWord),
139 139
         ];
140 140
 
141 141
         $response = $this->send($parameters);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
         $response = $this->http->post($this->url, ['form_params' => $parameters, 'verify' => false]);
173 173
 
174
-        return (string)$response->getBody();
174
+        return (string) $response->getBody();
175 175
     }
176 176
 
177 177
     private function deserialize(string $data, string $class)
Please login to merge, or discard this patch.