Skip to content

Commit

Permalink
cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Apr 2, 2024
1 parent 966b6e1 commit abde230
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Api/BlobApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public function setOAuth2Token($oauthIDPUrl, $clientID, $clientSecret): void
$tokenUrl = $this->config['token_endpoint'];
$response = $client->post(
$tokenUrl, [
'auth' => [$clientID, $clientSecret],
'form_params' => ['grant_type' => 'client_credentials'],
]);
'auth' => [$clientID, $clientSecret],
'form_params' => ['grant_type' => 'client_credentials'],
]);
$data = (string) $response->getBody();
$json = json_decode($data, true, 512, JSON_THROW_ON_ERROR);

Expand Down Expand Up @@ -573,9 +573,9 @@ public function patchFileByIdentifier(string $identifier, string $fileName = '',
// https://github.com/digital-blueprint/relay-blob-bundle/blob/main/doc/api.md
try {
$options['headers'][] = [
'Accept' => 'application/ld+json',
'HTTP_ACCEPT' => 'application/ld+json',
'Content-Type' => 'application/json',
'Accept' => 'application/ld+json',
'HTTP_ACCEPT' => 'application/ld+json',
'Content-Type' => 'application/json',
];
$r = $this->request('PATCH', $url, $options);
} catch (\Exception $e) {
Expand Down

0 comments on commit abde230

Please sign in to comment.