Completed
Pull Request — master (#282)
by Maxence
15s
created
lib/Platform/ElasticSearchPlatform.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 							   ->setHosts($hosts)
396 396
 							   ->setRetries(3);
397 397
 
398
-            $this->configureAuthentication($cb, $hosts);
398
+			$this->configureAuthentication($cb, $hosts);
399 399
 
400 400
 			$this->client = $cb->build();
401 401
 		} catch (Exception $e) {
@@ -403,20 +403,20 @@  discard block
 block discarded – undo
403 403
 		}
404 404
 	}
405 405
 
406
-    /**
407
-     * setBasicAuthentication() on ClientBuilder if available, using list of hosts
408
-     */
409
-    private function configureAuthentication(ClientBuilder $cb, array $hosts): void {
410
-        foreach ($hosts as $host) {
411
-            $user = parse_url($host, PHP_URL_USER) ?? '';
412
-            $pass = parse_url($host, PHP_URL_PASS) ?? '';
413
-
414
-            if ($user !== '' || $pass !== '') {
415
-                $cb->setBasicAuthentication($user, $pass);
416
-                return;
417
-            }
418
-        }
419
-    }
406
+	/**
407
+	 * setBasicAuthentication() on ClientBuilder if available, using list of hosts
408
+	 */
409
+	private function configureAuthentication(ClientBuilder $cb, array $hosts): void {
410
+		foreach ($hosts as $host) {
411
+			$user = parse_url($host, PHP_URL_USER) ?? '';
412
+			$pass = parse_url($host, PHP_URL_PASS) ?? '';
413
+
414
+			if ($user !== '' || $pass !== '') {
415
+				$cb->setBasicAuthentication($user, $pass);
416
+				return;
417
+			}
418
+		}
419
+	}
420 420
 
421 421
 
422 422
 	/**
Please login to merge, or discard this patch.