Completed
Pull Request — master (#47)
by Maxence
01:59
created
lib/Service/SearchMappingService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 		$params['body']['query']['bool'] = $bool;
117 117
 		$params['body']['highlight'] = $this->generateSearchHighlighting($request);
118 118
 
119
-		$this->miscService->log('### ' . json_encode($params['body']['highlight']));
119
+		$this->miscService->log('### '.json_encode($params['body']['highlight']));
120 120
 		$this->improveSearchQuerying($request, $params['body']['query']);
121 121
 
122 122
 		return $params;
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
 		foreach ($request->getWildcardFields() as $field) {
282 282
 			if (!$this->fieldIsOutLimit($request, $field)) {
283
-				$queryFields[] = ['wildcard' => [$field => '*' . $content->getWord() . '*']];
283
+				$queryFields[] = ['wildcard' => [$field => '*'.$content->getWord().'*']];
284 284
 			}
285 285
 		}
286 286
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 		return [
382 382
 			'index' => $this->configService->getElasticIndex(),
383 383
 			'type'  => 'standard',
384
-			'id'    => $providerId . ':' . $documentId
384
+			'id'    => $providerId.':'.$documentId
385 385
 		];
386 386
 	}
387 387
 
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 	private function getPartsFields(ISearchRequest $request) {
395 395
 		return array_map(
396 396
 			function($value) {
397
-				return 'parts.' . $value;
397
+				return 'parts.'.$value;
398 398
 			}, $request->getParts()
399 399
 		);
400 400
 	}
Please login to merge, or discard this patch.