Completed
Push — master ( 942dfa...17580f )
by
unknown
17s
created
lib/Command/CollectionList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
 	 */
63 63
 	protected function execute(InputInterface $input, OutputInterface $output) {
64 64
 		$collections = $this->collectionService->getCollections();
65
-		$output->writeln('found ' . sizeof($collections) . ' collection(s)');
65
+		$output->writeln('found '.sizeof($collections).' collection(s)');
66 66
 
67 67
 		foreach ($this->collectionService->getCollections() as $collection) {
68
-			$output->writeln('- ' . (($collection === $this->configService->getInternalCollection()) ? '*' : '') . $collection);
68
+			$output->writeln('- '.(($collection === $this->configService->getInternalCollection()) ? '*' : '').$collection);
69 69
 		}
70 70
 
71 71
 		return 0;
Please login to merge, or discard this patch.
lib/Command/Reset.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
 		$helper = $this->getHelper('question');
85 85
 
86 86
 		$output->writeln('<error>WARNING! You are about to reset your indexed documents:</error>');
87
-		$output->writeln('- provider: <info>' . (($provider === '') ? 'ALL' : $provider) . '</info>');
88
-		$output->writeln('- collection: <info>' . (($collection === '') ? 'ALL' : $collection) . '</info>');
87
+		$output->writeln('- provider: <info>'.(($provider === '') ? 'ALL' : $provider).'</info>');
88
+		$output->writeln('- collection: <info>'.(($collection === '') ? 'ALL' : $collection).'</info>');
89 89
 		$output->writeln('');
90 90
 
91 91
 		$question = new ConfirmationQuestion(
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
 
103 103
 		$output->writeln('');
104 104
 		$output->writeln('<error>WARNING! This operation is not reversible.</error>');
105
-		$action = 'reset ' . (($provider === '') ? 'ALL' : $provider)
106
-			. ' ' . (($collection === '') ? 'ALL' : $collection);
105
+		$action = 'reset '.(($provider === '') ? 'ALL' : $provider)
106
+			. ' '.(($collection === '') ? 'ALL' : $collection);
107 107
 
108
-		$question = new Question('<comment>Please confirm this destructive operation by typing \'' . $action . '\'</comment>: ', '');
108
+		$question = new Question('<comment>Please confirm this destructive operation by typing \''.$action.'\'</comment>: ', '');
109 109
 
110 110
 		$helper = $this->getHelper('question');
111 111
 		$confirmation = $helper->ask($input, $output, $question);
Please login to merge, or discard this patch.
lib/Db/CoreRequestBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 	 */
203 203
 	private function limitToDBField(IQueryBuilder $qb, string $field, string $value) {
204 204
 		$expr = $qb->expr();
205
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
206
-		$field = $pf . $field;
205
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
206
+		$field = $pf.$field;
207 207
 
208 208
 		$qb->andWhere($expr->eq($field, $qb->createNamedParameter($value)));
209 209
 	}
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
 	 */
216 216
 	private function limitToDBFieldInt(IQueryBuilder $qb, string $field, int $value) {
217 217
 		$expr = $qb->expr();
218
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
219
-		$field = $pf . $field;
218
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
219
+		$field = $pf.$field;
220 220
 
221 221
 		$qb->andWhere($expr->eq($field, $qb->createNamedParameter($value)));
222 222
 	}
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
 	 */
230 230
 	private function limitToDBFieldArray(IQueryBuilder $qb, string $field, array $values) {
231 231
 		$expr = $qb->expr();
232
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
233
-		$field = $pf . $field;
232
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
233
+		$field = $pf.$field;
234 234
 
235 235
 		if (!is_array($values)) {
236 236
 			$values = [$values];
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
 	 */
251 251
 	protected function limitToQueuedIndexes(IQueryBuilder $qb) {
252 252
 		$expr = $qb->expr();
253
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
254
-		$qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK)));
253
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
254
+		$qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK)));
255 255
 	}
256 256
 
257 257
 }
Please login to merge, or discard this patch.
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(json_encode($this->configService->getConfig(), JSON_PRETTY_PRINT));
111 111
 		$output->writeln('');
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
 		}
183 183
 
184 184
 		$select = $this->configService->getAppValue(ConfigService::SEARCH_PLATFORM);
185
-		$output->writeln('- Search Platform:' . (($select === '') ? ' (none selected)' : ''));
185
+		$output->writeln('- Search Platform:'.(($select === '') ? ' (none selected)' : ''));
186 186
 
187 187
 		foreach ($platforms as $platformWrapper) {
188 188
 			$platform = $platformWrapper->getPlatform();
189 189
 			$selected = ($platformWrapper->getClass() === $select) ? '(Selected)' : '';
190
-			$output->writeln($platform->getName() . ' ' . $platformWrapper->getVersion() . ' ' . $selected);
190
+			$output->writeln($platform->getName().' '.$platformWrapper->getVersion().' '.$selected);
191 191
 			try {
192 192
 				echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
193 193
 			} catch (Exception $e) {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
 		foreach ($providers as $providerWrapper) {
220 220
 			$provider = $providerWrapper->getProvider();
221
-			$output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion());
221
+			$output->writeln($provider->getName().' '.$providerWrapper->getVersion());
222 222
 			echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
223 223
 			$output->writeln('');
224 224
 		}
Please login to merge, or discard this patch.
lib/Command/CollectionLink.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
 		parent::configure();
51 51
 		$this->setName('fulltextsearch:collection:link')
52 52
 			->setDescription('Link collection to a user')
53
-		    ->addArgument('collection', InputArgument::OPTIONAL, 'collection' , '')
54
-		    ->addArgument('userId', InputArgument::OPTIONAL, 'user to link a collection to', '')
53
+			->addArgument('collection', InputArgument::OPTIONAL, 'collection' , '')
54
+			->addArgument('userId', InputArgument::OPTIONAL, 'user to link a collection to', '')
55 55
 			->addOption('unlink', '', InputOption::VALUE_NONE, 'unlink collection');
56 56
 	}
57 57
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		parent::configure();
51 51
 		$this->setName('fulltextsearch:collection:link')
52 52
 			->setDescription('Link collection to a user')
53
-		    ->addArgument('collection', InputArgument::OPTIONAL, 'collection' , '')
53
+		    ->addArgument('collection', InputArgument::OPTIONAL, 'collection', '')
54 54
 		    ->addArgument('userId', InputArgument::OPTIONAL, 'user to link a collection to', '')
55 55
 			->addOption('unlink', '', InputOption::VALUE_NONE, 'unlink collection');
56 56
 	}
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
 				$output->writeln('no collection linked to any user');
72 72
 			}
73 73
 
74
-			foreach($links as $name => $userId) {
75
-				$output->writeln('- Collection <info>' . $name . '</info> linked to user <info>' . $userId . '</info>');
74
+			foreach ($links as $name => $userId) {
75
+				$output->writeln('- Collection <info>'.$name.'</info> linked to user <info>'.$userId.'</info>');
76 76
 			}
77 77
 
78 78
 			return 0;
Please login to merge, or discard this patch.
lib/Command/Index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 			/** do not get stuck while waiting interactive input */
169 169
 			try {
170 170
 				readline_callback_handler_install(
171
-					'', function () {
171
+					'', function() {
172 172
 				}
173 173
 				);
174 174
 			} catch (Throwable $t) {
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
 		$index = $error['index'];
573 573
 		$errorIndex = '';
574 574
 		if ($index !== null) {
575
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
575
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
576 576
 		}
577 577
 
578 578
 		$width = $this->terminal->getWidth() - 13;
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
 		$index = $result['index'];
625 625
 		$resultIndex = '';
626 626
 		if ($index !== null) {
627
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
627
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
628 628
 		}
629 629
 
630 630
 
Please login to merge, or discard this patch.
lib/Service/ProviderService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 		$provider = OC::$server->query((string)$providerId);
92 92
 		if (!($provider instanceof IFullTextSearchProvider)) {
93 93
 			throw new ProviderIsNotCompatibleException(
94
-				$providerId . ' is not a compatible IFullTextSearchProvider'
94
+				$providerId.' is not a compatible IFullTextSearchProvider'
95 95
 			);
96 96
 		}
97 97
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 			}
175 175
 		}
176 176
 
177
-		throw new ProviderDoesNotExistException('Provider \'' . $providerId . '\' does not exist');
177
+		throw new ProviderDoesNotExistException('Provider \''.$providerId.'\' does not exist');
178 178
 	}
179 179
 
180 180
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 			try {
237 237
 				$this->loadProvider($appId, $provider);
238 238
 			} catch (Exception $e) {
239
-				$this->logger->warning('Issue while loading Provider: ' . $appId . '/' . $provider, ['exception' => $e]);
239
+				$this->logger->warning('Issue while loading Provider: '.$appId.'/'.$provider, ['exception' => $e]);
240 240
 			}
241 241
 		}
242 242
 	}
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 			$knownProvider = $providerWrapper->getProvider();
254 254
 			if ($knownProvider->getId() === $provider->getId()) {
255 255
 				throw new ProviderIsNotUniqueException(
256
-					'FullTextSearchProvider ' . $provider->getId() . ' already exist'
256
+					'FullTextSearchProvider '.$provider->getId().' already exist'
257 257
 				);
258 258
 			}
259 259
 		}
Please login to merge, or discard this patch.