Completed
Push — master ( de5a63...939da6 )
by Maxence
01:50
created
appinfo/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
 
27 27
 namespace OCA\FullTextSearch_ElasticSearch\AppInfo;
28 28
 
29
-$composerDir = __DIR__ . '/../vendor/';
29
+$composerDir = __DIR__.'/../vendor/';
30 30
 
31
-if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) {
32
-	require_once $composerDir . 'autoload.php';
31
+if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) {
32
+	require_once $composerDir.'autoload.php';
33 33
 }
34 34
 
Please login to merge, or discard this patch.
appinfo/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
 
27 27
 namespace OCA\FullTextSearch_ElasticSearch\AppInfo;
28 28
 
29
-require_once __DIR__ . '/autoload.php';
29
+require_once __DIR__.'/autoload.php';
30 30
 
31 31
 new Application();
Please login to merge, or discard this patch.
lib/Service/IndexMappingService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			'index' =>
76 76
 				[
77 77
 					'index' => $this->configService->getElasticIndex(),
78
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
78
+					'id'    => $document->getProviderId().':'.$document->getId(),
79 79
 					'type'  => 'standard',
80 80
 					'body'  => $this->generateIndexBody($document)
81 81
 				]
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 			'index' =>
106 106
 				[
107 107
 					'index' => $this->configService->getElasticIndex(),
108
-					'id'    => $document->getProviderId() . ':' . $document->getId(),
108
+					'id'    => $document->getProviderId().':'.$document->getId(),
109 109
 					'type'  => 'standard',
110 110
 					'body'  => ['doc' => $this->generateIndexBody($document)]
111 111
 				]
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 			'index' =>
134 134
 				[
135 135
 					'index' => $this->configService->getElasticIndex(),
136
-					'id'    => $providerId . ':' . $documentId,
136
+					'id'    => $providerId.':'.$documentId,
137 137
 					'type'  => 'standard'
138 138
 				]
139 139
 		];
Please login to merge, or discard this patch.
lib/Platform/ElasticSearchPlatform.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@
 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
 		}
Please login to merge, or discard this patch.
lib/Service/SearchService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 			$result = $client->search($query['params']);
117 117
 		} catch (Exception $e) {
118 118
 			$this->miscService->log(
119
-				'debug - request: ' . json_encode($searchResult->getRequest()) . '   - query: '
119
+				'debug - request: '.json_encode($searchResult->getRequest()).'   - query: '
120 120
 				. json_encode($query)
121 121
 			);
122 122
 			throw $e;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
 	/**
191 191
 	 * @param ISearchResult $searchResult
192
-	 * @param array $result
192
+	 * @param callable $result
193 193
 	 */
194 194
 	private function updateSearchResult(ISearchResult $searchResult, array $result) {
195 195
 		$searchResult->setRawResult(json_encode($result));
Please login to merge, or discard this patch.
lib/Service/SearchMappingService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	): array {
270 270
 		$parts = array_map(
271 271
 			function($value) {
272
-				return 'parts.' . $value;
272
+				return 'parts.'.$value;
273 273
 			}, $request->getParts()
274 274
 		);
275 275
 		$fields = array_merge(['content', 'title'], $request->getFields(), $parts);
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
 		foreach ($request->getWildcardFields() as $field) {
285 285
 			if (!$this->fieldIsOutLimit($request, $field)) {
286
-				$queryFields[] = ['wildcard' => [$field => '*' . $content->getWord() . '*']];
286
+				$queryFields[] = ['wildcard' => [$field => '*'.$content->getWord().'*']];
287 287
 			}
288 288
 		}
289 289
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 		return [
376 376
 			'index' => $this->configService->getElasticIndex(),
377 377
 			'type'  => 'standard',
378
-			'id'    => $providerId . ':' . $documentId
378
+			'id'    => $providerId.':'.$documentId
379 379
 		];
380 380
 	}
381 381
 
Please login to merge, or discard this patch.