Completed
Push — master ( 30bc2b...fe4709 )
by Maxence
05:11
created
lib/Service/IndexService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 
158 158
 	/**
159 159
 	 * @param Index $index
160
-	 * @param array $result
160
+	 * @param callable $result
161 161
 	 *
162 162
 	 * @return Index
163 163
 	 */
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
 
89 89
 	/**
90
-	 * @param array $result
90
+	 * @param callable $result
91 91
 	 *
92 92
 	 * @return SearchResult
93 93
 	 */
Please login to merge, or discard this patch.
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,
@@ -230,12 +230,12 @@  discard block
 block discarded – undo
230 230
 	public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) {
231 231
 
232 232
 		$this->updateRunner('indexDocument');
233
-		$this->outputRunner(' . Indexing: ' . $document->getTitle());
233
+		$this->outputRunner(' . Indexing: '.$document->getTitle());
234 234
 
235 235
 		try {
236 236
 			$result =
237 237
 				$this->indexService->indexDocument($this->client, $provider, $document);
238
-			$this->outputRunner('  result: ' . json_encode($result));
238
+			$this->outputRunner('  result: '.json_encode($result));
239 239
 
240 240
 			return $this->indexService->parseIndexResult($document->getIndex(), $result);
241 241
 		} catch (Exception $e) {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 		$index->setMessage(json_encode($message));
269 269
 
270 270
 		$result = $this->indexService->indexDocument($this->client, $provider, $document);
271
-		$this->outputRunner('  result with no content: ' . json_encode($result));
271
+		$this->outputRunner('  result with no content: '.json_encode($result));
272 272
 
273 273
 		return $this->indexService->parseIndexResult($document->getIndex(), $result);
274 274
 	}
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 				echo "Max retries!";
322 322
 			}
323 323
 		} catch (Exception $e) {
324
-			echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n";
324
+			echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n";
325 325
 		}
326 326
 	}
327 327
 
Please login to merge, or discard this patch.