Completed
Push — master ( 64e519...bd8a31 )
by Maxence
03:45
created
lib/Platform/ElasticSearchPlatform.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.