@@ -28,7 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | $transport = $serviceLocator->get($config['transport']); |
| 30 | 30 | |
| 31 | - return function ($class) use ($transport, $serializer) { |
|
| 31 | + return function($class) use ($transport, $serializer) { |
|
| 32 | 32 | $endpointClass = "\\Elasticsearch\\Endpoints\\$class"; |
| 33 | 33 | |
| 34 | 34 | if (in_array($class, ['Bulk', 'MSearch', 'MPercolate'])) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $params = $this->getConnectionParametersFromConfiguration($config); |
| 26 | 26 | $connectionFactory = new $factoryName($handler, $params, $serializer, $loggers['logger'], $loggers['tracer']); |
| 27 | 27 | |
| 28 | - if (! $connectionFactory instanceof ConnectionFactoryInterface) { |
|
| 28 | + if (!$connectionFactory instanceof ConnectionFactoryInterface) { |
|
| 29 | 29 | throw new ServiceNotCreatedException(sprintf( |
| 30 | 30 | "The '%s' class does not implements %s", |
| 31 | 31 | $factoryName, |