Completed
Push — master ( fc46e4...00b73c )
by Maxence
01:32
created
lib/Service/SearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 			$result = $client->search($query['params']);
85 85
 		} catch (Exception $e) {
86 86
 			$this->miscService->log(
87
-				'debug - request: ' . json_encode($request) . '   - query: ' . json_encode($query)
87
+				'debug - request: '.json_encode($request).'   - query: '.json_encode($query)
88 88
 			);
89 89
 			throw $e;
90 90
 		}
Please login to merge, or discard this patch.
lib/Service/SearchMappingService.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -344,8 +344,8 @@
 block discarded – undo
344 344
 
345 345
 
346 346
 	/**
347
-	 * @param $providerId
348
-	 * @param $documentId
347
+	 * @param string $providerId
348
+	 * @param string $documentId
349 349
 	 *
350 350
 	 * @return array
351 351
 	 * @throws ConfigurationException
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 	private function generateQueryContentFields(SearchRequest $request, QueryContent $content) {
254 254
 		$parts = array_map(
255 255
 			function($value) {
256
-				return 'parts.' . $value;
256
+				return 'parts.'.$value;
257 257
 			}, $request->getParts()
258 258
 		);
259 259
 		$fields = array_merge(['content', 'title'], $request->getFields(), $parts);
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
 		foreach ($request->getWildcardFields() as $field) {
269 269
 			if (!$this->fieldIsOutLimit($request, $field)) {
270
-				$queryFields[] = ['wildcard' => [$field => '*' . $content->getWord() . '*']];
270
+				$queryFields[] = ['wildcard' => [$field => '*'.$content->getWord().'*']];
271 271
 			}
272 272
 		}
273 273
 
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 		return [
355 355
 			'index' => $this->configService->getElasticIndex(),
356 356
 			'type'  => 'standard',
357
-			'id'    => $providerId . ':' . $documentId
357
+			'id'    => $providerId.':'.$documentId
358 358
 		];
359 359
 	}
360 360
 
Please login to merge, or discard this patch.