Completed
Pull Request — master (#430)
by
unknown
02:43
created
lib/Platform/ElasticSearchPlatform.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -276,21 +276,21 @@
 block discarded – undo
276 276
 	 * @return array
277 277
 	 */
278 278
 	private function parseIndexErrorException(Exception $e): array {
279
-        // Remove leading ErrorMessage like: "400 Bad Request: " from ElasticSearch to make json_decode work again
280
-        $jsonexmsg = preg_replace('/^[^{]*/', '', $e->getMessage());
281
-        $arr = json_decode($jsonexmsg, true);
279
+		// Remove leading ErrorMessage like: "400 Bad Request: " from ElasticSearch to make json_decode work again
280
+		$jsonexmsg = preg_replace('/^[^{]*/', '', $e->getMessage());
281
+		$arr = json_decode($jsonexmsg, true);
282 282
 
283
-        if (!is_array($arr)) {
284
-            // If still parsing is impossible give a hint on what went wrong (parsing) in logs...
283
+		if (!is_array($arr)) {
284
+			// If still parsing is impossible give a hint on what went wrong (parsing) in logs...
285 285
 			$jsonerror = json_last_error_msg();
286
-            $this->logger->error(sprintf("parseIndexErrorException(%s): ex=%s", $jsonerror, $e->getMessage()));
286
+			$this->logger->error(sprintf("parseIndexErrorException(%s): ex=%s", $jsonerror, $e->getMessage()));
287 287
 
288
-            // Give a hint in the unknown error what went wrong
288
+			// Give a hint in the unknown error what went wrong
289 289
 			if(empty($jsonexmsg)) {
290 290
 				$jsonexmsg = $e->getMessage();
291 291
 			}
292 292
 			return ['error', sprintf('unknown error: "%s"', $jsonexmsg), ''];
293
-        }
293
+		}
294 294
 
295 295
 		if (empty($this->getArray('error', $arr))) {
296 296
 			return ['error', $e->getMessage(), ''];
Please login to merge, or discard this patch.