Skip to content

Commit

Permalink
Fix php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mads Jon Nielsen committed Mar 15, 2024
1 parent 36e74ec commit 05957bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/RequestLog/Data/RequestLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ public function log(LoggerInterface $logger)
'path' => $this->path,
'query_string' => $this->queryString,
'body' => [
'content' => $this->requestBody
'content' => $this->requestBody,
],
'cookies' => $this->requestCookies,
'headers' => $this->requestHeaders,
'method' => $this->method
'method' => $this->method,
],
'response' => [
'body' => [
'content' => $this->responseBody
'content' => $this->responseBody,
],
'cookies' => $this->responseCookies,
'headers' => $this->responseHeaders,
'status_code' => $this->status
]
'status_code' => $this->status,
],
],
'event' => [
'duration' => $this->executionTimeNs // In nanoseconds, see https://www.elastic.co/guide/en/ecs/current/ecs-event.html
'duration' => $this->executionTimeNs, // In nanoseconds, see https://www.elastic.co/guide/en/ecs/current/ecs-event.html
],
'log' => [
'type' => 'request-logs'
]
'type' => 'request-logs',
],
];

if($this->responseException !== null) {
Expand All @@ -72,7 +72,7 @@ public function log(LoggerInterface $logger)
}

$logger->debug(
sprintf("Timing for %s", $this->url),
sprintf('Timing for %s', $this->url),
$context
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/RequestLog/RequestLogServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public function register(): void
/**
* Bootstrap any application services.
*
* @return void
*
* @throws BindingResolutionException
*
* @return void
*/
public function boot(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/RequestLog/Utilities/SecurityUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static function getResponseCookiesWithMaskingApplied(array $cookies, $req
'path' => $cookie->getPath(),
'secure' => $cookie->isSecure(),
'httpOnly' => $cookie->isHttpOnly(),
'sameSite' => $cookie->getSameSite()
'sameSite' => $cookie->getSameSite(),
];
}

Expand Down

0 comments on commit 05957bc

Please sign in to comment.