Skip to content

Commit

Permalink
fix: linter style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jan 23, 2025
1 parent f1b9d12 commit 206b548
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Client/DefaultRegistrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
final class DefaultRegistrationService implements RegistrationService
{
private string $sdkName;

private string $sdkVersion;

private string $connectionId;

public function __construct(
Expand Down Expand Up @@ -61,7 +63,7 @@ public function register(iterable $strategyHandlers): bool
'appName' => $this->configuration->getAppName(),
'instanceId' => $this->configuration->getInstanceId(),
'sdkVersion' => $this->sdkName . ':' . $this->sdkVersion,
'strategies' => array_map(fn(StrategyHandler $strategyHandler): string => $strategyHandler->getStrategyName(), $strategyHandlers),
'strategies' => array_map(fn (StrategyHandler $strategyHandler): string => $strategyHandler->getStrategyName(), $strategyHandlers),
'started' => (new DateTimeImmutable())->format('c'),
'interval' => $this->configuration->getMetricsInterval(),
'platformName' => PHP_SAPI,
Expand Down
3 changes: 2 additions & 1 deletion src/Repository/DefaultUnleashRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public function __construct(
private string $sdkName = Unleash::SDK_NAME,
private string $sdkVersion = Unleash::SDK_VERSION,
private string $connectionId = Uuid::v4(),
) {}
) {
}

/**
* @throws ClientExceptionInterface
Expand Down

0 comments on commit 206b548

Please sign in to comment.