From f7c46dad53fc4385dcb8e9ea28f443bb2b944a85 Mon Sep 17 00:00:00 2001 From: Peter Csajtai Date: Mon, 24 Jun 2024 11:28:01 +0200 Subject: [PATCH] Fixup issues reported by phpcsfixer --- src/Log/DefaultLogger.php | 2 +- src/Utils.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Log/DefaultLogger.php b/src/Log/DefaultLogger.php index 61e0747..44f30f4 100644 --- a/src/Log/DefaultLogger.php +++ b/src/Log/DefaultLogger.php @@ -62,7 +62,7 @@ public function log($level, $message, array $context = []): void private static function logMsg(int $level, string|Stringable $message, array $context = []): void { $date = new DateTimeImmutable(); - $context['timestamp'] = $date->format('Y-m-d\\TH:i:sP'); + $context['timestamp'] = $date->format('Y-m-d\TH:i:sP'); $context['level'] = LogLevel::asString($level); $final = self::interpolate('[{timestamp}] ConfigCat.{level}: [{event_id}] '.$message, $context); diff --git a/src/Utils.php b/src/Utils.php index a0c409b..eb16fdf 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -119,7 +119,7 @@ public static function dateTimeFromUnixTimeSeconds(float $timestamp): ?DateTimeI return null; } - $dateTime = DateTimeImmutable::createFromFormat('U\\.v', sprintf('%1.3F', $timestamp)); + $dateTime = DateTimeImmutable::createFromFormat('U\.v', sprintf('%1.3F', $timestamp)); if (!$dateTime) { return null; } @@ -131,7 +131,7 @@ public static function formatDateTimeISO(DateTimeInterface $dateTime): string { $timeOffset = $dateTime->getOffset(); - return $dateTime->format($timeOffset ? 'Y-m-d\\TH:i:s.vP' : 'Y-m-d\\TH:i:s.v\Z'); + return $dateTime->format($timeOffset ? 'Y-m-d\TH:i:s.vP' : 'Y-m-d\TH:i:s.v\Z'); } public static function isStringList(mixed $value): bool