Completed
Push — master ( fa316c...3140f5 )
by Maxence
02:47 queued 31s
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
 					'body'  => $this->generateIndexBody($document)
83 83
 				]
84 84
 		];
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 			'index' =>
103 103
 				[
104 104
 					'index' => $this->configService->getElasticIndex(),
105
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
105
+					'id'    => $document->getProviderId().':'.$document->getId(),
106 106
 					'body'  => ['doc' => $this->generateIndexBody($document)]
107 107
 				]
108 108
 		];
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 			'index' =>
129 129
 				[
130 130
 					'index' => $this->configService->getElasticIndex(),
131
-					'id'    => $providerId . ':' . $documentId,
131
+					'id'    => $providerId.':'.$documentId,
132 132
 				]
133 133
 		];
134 134
 
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
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 
288 288
 		foreach ($request->getWildcardFields() as $field) {
289 289
 			if (!$this->fieldIsOutLimit($request, $field)) {
290
-				$queryFields[] = ['wildcard' => [$field => '*' . $content->getWord() . '*']];
290
+				$queryFields[] = ['wildcard' => [$field => '*'.$content->getWord().'*']];
291 291
 			}
292 292
 		}
293 293
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 	public function getDocumentQuery(string $providerId, string $documentId): array {
455 455
 		return [
456 456
 			'index' => $this->configService->getElasticIndex(),
457
-			'id'    => $providerId . ':' . $documentId
457
+			'id'    => $providerId.':'.$documentId
458 458
 		];
459 459
 	}
460 460
 
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 	private function getPartsFields(ISearchRequest $request) {
468 468
 		return array_map(
469 469
 			function($value) {
470
-				return 'parts.' . $value;
470
+				return 'parts.'.$value;
471 471
 			}, $request->getParts()
472 472
 		);
473 473
 	}
Please login to merge, or discard this patch.