Skip to content

Commit 1de6dce

Browse files
Fixed CS
1 parent 4310844 commit 1de6dce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LoggerPlugin.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public function __construct(LoggerInterface $logger, Formatter $formatter = null
3131

3232
protected function doHandleRequest(RequestInterface $request, callable $next, callable $first)
3333
{
34-
$start = hrtime(true)/1E6;
34+
$start = hrtime(true) / 1E6;
3535
$this->logger->info(sprintf("Sending request:\n%s", $this->formatter->formatRequest($request)), ['request' => $request]);
3636

3737
return $next($request)->then(function (ResponseInterface $response) use ($request, $start) {
38-
$milliseconds = (int) round(hrtime(true)/1E6 - $start);
38+
$milliseconds = (int) round(hrtime(true) / 1E6 - $start);
3939
$this->logger->info(
4040
sprintf("Received response:\n%s\n\nfor request:\n%s", $this->formatter->formatResponse($response), $this->formatter->formatRequest($request)),
4141
[
@@ -47,7 +47,7 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
4747

4848
return $response;
4949
}, function (Exception $exception) use ($request, $start) {
50-
$milliseconds = (int) round((hrtime(true)/1E6 - $start));
50+
$milliseconds = (int) round((hrtime(true) / 1E6 - $start));
5151
if ($exception instanceof Exception\HttpException) {
5252
$this->logger->error(
5353
sprintf("Error:\n%s\nwith response:\n%s\n\nwhen sending request:\n%s", $exception->getMessage(), $this->formatter->formatResponse($exception->getResponse()), $this->formatter->formatRequest($request)),

0 commit comments

Comments
 (0)