@@ -106,12 +106,12 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | foreach ($hosts as $host) { |
| 108 | 108 | $parsedHost = parse_url($host); |
| 109 | - $safeHost = $parsedHost['scheme'] . '://'; |
|
| 109 | + $safeHost = $parsedHost['scheme'].'://'; |
|
| 110 | 110 | if (array_key_exists('user', $parsedHost)) { |
| 111 | - $safeHost .= $parsedHost['user'] . ':' . '********' . '@'; |
|
| 111 | + $safeHost .= $parsedHost['user'].':'.'********'.'@'; |
|
| 112 | 112 | } |
| 113 | 113 | $safeHost .= $parsedHost['host']; |
| 114 | - $safeHost .= ':' . $parsedHost['port']; |
|
| 114 | + $safeHost .= ':'.$parsedHost['port']; |
|
| 115 | 115 | |
| 116 | 116 | $result[] = $safeHost; |
| 117 | 117 | } |
@@ -245,13 +245,13 @@ discard block |
||
| 245 | 245 | public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) { |
| 246 | 246 | |
| 247 | 247 | $this->updateRunner('indexDocument'); |
| 248 | - $this->outputRunner(' . Indexing: ' . $document->getTitle()); |
|
| 248 | + $this->outputRunner(' . Indexing: '.$document->getTitle()); |
|
| 249 | 249 | |
| 250 | 250 | $document->initHash(); |
| 251 | 251 | |
| 252 | 252 | try { |
| 253 | 253 | $result = $this->indexService->indexDocument($this->client, $provider, $document); |
| 254 | - $this->outputRunner(' result: ' . json_encode($result)); |
|
| 254 | + $this->outputRunner(' result: '.json_encode($result)); |
|
| 255 | 255 | |
| 256 | 256 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
| 257 | 257 | } catch (Exception $e) { |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | $index->setMessage(json_encode($message)); |
| 285 | 285 | |
| 286 | 286 | $result = $this->indexService->indexDocument($this->client, $provider, $document); |
| 287 | - $this->outputRunner(' result with no content: ' . json_encode($result)); |
|
| 287 | + $this->outputRunner(' result with no content: '.json_encode($result)); |
|
| 288 | 288 | |
| 289 | 289 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
| 290 | 290 | } |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | echo "Max retries!"; |
| 340 | 340 | } |
| 341 | 341 | } catch (Exception $e) { |
| 342 | - echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n"; |
|
| 342 | + echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n"; |
|
| 343 | 343 | } |
| 344 | 344 | } |
| 345 | 345 | |