Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
jared-invoiced authored and StyleCIBot committed Jul 26, 2020
1 parent 03c4e02 commit a705217
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function __construct($apiKey, $sandbox = false, $ssoKey = false, $handler

$this->client = new GuzzleClient([
'base_uri' => $this->endpoint(),
'handler' => $handlerStack,
'handler' => $handlerStack,
]);

// object endpoints
Expand Down Expand Up @@ -172,13 +172,13 @@ public function request($method, $endpoint, array $params = [], array $opts = []
$method = strtolower($method);

$request = [
'auth' => [$this->apiKey, ''],
'headers' => $this->buildHeaders($opts),
'query' => [],
'http_errors' => false,
'verify' => $this->caBundleFile,
'auth' => [$this->apiKey, ''],
'headers' => $this->buildHeaders($opts),
'query' => [],
'http_errors' => false,
'verify' => $this->caBundleFile,
'connect_timeout' => self::CONNECT_TIMEOUT,
'read_timeout' => self::READ_TIMEOUT,
'read_timeout' => self::READ_TIMEOUT,
];

// these methods have no request body
Expand Down Expand Up @@ -217,9 +217,9 @@ public function request($method, $endpoint, array $params = [], array $opts = []
}

return [
'code' => $code,
'code' => $code,
'headers' => $parsedHeaders,
'body' => $parsed,
'body' => $parsed,
];
} else {
$error = json_decode($body, true);
Expand Down Expand Up @@ -251,7 +251,7 @@ private function buildHeaders(array $opts)
{
$headers = [
'Content-Type' => 'application/json',
'User-Agent' => 'Invoiced PHP/'.self::VERSION,
'User-Agent' => 'Invoiced PHP/'.self::VERSION,
];

if (isset($opts['idempotency_key']) && $opts['idempotency_key']) {
Expand Down

0 comments on commit a705217

Please sign in to comment.