|
@@ -1,6 +1,6 @@ discard block |
|
|
block discarded – undo |
|
1
|
1
|
<?php |
|
2
|
2
|
|
|
3
|
|
-declare(strict_types=1); |
|
|
3
|
+declare(strict_types = 1); |
|
4
|
4
|
|
|
5
|
5
|
namespace AcquiroPay; |
|
6
|
6
|
|
|
@@ -105,7 +105,7 @@ discard block |
|
|
block discarded – undo |
|
105
|
105
|
|
|
106
|
106
|
protected function token(): ?string |
|
107
|
107
|
{ |
|
108
|
|
- return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function () { |
|
|
108
|
+ return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function() { |
|
109
|
109
|
$response = $this->http->post($this->url.'/login', ['form_params' => ['username' => $this->username, 'password' => $this->password]]); |
|
110
|
110
|
|
|
111
|
111
|
return (string) $response->getBody(); |
Please login to merge, or discard this patch.