Skip to content

Commit

Permalink
Update codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed May 17, 2024
1 parent f20a9ad commit fcbc4a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"symfony/http-kernel": "^6.1 || ^7.0"
},
"require-dev": {
"inspirum/coding-standard": "^1.4",
"inspirum/coding-standard": "^1.5",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"shipmonk/composer-dependency-analyser": "^1.5",
Expand Down
8 changes: 4 additions & 4 deletions src/BalikobotBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public function loadExtension(array $config, ContainerConfigurator $container, C
{
$services = $container->services();

$connections = $this->resolveConnections($config);
$connectionsNames = array_keys($connections);
$connections = $this->resolveConnections($config);
$connectionsNames = array_keys($connections);
$defaultConnectionName = $this->resolveDefaultConnectionName($connections, $config['default_connection'] ?? self::CONNECTION_DEFAULT);

$this->registerClients($services, $connections, $defaultConnectionName);
Expand Down Expand Up @@ -167,7 +167,7 @@ private function registerClientForConnection(ServicesConfigurator $services, arr
$defaultCurlRequesterServiceId = $this->serviceIdForConnection(DefaultCurlRequester::class, $name);
$services->set($defaultCurlRequesterServiceId, DefaultCurlRequester::class)->args([
'$apiUser' => $connection['api_user'],
'$apiKey' => $connection['api_key'],
'$apiKey' => $connection['api_key'],
]);

$requesterServiceId = $this->serviceIdForConnection(Requester::class, $name);
Expand Down Expand Up @@ -432,7 +432,7 @@ private function resolveConnections(array $config): array
if (count($connections) === 0) {
$connections[self::CONNECTION_DEFAULT] = [
'api_user' => $config['api_user'] ?? throw new RuntimeException('Missing "api_user" configuration'),
'api_key' => $config['api_key'] ?? throw new RuntimeException('Missing "api_key" configuration'),
'api_key' => $config['api_key'] ?? throw new RuntimeException('Missing "api_key" configuration'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/BalikobotBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private static function assertServiceContainerRequester(string $expectedUser, st
private static function getProperty(object $service, string $key): mixed
{
$requester = new ReflectionClass($service);
$property = $requester->getProperty($key);
$property = $requester->getProperty($key);

return $property->getValue($service);
}
Expand Down

0 comments on commit fcbc4a3

Please sign in to comment.