@@ -88,7 +88,7 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @param array $host |
|
| 91 | + * @param string $host |
|
| 92 | 92 | * |
| 93 | 93 | * @throws InvalidArgumentException |
| 94 | 94 | * @return array |
@@ -64,6 +64,9 @@ |
||
| 64 | 64 | ); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $factoryKey |
|
| 69 | + */ |
|
| 67 | 70 | private function createFactoryInConfig(ServiceLocatorInterface $serviceLocator, $handlerParams, $factoryKey) |
| 68 | 71 | { |
| 69 | 72 | if ($this->hasHandlerFactoryOption($handlerParams, $factoryKey)) { |
@@ -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, |