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));