Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp authored and github-actions[bot] committed Nov 16, 2022
1 parent 5f6fd76 commit 7db2996
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/EsClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 7db2996

Please sign in to comment.