Completed
Pull Request — master (#116)
by
unknown
01:29
created
lib/Service/IndexMappingService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 			'index' =>
79 79
 				[
80 80
 					'index' => $this->configService->getElasticIndex(),
81
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
81
+					'id'    => $document->getProviderId().':'.$document->getId(),
82 82
 					'type'  => $this->configService->getElasticType(),
83 83
 					'body'  => $this->generateIndexBody($document)
84 84
 				]
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 			'index' =>
104 104
 				[
105 105
 					'index' => $this->configService->getElasticIndex(),
106
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
106
+					'id'    => $document->getProviderId().':'.$document->getId(),
107 107
 					'type'  => $this->configService->getElasticType(),
108 108
 					'body'  => ['doc' => $this->generateIndexBody($document)]
109 109
 				]
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 			'index' =>
131 131
 				[
132 132
 					'index' => $this->configService->getElasticIndex(),
133
-					'id'    => $providerId . ':' . $documentId,
133
+					'id'    => $providerId.':'.$documentId,
134 134
 					'type'  => $this->configService->getElasticType()
135 135
 				]
136 136
 		];
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
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 
289 289
 		foreach ($request->getWildcardFields() as $field) {
290 290
 			if (!$this->fieldIsOutLimit($request, $field)) {
291
-				$queryFields[] = ['wildcard' => [$field => '*' . $content->getWord() . '*']];
291
+				$queryFields[] = ['wildcard' => [$field => '*'.$content->getWord().'*']];
292 292
 			}
293 293
 		}
294 294
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 		return [
457 457
 			'index' => $this->configService->getElasticIndex(),
458 458
 			'type'  => $this->configService->getElasticType(),
459
-			'id'    => $providerId . ':' . $documentId
459
+			'id'    => $providerId.':'.$documentId
460 460
 		];
461 461
 	}
462 462
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 	private function getPartsFields(ISearchRequest $request) {
470 470
 		return array_map(
471 471
 			function($value) {
472
-				return 'parts.' . $value;
472
+				return 'parts.'.$value;
473 473
 			}, $request->getParts()
474 474
 		);
475 475
 	}
Please login to merge, or discard this patch.