Skip to content

Commit

Permalink
Fixup issues reported by phpcsfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Jun 24, 2024
1 parent 8e805d8 commit f7c46da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Log/DefaultLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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
Expand Down

0 comments on commit f7c46da

Please sign in to comment.