@@ -102,12 +102,12 @@ discard block |
||
102 | 102 | public function getConfiguration() { |
103 | 103 | |
104 | 104 | $parsedHost = parse_url($this->configService->getElasticHost()); |
105 | - $safeHost = $parsedHost['scheme'] . '://'; |
|
105 | + $safeHost = $parsedHost['scheme'].'://'; |
|
106 | 106 | if (array_key_exists('user', $parsedHost)) { |
107 | - $safeHost .= $parsedHost['user'] . ':' . '********' . '@'; |
|
107 | + $safeHost .= $parsedHost['user'].':'.'********'.'@'; |
|
108 | 108 | } |
109 | 109 | $safeHost .= $parsedHost['host']; |
110 | - $safeHost .= ':' . $parsedHost['port']; |
|
110 | + $safeHost .= ':'.$parsedHost['port']; |
|
111 | 111 | |
112 | 112 | return [ |
113 | 113 | 'elastic_host' => $safeHost, |
@@ -238,11 +238,11 @@ discard block |
||
238 | 238 | public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) { |
239 | 239 | |
240 | 240 | $this->updateRunner('indexDocument'); |
241 | - $this->outputRunner(' . Indexing: ' . $document->getTitle()); |
|
241 | + $this->outputRunner(' . Indexing: '.$document->getTitle()); |
|
242 | 242 | |
243 | 243 | try { |
244 | 244 | $result = $this->indexService->indexDocument($this->client, $provider, $document); |
245 | - $this->outputRunner(' result: ' . json_encode($result)); |
|
245 | + $this->outputRunner(' result: '.json_encode($result)); |
|
246 | 246 | |
247 | 247 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
248 | 248 | } catch (Exception $e) { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | $index->setMessage(json_encode($message)); |
276 | 276 | |
277 | 277 | $result = $this->indexService->indexDocument($this->client, $provider, $document); |
278 | - $this->outputRunner(' result with no content: ' . json_encode($result)); |
|
278 | + $this->outputRunner(' result with no content: '.json_encode($result)); |
|
279 | 279 | |
280 | 280 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
281 | 281 | } |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | echo "Max retries!"; |
331 | 331 | } |
332 | 332 | } catch (Exception $e) { |
333 | - echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n"; |
|
333 | + echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n"; |
|
334 | 334 | } |
335 | 335 | } |
336 | 336 |