Completed
Push — master ( 7dc878...ccb0b4 )
by Maxence
30s queued 12s
created
lib/Service/IndexMappingService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 			'index' =>
81 81
 				[
82 82
 					'index' => $this->configService->getElasticIndex(),
83
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
83
+					'id'    => $document->getProviderId().':'.$document->getId(),
84 84
 					'body'  => $this->generateIndexBody($document)
85 85
 				]
86 86
 		];
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
 		$result = $client->index($index['index']);
91 91
 		if (!is_array($result)) {
92
-			throw new ReturnedTypeException('index should returns array, ' . json_encode($result) . ' returned');
92
+			throw new ReturnedTypeException('index should returns array, '.json_encode($result).' returned');
93 93
 		}
94 94
 
95 95
 		return $result;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 			'index' =>
111 111
 				[
112 112
 					'index' => $this->configService->getElasticIndex(),
113
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
113
+					'id'    => $document->getProviderId().':'.$document->getId(),
114 114
 					'body'  => ['doc' => $this->generateIndexBody($document)]
115 115
 				]
116 116
 		];
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			'index' =>
137 137
 				[
138 138
 					'index' => $this->configService->getElasticIndex(),
139
-					'id'    => $providerId . ':' . $documentId,
139
+					'id'    => $providerId.':'.$documentId,
140 140
 				]
141 141
 		];
142 142
 
Please login to merge, or discard this patch.