From 8bb61a15e4a5ce657116a604a8c8814bf212434c Mon Sep 17 00:00:00 2001 From: Hector Mendoza Jacobo Date: Wed, 25 Sep 2024 21:45:06 +0000 Subject: [PATCH] Fix style for LoggingTrait --- src/Logging/LoggingTrait.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Logging/LoggingTrait.php b/src/Logging/LoggingTrait.php index 8760a0ac3..f041aaf42 100644 --- a/src/Logging/LoggingTrait.php +++ b/src/Logging/LoggingTrait.php @@ -30,7 +30,7 @@ private function logRequest(LogEvent $event): void 'requestId' => $event->requestId ?? null, ]; - $debugEvent = array_filter($debugEvent, fn($value) => !is_null($value)); + $debugEvent = array_filter($debugEvent, fn ($value) => !is_null($value)); $jsonPayload = [ 'request.method' => $event->method, @@ -41,7 +41,7 @@ private function logRequest(LogEvent $event): void 'retryAttempt' => $event->retryAttempt ]; - $debugEvent['jsonPayload'] = array_filter($jsonPayload, fn($value) => !is_null($value)); + $debugEvent['jsonPayload'] = array_filter($jsonPayload, fn ($value) => !is_null($value)); $this->logger->debug((string) json_encode($debugEvent)); } @@ -60,10 +60,10 @@ private function logResponse(LogEvent $event): void ] ]; - $debugEvent = array_filter($debugEvent, fn($value) => !is_null($value)); + $debugEvent = array_filter($debugEvent, fn ($value) => !is_null($value)); $debugEvent['jsonPayload'] = array_filter( $debugEvent['jsonPayload'], - fn($value) => !is_null($value) + fn ($value) => !is_null($value) ); $this->logger->debug((string) json_encode($debugEvent)); @@ -77,10 +77,10 @@ private function logResponse(LogEvent $event): void ] ]; - $infoEvent = array_filter($infoEvent, fn($value) => !is_null($value)); + $infoEvent = array_filter($infoEvent, fn ($value) => !is_null($value)); $infoEvent['jsonPayload'] = array_filter( $infoEvent['jsonPayload'], - fn($value) => !is_null($value) + fn ($value) => !is_null($value) ); $this->logger->info((string) json_encode($infoEvent)); @@ -101,10 +101,10 @@ private function logStatus(LogEvent $event): void ] ]; - $infoEvent = array_filter($infoEvent, fn($value) => !is_null($value)); + $infoEvent = array_filter($infoEvent, fn ($value) => !is_null($value)); $infoEvent['jsonPayload'] = array_filter( $infoEvent['jsonPayload'], - fn($value) => !is_null($value) + fn ($value) => !is_null($value) ); $this->logger->info((string) json_encode($infoEvent));