@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function __invoke(callable $next) |
| 39 | 39 | { |
| 40 | - return function (RequestInterface $request, array $options = []) use ($next) { |
|
| 40 | + return function(RequestInterface $request, array $options = []) use ($next) { |
|
| 41 | 41 | |
| 42 | 42 | $request = $this->addAuthQueryParams($request); |
| 43 | 43 | $sign = $this->generateSign($request->getUri()->__toString()); |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function withdraw(string $currency, float $quantity, string $address, ?string $paymentId = null): array |
| 57 | 57 | { |
| 58 | - $parameters = ['currency' => $currency, 'quantity' => (string)$quantity, 'address' => $address]; |
|
| 58 | + $parameters = ['currency' => $currency, 'quantity' => (string) $quantity, 'address' => $address]; |
|
| 59 | 59 | |
| 60 | 60 | if (!is_null($paymentId)) { |
| 61 | 61 | $parameters['paymentid'] = $paymentId; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | throw new InvalidCredentialException('Key and secret must be set for authenticated API'); |
| 99 | 99 | } |
| 100 | 100 | $stack = HandlerStack::create(); |
| 101 | - $stack->push(new Authentication($this->getKey(), $this->getSecret(), (string)time())); |
|
| 101 | + $stack->push(new Authentication($this->getKey(), $this->getSecret(), (string) time())); |
|
| 102 | 102 | |
| 103 | 103 | return new Client(['handler' => $stack, 'base_uri' => self::BASE_URI]); |
| 104 | 104 | } |