Skip to content

Commit

Permalink
Fix variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 1, 2023
1 parent b9b358a commit ec18a6b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ClickhouseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ static function (Application $app): ClickhouseClient {
$appConfigRepository = $app->get(AppConfigRepositoryInterface::class);
$connectionConfig = $appConfigRepository->get('clickhouse.connection', []);

$clickhouse = new ClickhouseClientFactory($connectionConfig);
$clickhouseClientFactory = new ClickhouseClientFactory($connectionConfig);

return $clickhouse->create();
return $clickhouseClientFactory->create();
}
);

Expand All @@ -48,8 +48,8 @@ static function (Application $app): ClickhouseClient {
static function (Application $app): Migrator {
$client = $app->get(ClickhouseClient::class);
$filesystem = $app->get(Filesystem::class);
$configRepository = $app->get(AppConfigRepositoryInterface::class);
$table = $configRepository->get('clickhouse.migrations.table');
$appConfigRepository = $app->get(AppConfigRepositoryInterface::class);
$table = $appConfigRepository->get('clickhouse.migrations.table');

$repository = new MigrationRepository(
$client,
Expand All @@ -69,7 +69,7 @@ static function (Application $app): Migrator {
static function (Application $app): MigrationCreator {
return new MigrationCreator(
$app->get(Filesystem::class),
$app->basePath('stubs')
$app->basePath('stubs'),
);
}
);
Expand All @@ -87,7 +87,7 @@ private function configure(): void
if (!$this->app->configurationIsCached()) {
$this->mergeConfigFrom(
self::CONFIG_FILE_PATH,
'clickhouse'
'clickhouse',
);
}
}
Expand All @@ -111,7 +111,7 @@ private function registerPublishes(): void
[
self::CONFIG_FILE_PATH => $this->app->configPath('clickhouse.php'),
],
'config'
'config',
);
}
}
Expand Down

0 comments on commit ec18a6b

Please sign in to comment.