Completed
Push — master ( 0cdbd8...fb0474 )
by Maxence
02:54
created
lib/Service/SearchService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
 	/**
191 191
 	 * @param ISearchResult $searchResult
192
-	 * @param array $result
192
+	 * @param callable $result
193 193
 	 */
194 194
 	private function updateSearchResult(ISearchResult $searchResult, array $result) {
195 195
 		$searchResult->setRawResult(json_encode($result));
Please login to merge, or discard this patch.
lib/Service/SearchMappingService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	): array {
270 270
 		$parts = array_map(
271 271
 			function($value) {
272
-				return 'parts.' . $value;
272
+				return 'parts.'.$value;
273 273
 			}, $request->getParts()
274 274
 		);
275 275
 		$fields = array_merge(['content', 'title'], $request->getFields(), $parts);
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
 		foreach ($request->getWildcardFields() as $field) {
285 285
 			if (!$this->fieldIsOutLimit($request, $field)) {
286
-				$queryFields[] = ['wildcard' => [$field => '*' . $content->getWord() . '*']];
286
+				$queryFields[] = ['wildcard' => [$field => '*'.$content->getWord().'*']];
287 287
 			}
288 288
 		}
289 289
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 		return [
376 376
 			'index' => $this->configService->getElasticIndex(),
377 377
 			'type'  => 'standard',
378
-			'id'    => $providerId . ':' . $documentId
378
+			'id'    => $providerId.':'.$documentId
379 379
 		];
380 380
 	}
381 381
 
Please login to merge, or discard this patch.