Completed
Push — master ( 294c9f...2feccd )
by Maxence
01:43
created
lib/Platform/ElasticSearchPlatform.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
 	public function getConfiguration() {
101 101
 
102 102
 		$parsedHost = parse_url($this->configService->getElasticHost());
103
-		$safeHost = $parsedHost['scheme'] . '://';
103
+		$safeHost = $parsedHost['scheme'].'://';
104 104
 		if (array_key_exists('user', $parsedHost)) {
105
-			$safeHost .= $parsedHost['user'] . ':' . '********' . '@';
105
+			$safeHost .= $parsedHost['user'].':'.'********'.'@';
106 106
 		}
107 107
 		$safeHost .= $parsedHost['host'];
108
-		$safeHost .= ':' . $parsedHost['port'];
108
+		$safeHost .= ':'.$parsedHost['port'];
109 109
 
110 110
 		return [
111 111
 			'elastic_host'  => $safeHost,
@@ -240,12 +240,12 @@  discard block
 block discarded – undo
240 240
 	public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) {
241 241
 
242 242
 		$this->updateRunner('indexDocument');
243
-		$this->outputRunner(' . Indexing: ' . $document->getTitle());
243
+		$this->outputRunner(' . Indexing: '.$document->getTitle());
244 244
 
245 245
 		try {
246 246
 			$result =
247 247
 				$this->indexService->indexDocument($this, $this->client, $provider, $document);
248
-			$this->outputRunner('  result: ' . json_encode($result));
248
+			$this->outputRunner('  result: '.json_encode($result));
249 249
 
250 250
 			return $this->indexService->parseIndexResult($document->getIndex(), $result);
251 251
 		} catch (Exception $e) {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 		$index->setMessage(json_encode($message));
279 279
 
280 280
 		$result = $this->indexService->indexDocument($this, $this->client, $provider, $document);
281
-		$this->outputRunner('  result with no content: ' . json_encode($result));
281
+		$this->outputRunner('  result with no content: '.json_encode($result));
282 282
 
283 283
 		return $this->indexService->parseIndexResult($document->getIndex(), $result);
284 284
 	}
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 				echo "Max retries!";
332 332
 			}
333 333
 		} catch (Exception $e) {
334
-			echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n";
334
+			echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n";
335 335
 		}
336 336
 	}
337 337
 
Please login to merge, or discard this patch.