diff --git a/src/EsClientFactory.php b/src/EsClientFactory.php index 98eb4cf..6cd7ad4 100644 --- a/src/EsClientFactory.php +++ b/src/EsClientFactory.php @@ -31,27 +31,27 @@ public static function create(LoggerInterface $logger, array $configuration): Cl $builder->setBasicAuthentication($configuration['username'], $configuration['password']); } - if(isset($configuration['cloud_id'], $configuration['api_key'])){ + if (isset($configuration['cloud_id'], $configuration['api_key'])) { $builder ->setElasticCloudId($configuration['cloud_id']) ->setApiKey($configuration['api_key']); } - if(isset($configuration['ca_bundle'])){ + if (isset($configuration['ca_bundle'])) { $builder->setCABundle($configuration['ca_bundle']); } - if(isset($configuration['ssl_key']) && $configuration['ssl_cert']){ + if (isset($configuration['ssl_key']) && $configuration['ssl_cert']) { $builder ->setSSLKey($configuration['ssl_key'], $configuration['ssl_password'] ?? null) ->setSSLCert($configuration['ssl_cert'], $configuration['ssl_password'] ?? null); - if(isset($configuration['ssl_verification'])){ + if (isset($configuration['ssl_verification'])) { $builder->setSSLVerification($configuration['ssl_verification']); } } - if(isset($configuration['http_options'])){ + if (isset($configuration['http_options'])) { $builder->setHttpClientOptions($configuration['http_options']); }