@@ -124,7 +124,7 @@ |
||
| 124 | 124 | |
| 125 | 125 | if (null !== $this->logger) { |
| 126 | 126 | $ids = array_map( |
| 127 | - function (Document $doc) { |
|
| 127 | + function(Document $doc) { |
|
| 128 | 128 | return $doc->getId(); |
| 129 | 129 | }, |
| 130 | 130 | $documents |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function createClient(array $hosts, LoggerInterface $logger = null) |
| 20 | 20 | { |
| 21 | - $builder = ClientBuilder::create(); |
|
| 21 | + $builder = ClientBuilder::create(); |
|
| 22 | 22 | |
| 23 | 23 | $builder |
| 24 | 24 | ->setHosts($hosts) |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * @param array $documents |
|
| 164 | + * @param Document[] $documents |
|
| 165 | 165 | */ |
| 166 | 166 | public function putDocuments(array $documents) |
| 167 | 167 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * @param array|string $query Array that will be serialized or raw JSON. |
| 181 | 181 | * @param array $options |
| 182 | - * @return array |
|
| 182 | + * @return \Nimble\ElasticBundle\SearchResults |
|
| 183 | 183 | */ |
| 184 | 184 | public function search($query, array $options = []) |
| 185 | 185 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | protected function writeSuccessMessage(OutputInterface $output, $message = '') |
| 87 | 87 | { |
| 88 | - $output->writeln("\n" . '<success>✓</success> ' . $message); |
|
| 88 | + $output->writeln("\n".'<success>✓</success> '.$message); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -94,6 +94,6 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | protected function writeErrorMessage(OutputInterface $output, $message = '') |
| 96 | 96 | { |
| 97 | - $output->writeln("\n" . '<error>✗</error> ' . $message); |
|
| 97 | + $output->writeln("\n".'<error>✗</error> '.$message); |
|
| 98 | 98 | } |
| 99 | 99 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $configuration = new Configuration(); |
| 22 | 22 | $config = $this->processConfiguration($configuration, $configs); |
| 23 | 23 | |
| 24 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 24 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 25 | 25 | $loader->load('services.yml'); |
| 26 | 26 | |
| 27 | 27 | $this->processClients($config['default_client'], $config['clients'], $container); |