@@ -162,10 +162,10 @@ |
||
| 162 | 162 | ?array $body = null) |
| 163 | 163 | { |
| 164 | 164 | $url = sprintf('%s/%s%s%s', |
| 165 | - $this->apiEndpoint, |
|
| 166 | - self::API_VERSION, |
|
| 167 | - $this->composePath($path), |
|
| 168 | - $this->composerQuery($query)); |
|
| 165 | + $this->apiEndpoint, |
|
| 166 | + self::API_VERSION, |
|
| 167 | + $this->composePath($path), |
|
| 168 | + $this->composerQuery($query)); |
|
| 169 | 169 | |
| 170 | 170 | return $this->performHttpCallToFullUrl($httpMethod, $url, $this->composeRequestBody($body)); |
| 171 | 171 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | /** @var Company $resource */ |
| 26 | 26 | $resource = parent::restRead(['companies', $this->client->getCompanyId()], |
| 27 | - ['api_key' => $this->client->getApiKey()]); |
|
| 27 | + ['api_key' => $this->client->getApiKey()]); |
|
| 28 | 28 | if (!is_a($resource, Company::class)) |
| 29 | 29 | { |
| 30 | 30 | throw new ClubCollectApiException('Expected a Company object, got a %s', get_class($resource)); |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | { |
| 30 | 30 | /** @var Import $resource */ |
| 31 | 31 | $resource = parent::restCreate(['imports'], |
| 32 | - ['api_key' => $this->client->getApiKey()], |
|
| 33 | - ['title' => $title, |
|
| 32 | + ['api_key' => $this->client->getApiKey()], |
|
| 33 | + ['title' => $title, |
|
| 34 | 34 | 'company_id' => $this->client->getCompanyId(), |
| 35 | 35 | 'expected_invoices_count' => $expectedInvoiceCount]); |
| 36 | 36 | if (!is_a($resource, Import::class)) |