Completed
Push — master ( 9c1042...057319 )
by Maxence
23s queued 12s
created
lib/Command/Check.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		}
106 106
 
107 107
 		$output->writeln(
108
-			'Full text search ' . $this->configService->getAppValue('installed_version')
108
+			'Full text search '.$this->configService->getAppValue('installed_version')
109 109
 		);
110 110
 		$output->writeln(' ');
111 111
 
@@ -181,12 +181,12 @@  discard block
 block discarded – undo
181 181
 		}
182 182
 
183 183
 		$select = $this->configService->getAppValue(ConfigService::SEARCH_PLATFORM);
184
-		$output->writeln('- Search Platform:' . (($select === '') ? ' (none selected)' : ''));
184
+		$output->writeln('- Search Platform:'.(($select === '') ? ' (none selected)' : ''));
185 185
 
186 186
 		foreach ($platforms as $platformWrapper) {
187 187
 			$platform = $platformWrapper->getPlatform();
188 188
 			$selected = ($platformWrapper->getClass() === $select) ? '(Selected)' : '';
189
-			$output->writeln($platform->getName() . ' ' . $platformWrapper->getVersion() . ' ' . $selected);
189
+			$output->writeln($platform->getName().' '.$platformWrapper->getVersion().' '.$selected);
190 190
 			try {
191 191
 				echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
192 192
 			} catch (Exception $e) {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
 		foreach ($providers as $providerWrapper) {
219 219
 			$provider = $providerWrapper->getProvider();
220
-			$output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion());
220
+			$output->writeln($provider->getName().' '.$providerWrapper->getVersion());
221 221
 			echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
222 222
 			$output->writeln('');
223 223
 		}
Please login to merge, or discard this patch.
lib/Search/UnifiedSearchProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 		foreach ($searchResult as $ftsSearch) {
185 185
 			foreach ($ftsSearch->getDocuments() as $document) {
186 186
 				$excerpts = $document->getExcerpts();
187
-				$title = '(' . $document->getProviderId() . ') ';
187
+				$title = '('.$document->getProviderId().') ';
188 188
 				if (empty($excerpts)) {
189 189
 					$title .= $document->getTitle();
190 190
 					$subline = '';
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
 			$circleManager = OC::$server->get(CirclesManager::class);
230 230
 			$circleManager->startsession();
231 231
 			$circleIds = array_map(
232
-				function (Circle $circle): string {
232
+				function(Circle $circle): string {
233 233
 					return $circle->getSingleId();
234 234
 				}, $circleManager->getCircles()
235 235
 			);
Please login to merge, or discard this patch.
lib/Service/IndexService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 		IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, string $userId,
156 156
 		IndexOptions $options
157 157
 	) {
158
-		$this->updateRunnerAction('generateIndex' . $provider->getName());
158
+		$this->updateRunnerAction('generateIndex'.$provider->getName());
159 159
 		$this->updateRunnerInfoArray(
160 160
 			[
161 161
 				'userId' => $userId,
Please login to merge, or discard this patch.
lib/Service/CollectionService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 		}
128 128
 
129 129
 		return array_map(
130
-			function (Index $index): array {
130
+			function(Index $index): array {
131 131
 				return $index->asSitemap($this->urlGenerator);
132 132
 			},
133 133
 			$this->indexesRequest->getQueuedIndexes($collection, false, $length)
Please login to merge, or discard this patch.
lib/Command/CollectionInit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 
119 119
 		$this->cliService->createPanel(
120 120
 			'collection', [
121
-							'┌─ Collection ' . $collection . ' ────',
121
+							'┌─ Collection '.$collection.' ────',
122 122
 							'│ ProviderId, UserId: <info>%providerId%</info> / <info>%userId%</info>',
123 123
 							'│ Chunk: <info>%chunkCurr:3s%</info>/<info>%chunkTotal%</info>',
124 124
 							'│ Document: <info>%documentCurr:6s%</info>/<info>%documentChunk%</info>',
Please login to merge, or discard this patch.
lib/Command/Index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -223,11 +223,11 @@  discard block
 block discarded – undo
223 223
 			/** do not get stuck while waiting interactive input */
224 224
 			try {
225 225
 				readline_callback_handler_install(
226
-					'', function () {
226
+					'', function() {
227 227
 				}
228 228
 				);
229 229
 			} catch (Throwable $t) {
230
-				$this->miscService->log($t->getMessage() . ' -- ' . $t->getTraceAsString());
230
+				$this->miscService->log($t->getMessage().' -- '.$t->getTraceAsString());
231 231
 				throw new Exception('Please install php-readline, or use --no-readline');
232 232
 			}
233 233
 		}
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 		$index = $error['index'];
644 644
 		$errorIndex = '';
645 645
 		if ($index !== null) {
646
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
646
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
647 647
 		}
648 648
 
649 649
 		$width = $this->terminal->getWidth() - 13;
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
 		$index = $result['index'];
696 696
 		$resultIndex = '';
697 697
 		if ($index !== null) {
698
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
698
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
699 699
 		}
700 700
 
701 701
 
Please login to merge, or discard this patch.
lib/Service/RunningService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	 * @return bool
182 182
 	 */
183 183
 	public function isAlreadyRunning(): bool {
184
-		$ttl = (int) $this->configService->getAppValue(ConfigService::TICK_TTL);
184
+		$ttl = (int)$this->configService->getAppValue(ConfigService::TICK_TTL);
185 185
 		$ticks = $this->tickRequest->getTicksByStatus('run');
186 186
 
187 187
 		$isAlreadyRunning = false;
@@ -215,23 +215,23 @@  discard block
 block discarded – undo
215 215
 	 * @param Tick $tick
216 216
 	 * @param string $action
217 217
 	 */
218
-	private function assignActionToTick(Tick &$tick, string $action) {
218
+	private function assignActionToTick(Tick & $tick, string $action) {
219 219
 		$now = microtime(true);
220 220
 		$preAction = $tick->getAction();
221 221
 
222 222
 		if ($preAction !== '') {
223
-			$preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0);
224
-			$preActionStart = $tick->getInfoFloat($preAction . 'Init', 0);
223
+			$preActionTotal = $tick->getInfoFloat($preAction.'Total', 0);
224
+			$preActionStart = $tick->getInfoFloat($preAction.'Init', 0);
225 225
 
226 226
 			if ($preActionStart > 0) {
227 227
 
228 228
 				$preActionTotal += ($now - $preActionStart);
229
-				$tick->setInfoFloat($preAction . 'Total', $preActionTotal);
230
-				$tick->unsetInfo($preAction . 'Init');
229
+				$tick->setInfoFloat($preAction.'Total', $preActionTotal);
230
+				$tick->unsetInfo($preAction.'Init');
231 231
 			}
232 232
 		}
233 233
 		$tick->setAction($action)
234
-			 ->setInfoFloat($action . 'Init', $now);
234
+			 ->setInfoFloat($action.'Init', $now);
235 235
 	}
236 236
 
237 237
 
Please login to merge, or discard this patch.
lib/Service/PlatformService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 			try {
118 118
 				$platform = \OCP\Server::get((string)$class);
119 119
 				if (!($platform instanceof IFullTextSearchPlatform)) {
120
-					$this->logger->warning($class . ' does not implement ' . IFullTextSearchPlatform::class);
120
+					$this->logger->warning($class.' does not implement '.IFullTextSearchPlatform::class);
121 121
 					continue;
122 122
 				}
123 123
 				
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 		$platform = OC::$server->query((string)$selected->getClass());
176 176
 		if (!($platform instanceof IFullTextSearchPlatform)) {
177 177
 			throw new PlatformIsNotCompatibleException(
178
-				$selected->getClass() . ' is not a compatible FullTextSearchPlatform'
178
+				$selected->getClass().' is not a compatible FullTextSearchPlatform'
179 179
 			);
180 180
 		}
181 181
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 		}
208 208
 
209 209
 		throw new PlatformDoesNotExistException(
210
-			'FullTextSearchPlatform ' . $selected . ' is not available'
210
+			'FullTextSearchPlatform '.$selected.' is not available'
211 211
 		);
212 212
 	}
213 213
 
Please login to merge, or discard this patch.