Skip to content

Commit

Permalink
Coding style fixes & adjusted log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Clavreul authored and VincentChalnot committed Jun 1, 2020
1 parent 5418c25 commit 01e5046
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Client/ApiClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
/*
* This file is part of the CleverAge/OAuthApiBundle package.
*
Expand Down Expand Up @@ -128,21 +129,21 @@ protected function getResponseData(
Request $request
): ?string {
$this->logger->debug(
"API Request",
"API Request: {$request->getMethod()} {$request->getUri()}",
[
'method' => $request->getMethod(),
'uri' => $request->getUri(),
'body' => (string)$request->getBody(),
'body' => (string) $request->getBody(),
]
);
try {
$response = $this->client->sendRequest($request);
} catch (HttpException $e) {
throw ApiRequestException::create((string)$request->getUri(), $e);
throw ApiRequestException::create((string) $request->getUri(), $e);
}
$body = (string)$response->getBody();
$body = (string) $response->getBody();
$this->logger->debug(
"API Response",
"API Response: {$request->getMethod()} {$response->getStatusCode()} {$request->getUri()}",
[
'method' => $request->getMethod(),
'uri' => $request->getUri(),
Expand Down

0 comments on commit 01e5046

Please sign in to comment.