@@ -202,12 +202,12 @@ |
||
| 202 | 202 | $client = $this->getClient(); |
| 203 | 203 | $res = $client->request( |
| 204 | 204 | 'GET', $fullUri, [ |
| 205 | - 'headers' => [ |
|
| 206 | - 'Accept' => 'application/json', |
|
| 207 | - 'Authorization' => sprintf('Bearer %s', $this->getToken()), |
|
| 208 | - ], |
|
| 209 | - 'verify' => resource_path('certs/ca.cert.pem'), |
|
| 210 | - ] |
|
| 205 | + 'headers' => [ |
|
| 206 | + 'Accept' => 'application/json', |
|
| 207 | + 'Authorization' => sprintf('Bearer %s', $this->getToken()), |
|
| 208 | + ], |
|
| 209 | + 'verify' => resource_path('certs/ca.cert.pem'), |
|
| 210 | + ] |
|
| 211 | 211 | ); |
| 212 | 212 | |
| 213 | 213 | if (200 !== $res->getStatusCode()) { |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | |
| 150 | 150 | $debugOpt = $options; |
| 151 | 151 | unset($debugOpt['body']); |
| 152 | - Log::debug('Options are' , $debugOpt); |
|
| 152 | + Log::debug('Options are', $debugOpt); |
|
| 153 | 153 | Log::debug('Body is', $this->getBody()); |
| 154 | 154 | |
| 155 | 155 | $res = $client->request('POST', $fullUri, $options); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | try { |
| 68 | 68 | $data = $this->authenticatedGet(); |
| 69 | - } catch (ApiException|GuzzleException $e) { |
|
| 69 | + } catch (ApiException | GuzzleException $e) { |
|
| 70 | 70 | throw new ApiHttpException($e->getMessage()); |
| 71 | 71 | } |
| 72 | 72 | $collectedRows[] = $data['data']; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | { |
| 62 | 62 | try { |
| 63 | 63 | $data = $this->authenticatedGet(); |
| 64 | - } catch (ApiException|GuzzleException $e) { |
|
| 64 | + } catch (ApiException | GuzzleException $e) { |
|
| 65 | 65 | throw new ApiHttpException($e->getMessage()); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | { |
| 60 | 60 | try { |
| 61 | 61 | $data = $this->authenticatedGet(); |
| 62 | - } catch (ApiException|GuzzleException $e) { |
|
| 62 | + } catch (ApiException | GuzzleException $e) { |
|
| 63 | 63 | throw new ApiHttpException($e->getMessage()); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $this->setParameters($parameters); |
| 69 | 69 | try { |
| 70 | 70 | $data = $this->authenticatedGet(); |
| 71 | - } catch (ApiException|GuzzleException $e) { |
|
| 71 | + } catch (ApiException | GuzzleException $e) { |
|
| 72 | 72 | throw new ApiHttpException($e->getMessage()); |
| 73 | 73 | } |
| 74 | 74 | $collectedRows[] = $data['data']; |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | try { |
| 68 | 68 | $data = $this->authenticatedGet(); |
| 69 | - } catch (ApiException|GuzzleException $e) { |
|
| 69 | + } catch (ApiException | GuzzleException $e) { |
|
| 70 | 70 | throw new ApiHttpException($e->getMessage()); |
| 71 | 71 | } |
| 72 | 72 | $collectedRows[] = $data['data']; |
@@ -66,10 +66,10 @@ |
||
| 66 | 66 | Log::debug(sprintf('Now in %s', __METHOD__)); |
| 67 | 67 | try { |
| 68 | 68 | $data = $this->authenticatedPost(); |
| 69 | - } catch (ApiException|GuzzleException $e) { |
|
| 69 | + } catch (ApiException | GuzzleException $e) { |
|
| 70 | 70 | throw new ApiHttpException($e->getMessage()); |
| 71 | 71 | } |
| 72 | - if(isset($data['message']) && self::VALIDATION_ERROR_MSG === $data['message']) { |
|
| 72 | + if (isset($data['message']) && self::VALIDATION_ERROR_MSG === $data['message']) { |
|
| 73 | 73 | return new ValidationErrorResponse($data['errors']); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | { |
| 60 | 60 | try { |
| 61 | 61 | $data = $this->authenticatedGet(); |
| 62 | - } catch (ApiException|GuzzleException $e) { |
|
| 62 | + } catch (ApiException | GuzzleException $e) { |
|
| 63 | 63 | throw new ApiHttpException($e->getMessage()); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $this->setParameters($parameters); |
| 81 | 81 | try { |
| 82 | 82 | $data = $this->authenticatedGet(); |
| 83 | - } catch (ApiException|GuzzleException $e) { |
|
| 83 | + } catch (ApiException | GuzzleException $e) { |
|
| 84 | 84 | throw new ApiHttpException($e->getMessage()); |
| 85 | 85 | } |
| 86 | 86 | $collectedRows[] = $data['data']; |