@@ -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,13 +238,13 @@ 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 | $document->initHash(); |
244 | 244 | |
245 | 245 | try { |
246 | 246 | $result = $this->indexService->indexDocument($this->client, $provider, $document); |
247 | - $this->outputRunner(' result: ' . json_encode($result)); |
|
247 | + $this->outputRunner(' result: '.json_encode($result)); |
|
248 | 248 | |
249 | 249 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
250 | 250 | } catch (Exception $e) { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | $index->setMessage(json_encode($message)); |
278 | 278 | |
279 | 279 | $result = $this->indexService->indexDocument($this->client, $provider, $document); |
280 | - $this->outputRunner(' result with no content: ' . json_encode($result)); |
|
280 | + $this->outputRunner(' result with no content: '.json_encode($result)); |
|
281 | 281 | |
282 | 282 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
283 | 283 | } |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | echo "Max retries!"; |
333 | 333 | } |
334 | 334 | } catch (Exception $e) { |
335 | - echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n"; |
|
335 | + echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n"; |
|
336 | 336 | } |
337 | 337 | } |
338 | 338 |