Skip to content

Commit 01e5046

Browse files
Valentin ClavreulVincentChalnot
Valentin Clavreul
authored andcommitted
Coding style fixes & adjusted log message
1 parent 5418c25 commit 01e5046

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Client/ApiClient.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23
/*
34
* This file is part of the CleverAge/OAuthApiBundle package.
45
*
@@ -128,21 +129,21 @@ protected function getResponseData(
128129
Request $request
129130
): ?string {
130131
$this->logger->debug(
131-
"API Request",
132+
"API Request: {$request->getMethod()} {$request->getUri()}",
132133
[
133134
'method' => $request->getMethod(),
134135
'uri' => $request->getUri(),
135-
'body' => (string)$request->getBody(),
136+
'body' => (string) $request->getBody(),
136137
]
137138
);
138139
try {
139140
$response = $this->client->sendRequest($request);
140141
} catch (HttpException $e) {
141-
throw ApiRequestException::create((string)$request->getUri(), $e);
142+
throw ApiRequestException::create((string) $request->getUri(), $e);
142143
}
143-
$body = (string)$response->getBody();
144+
$body = (string) $response->getBody();
144145
$this->logger->debug(
145-
"API Response",
146+
"API Response: {$request->getMethod()} {$response->getStatusCode()} {$request->getUri()}",
146147
[
147148
'method' => $request->getMethod(),
148149
'uri' => $request->getUri(),

0 commit comments

Comments
 (0)