@@ -80,7 +80,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |