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 Dec 5, 2019
1 parent 5fc34a7 commit 05f28c4
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 @@ -82,7 +82,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 @@ -139,13 +139,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 @@ -184,9 +184,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 @@ -220,7 +220,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 05f28c4

Please sign in to comment.