Completed
Push — master ( c1f862...d76fec )
by Vladimir
05:28 queued 44s
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/Paymarket/Actions/ManagesServices.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@
 block discarded – undo
20 20
     public function getService(int $serviceId): Service
21 21
     {
22 22
         return new Service(
23
-            array_get($this->get('services/' . $serviceId), 'data', [])
23
+            array_get($this->get('services/'.$serviceId), 'data', [])
24 24
         );
25 25
     }
26 26
 
27 27
     public function getServiceRate(int $serviceId): ServiceRate
28 28
     {
29 29
         return new ServiceRate(
30
-            array_get($this->get('services/' . $serviceId . '/rate'), 'data', [])
30
+            array_get($this->get('services/'.$serviceId.'/rate'), 'data', [])
31 31
         );
32 32
     }
33 33
 }
Please login to merge, or discard this patch.