Completed
Push — master ( ddd9bb...8fb9f6 )
by John
26s queued 12s
created
lib/Command/Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 			$output->write(' ', true);
217 217
 		}
218 218
 
219
-		$output->write($line . ' ', false);
219
+		$output->write($line.' ', false);
220 220
 	}
221 221
 
222 222
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 		$testProvider->setIndexOptions(new IndexOptions());
278 278
 		$indexableDocuments =
279 279
 			$testProvider->generateIndexableDocuments(TestService::DOCUMENT_USER1, '');
280
-		$this->output($output, '(' . sizeof($indexableDocuments) . ' items)', false);
280
+		$this->output($output, '('.sizeof($indexableDocuments).' items)', false);
281 281
 		$this->outputResult($output, true);
282 282
 	}
283 283
 
@@ -293,12 +293,12 @@  discard block
 block discarded – undo
293 293
 		$wrapper = $this->platformService->getPlatform();
294 294
 		$testPlatform = $wrapper->getPlatform();
295 295
 
296
-		$this->output($output, '(' . $testPlatform->getName() . ')', false);
296
+		$this->output($output, '('.$testPlatform->getName().')', false);
297 297
 		$this->outputResult($output, true);
298 298
 
299 299
 		$this->output($output, 'Testing search platform.');
300 300
 		if (!$testPlatform->testPlatform()) {
301
-			throw new Exception ('Search platform (' . $testPlatform->getName() . ') down ?');
301
+			throw new Exception('Search platform ('.$testPlatform->getName().') down ?');
302 302
 		}
303 303
 		$this->outputResult($output, true);
304 304
 
@@ -395,13 +395,13 @@  discard block
 block discarded – undo
395 395
 			);
396 396
 
397 397
 			$this->output(
398
-				$output, '(size: ' . $indexDocument->getContentSize() . ')', false
398
+				$output, '(size: '.$indexDocument->getContentSize().')', false
399 399
 			);
400 400
 			$this->outputResult($output, true);
401 401
 		} catch (Exception $e) {
402 402
 			throw new Exception(
403
-				"Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE
404
-				. "' from search platform: " . $e->getMessage()
403
+				"Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE
404
+				. "' from search platform: ".$e->getMessage()
405 405
 			);
406 406
 		}
407 407
 
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
 	) {
572 572
 		$this->output(
573 573
 			$output,
574
-			" - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ')
574
+			" - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ')
575 575
 		);
576 576
 		$request = new SearchRequest();
577 577
 
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 
586 586
 		$this->output(
587 587
 			$output,
588
-			'(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')',
588
+			'(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')',
589 589
 			false
590 590
 		);
591 591
 		$this->compareSearchResult($searchResult, $expected);
@@ -649,12 +649,12 @@  discard block
 block discarded – undo
649 649
 	private function compareSearchResult(SearchResult $searchResult, array $entries) {
650 650
 		$documents = $searchResult->getDocuments();
651 651
 		if (sizeof($documents) !== sizeof($entries)) {
652
-			throw new Exception('Unexpected SearchResult: ' . json_encode($searchResult));
652
+			throw new Exception('Unexpected SearchResult: '.json_encode($searchResult));
653 653
 		}
654 654
 
655 655
 		foreach ($documents as $document) {
656 656
 			if (!in_array($document->getId(), $entries)) {
657
-				throw new Exception('Unexpected Document: ' . json_encode($document));
657
+				throw new Exception('Unexpected Document: '.json_encode($document));
658 658
 			}
659 659
 		}
660 660
 	}
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
 	 * @throws InterruptException
668 668
 	 */
669 669
 	private function pause(OutputInterface $output, int $s) {
670
-		$this->output($output, 'Pausing ' . $s . ' seconds');
670
+		$this->output($output, 'Pausing '.$s.' seconds');
671 671
 
672 672
 		for ($i = 1; $i <= $s; $i++) {
673 673
 			if (time_nanosleep(1, 0) !== true) {
Please login to merge, or discard this patch.
lib/Command/DocumentStatus.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,14 +128,14 @@  discard block
 block discarded – undo
128 128
 
129 129
 
130 130
 		if ($json) {
131
-			echo json_encode($index, JSON_PRETTY_PRINT) . "\n";
131
+			echo json_encode($index, JSON_PRETTY_PRINT)."\n";
132 132
 
133 133
 			return 0;
134 134
 		}
135 135
 
136 136
 		$status = $this->statusConvertToString($index->getStatus());
137 137
 		$desc = $this->statusAvailable[$status];
138
-		$output->writeln('current status: <info>' . $status . '</info> (' . $desc . ')');
138
+		$output->writeln('current status: <info>'.$status.'</info> ('.$desc.')');
139 139
 
140 140
 		return 0;
141 141
 	}
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 				return IIndex::INDEX_FAILED;
197 197
 		}
198 198
 
199
-		throw new Exception("Specify a valid status: " . implode(', ', array_keys($this->statusAvailable)));
199
+		throw new Exception("Specify a valid status: ".implode(', ', array_keys($this->statusAvailable)));
200 200
 	}
201 201
 
202 202
 }
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(' ');
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/AppInfo/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 use Psr\Container\ContainerInterface;
52 52
 use Throwable;
53 53
 
54
-require_once __DIR__ . '/../../vendor/autoload.php';
54
+require_once __DIR__.'/../../vendor/autoload.php';
55 55
 
56 56
 
57 57
 class Application extends App implements IBootstrap {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 		return [
140 140
 			'id'    => self::APP_ID,
141 141
 			'order' => 5,
142
-			'href'  => $urlGen->linkToRoute(self::APP_ID . '.Navigation.navigate'),
142
+			'href'  => $urlGen->linkToRoute(self::APP_ID.'.Navigation.navigate'),
143 143
 			'icon'  => $urlGen->imagePath(self::APP_ID, 'fulltextsearch.svg'),
144 144
 			'name'  => 'Search'
145 145
 		];
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/CollectionList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@
 block discarded – undo
74 74
 	 */
75 75
 	protected function execute(InputInterface $input, OutputInterface $output) {
76 76
 		$collections = $this->collectionService->getCollections();
77
-		$output->writeln('found ' . sizeof($collections) . ' collection(s)');
77
+		$output->writeln('found '.sizeof($collections).' collection(s)');
78 78
 
79 79
 		foreach ($this->collectionService->getCollections() as $collection) {
80
-			$output->writeln('- ' . $collection);
80
+			$output->writeln('- '.$collection);
81 81
 		}
82 82
 
83 83
 		return 0;
Please login to merge, or discard this patch.