Completed
Push — master ( 94b632...a799ec )
by Maxence
02:11
created
lib/Service/IndexService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
 	/**
109 109
 	 * @param Client $client
110
-	 * @param $providerId
110
+	 * @param string $providerId
111 111
 	 *
112 112
 	 * @throws ConfigurationException
113 113
 	 */
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
 	/**
193 193
 	 * @param Index $index
194
-	 * @param array $result
194
+	 * @param callable $result
195 195
 	 *
196 196
 	 * @return Index
197 197
 	 */
Please login to merge, or discard this patch.
lib/Platform/ElasticSearchPlatform.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
 
105 105
 		foreach ($hosts as $host) {
106 106
 			$parsedHost = parse_url($host);
107
-			$safeHost = $parsedHost['scheme'] . '://';
107
+			$safeHost = $parsedHost['scheme'].'://';
108 108
 			if (array_key_exists('user', $parsedHost)) {
109
-				$safeHost .= $parsedHost['user'] . ':' . '********' . '@';
109
+				$safeHost .= $parsedHost['user'].':'.'********'.'@';
110 110
 			}
111 111
 			$safeHost .= $parsedHost['host'];
112
-			$safeHost .= ':' . $parsedHost['port'];
112
+			$safeHost .= ':'.$parsedHost['port'];
113 113
 
114 114
 			$result[] = $safeHost;
115 115
 		}
@@ -264,13 +264,13 @@  discard block
 block discarded – undo
264 264
 	public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) {
265 265
 
266 266
 		$this->updateRunner('indexDocument');
267
-		$this->outputRunner(' . Indexing: ' . $document->getTitle());
267
+		$this->outputRunner(' . Indexing: '.$document->getTitle());
268 268
 
269 269
 		$document->initHash();
270 270
 
271 271
 		try {
272 272
 			$result = $this->indexService->indexDocument($this->client, $provider, $document);
273
-			$this->outputRunner('  result: ' . json_encode($result));
273
+			$this->outputRunner('  result: '.json_encode($result));
274 274
 
275 275
 			return $this->indexService->parseIndexResult($document->getIndex(), $result);
276 276
 		} catch (Exception $e) {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 		$index->setMessage(json_encode($message));
304 304
 
305 305
 		$result = $this->indexService->indexDocument($this->client, $provider, $document);
306
-		$this->outputRunner('  result with no content: ' . json_encode($result));
306
+		$this->outputRunner('  result with no content: '.json_encode($result));
307 307
 
308 308
 		return $this->indexService->parseIndexResult($document->getIndex(), $result);
309 309
 	}
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 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
 		}
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 		$query = [
111 111
 			'index' => 'my_index',
112 112
 			'type'  => 'standard',
113
-			'id'    => $providerId . ':' . $documentId
113
+			'id'    => $providerId.':'.$documentId
114 114
 		];
115 115
 
116 116
 		$result = $client->get($query);
Please login to merge, or discard this patch.