@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | throw new InvalidArgumentException(\sprintf('ClientFactory::create() expects array or string as first argument, %s given.', \gettype($servers))); |
34 | 34 | } |
35 | 35 | |
36 | - \set_error_handler(function ($type, $msg, $file, $line) { |
|
36 | + \set_error_handler(function($type, $msg, $file, $line) { |
|
37 | 37 | throw new \ErrorException($msg, 0, $type, $file, $line); |
38 | 38 | }); |
39 | 39 | try { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | $params = \preg_replace_callback( |
63 | 63 | '#^elasticsearch:(//)?(?:([^@]*+)@)?#', |
64 | - function ($m) use (&$username, &$password) { |
|
64 | + function($m) use (&$username, &$password) { |
|
65 | 65 | if (!empty($m[2])) { |
66 | 66 | list($username, $password) = \explode(':', $m[2], 2) + [1 => null]; |
67 | 67 | } |