@@ -199,12 +199,12 @@ discard block |
||
199 | 199 | } |
200 | 200 | |
201 | 201 | // If we have a token, sign the request |
202 | - if (! $this->needsAuthentication() && ! empty($this->accessToken)) { |
|
202 | + if ( ! $this->needsAuthentication() && ! empty($this->accessToken)) { |
|
203 | 203 | $headers['Authorization'] = 'Bearer ' . $this->accessToken; |
204 | 204 | } |
205 | 205 | |
206 | 206 | // Create param string |
207 | - if (! empty($params)) { |
|
207 | + if ( ! empty($params)) { |
|
208 | 208 | $endpoint .= '?' . http_build_query($params); |
209 | 209 | } |
210 | 210 | |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | */ |
385 | 385 | private function parseJsonDates($data) |
386 | 386 | { |
387 | - array_walk_recursive($data, function (&$item, $key) { |
|
387 | + array_walk_recursive($data, function(&$item, $key) { |
|
388 | 388 | $matches = null; |
389 | 389 | if (preg_match('/\/Date\((\d+)\)\//', $item, $matches)) { |
390 | 390 | $microtime = ((int) $matches[1]) / 1000; |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | */ |
537 | 537 | private function getTimestampFromExpiresIn($expiresIn) |
538 | 538 | { |
539 | - if (! ctype_digit($expiresIn)) { |
|
539 | + if ( ! ctype_digit($expiresIn)) { |
|
540 | 540 | throw new \InvalidArgumentException('Function requires a numeric expires value'); |
541 | 541 | } |
542 | 542 | |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | */ |
638 | 638 | private function parseExceptionForErrorMessages(Exception $e) |
639 | 639 | { |
640 | - if (! $e instanceof BadResponseException) { |
|
640 | + if ( ! $e instanceof BadResponseException) { |
|
641 | 641 | throw new ApiException($e->getMessage()); |
642 | 642 | } |
643 | 643 | |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | $responseBody = $response->getBody()->getContents(); |
650 | 650 | $decodedResponseBody = json_decode($responseBody, true); |
651 | 651 | |
652 | - if (! is_null($decodedResponseBody) && isset($decodedResponseBody['error']['message']['value'])) { |
|
652 | + if ( ! is_null($decodedResponseBody) && isset($decodedResponseBody['error']['message']['value'])) { |
|
653 | 653 | $errorMessage = $decodedResponseBody['error']['message']['value']; |
654 | 654 | } else { |
655 | 655 | $errorMessage = $responseBody; |