Completed
Push — master ( e830a5...df6434 )
by Maxence
02:08
created
lib/Service/SearchService.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
 			try {
185 185
 				$rights->setCircles(Circles::joinedCircleIds($user->getUID()));
186 186
 			} catch (Exception $e) {
187
-				$this->miscService->log('Circles is set as enabled but: ' . $e->getMessage());
187
+				$this->miscService->log('Circles is set as enabled but: '.$e->getMessage());
188 188
 			}
189 189
 		}
190 190
 
Please login to merge, or discard this patch.
lib/Service/CliService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 			}
183 183
 		}
184 184
 
185
-		$this->display->setFormat(implode("\n", $format) . "\n");
185
+		$this->display->setFormat(implode("\n", $format)."\n");
186 186
 		$this->refreshInfo();
187 187
 		$this->display->start();
188 188
 	}
Please login to merge, or discard this patch.
lib/Command/Live.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 		$index = $result['index'];
515 515
 		$resultIndex = '';
516 516
 		if ($index !== null) {
517
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
517
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
518 518
 		}
519 519
 
520 520
 
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
 		$index = $error['index'];
572 572
 		$errorIndex = '';
573 573
 		if ($index !== null) {
574
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
574
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
575 575
 		}
576 576
 
577 577
 		$width = $this->terminal->getWidth() - 13;
Please login to merge, or discard this patch.
lib/Command/Index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 		$index = $error['index'];
593 593
 		$errorIndex = '';
594 594
 		if ($index !== null) {
595
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
595
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
596 596
 		}
597 597
 
598 598
 		$width = $this->terminal->getWidth() - 13;
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
 		$index = $result['index'];
645 645
 		$resultIndex = '';
646 646
 		if ($index !== null) {
647
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
647
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
648 648
 		}
649 649
 
650 650
 
Please login to merge, or discard this patch.
lib/Command/Check.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		}
101 101
 
102 102
 		$output->writeln(
103
-			'Full text search ' . $this->configService->getAppValue('installed_version')
103
+			'Full text search '.$this->configService->getAppValue('installed_version')
104 104
 		);
105 105
 		$output->writeln(' ');
106 106
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
 		$output->writeln('- Search Platform:');
175 175
 
176
-		$output->writeln($platform->getName() . ' ' . $wrapper->getVersion());
176
+		$output->writeln($platform->getName().' '.$wrapper->getVersion());
177 177
 		echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT);
178 178
 
179 179
 		$output->writeln(' ');
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
 		foreach ($providers as $providerWrapper) {
201 201
 			$provider = $providerWrapper->getProvider();
202
-			$output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion());
202
+			$output->writeln($provider->getName().' '.$providerWrapper->getVersion());
203 203
 			echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT);
204 204
 			$output->writeln('');
205 205
 		}
Please login to merge, or discard this patch.
lib/Service/ProviderService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$provider = \OC::$server->query((string)$providerId);
108 108
 		if (!($provider instanceof IFullTextSearchProvider)) {
109 109
 			throw new ProviderIsNotCompatibleException(
110
-				$providerId . ' is not a compatible IFullTextSearchProvider'
110
+				$providerId.' is not a compatible IFullTextSearchProvider'
111 111
 			);
112 112
 		}
113 113
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 			}
197 197
 		}
198 198
 
199
-		throw new ProviderDoesNotExistException('Provider \'' . $providerId . '\' does not exist');
199
+		throw new ProviderDoesNotExistException('Provider \''.$providerId.'\' does not exist');
200 200
 	}
201 201
 
202 202
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 			$knownProvider = $providerWrapper->getProvider();
285 285
 			if ($knownProvider->getId() === $provider->getId()) {
286 286
 				throw new ProviderIsNotUniqueException(
287
-					'FullTextSearchProvider ' . $provider->getId() . ' already exist'
287
+					'FullTextSearchProvider '.$provider->getId().' already exist'
288 288
 				);
289 289
 			}
290 290
 		}
Please login to merge, or discard this patch.
lib/Command/Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 			$output->write(' ', true);
216 216
 		}
217 217
 
218
-		$output->write($line . ' ', false);
218
+		$output->write($line.' ', false);
219 219
 	}
220 220
 
221 221
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 		$testProvider->setIndexOptions(new IndexOptions());
277 277
 		$indexableDocuments =
278 278
 			$testProvider->generateIndexableDocuments(TestService::DOCUMENT_USER1);
279
-		$this->output($output, '(' . sizeof($indexableDocuments) . ' items)', false);
279
+		$this->output($output, '('.sizeof($indexableDocuments).' items)', false);
280 280
 		$this->outputResult($output, true);
281 281
 	}
282 282
 
@@ -292,12 +292,12 @@  discard block
 block discarded – undo
292 292
 		$wrapper = $this->platformService->getPlatform();
293 293
 		$testPlatform = $wrapper->getPlatform();
294 294
 
295
-		$this->output($output, '(' . $testPlatform->getName() . ')', false);
295
+		$this->output($output, '('.$testPlatform->getName().')', false);
296 296
 		$this->outputResult($output, true);
297 297
 
298 298
 		$this->output($output, 'Testing search platform.');
299 299
 		if (!$testPlatform->testPlatform()) {
300
-			throw new Exception ('Search platform (' . $testPlatform->getName() . ') down ?');
300
+			throw new Exception('Search platform ('.$testPlatform->getName().') down ?');
301 301
 		}
302 302
 		$this->outputResult($output, true);
303 303
 
@@ -393,13 +393,13 @@  discard block
 block discarded – undo
393 393
 			);
394 394
 
395 395
 			$this->output(
396
-				$output, '(size: ' . $indexDocument->getContentSize() . ')', false
396
+				$output, '(size: '.$indexDocument->getContentSize().')', false
397 397
 			);
398 398
 			$this->outputResult($output, true);
399 399
 		} catch (Exception $e) {
400 400
 			throw new Exception(
401
-				"Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE
402
-				. "' from search platform: " . $e->getMessage()
401
+				"Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE
402
+				. "' from search platform: ".$e->getMessage()
403 403
 			);
404 404
 		}
405 405
 
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
 	) {
570 570
 		$this->output(
571 571
 			$output,
572
-			" - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ')
572
+			" - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ')
573 573
 		);
574 574
 		$request = new SearchRequest();
575 575
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
 		$this->output(
585 585
 			$output,
586
-			'(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')',
586
+			'(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')',
587 587
 			false
588 588
 		);
589 589
 		$this->compareSearchResult($searchResult, $expected);
@@ -647,12 +647,12 @@  discard block
 block discarded – undo
647 647
 	private function compareSearchResult(SearchResult $searchResult, array $entries) {
648 648
 		$documents = $searchResult->getDocuments();
649 649
 		if (sizeof($documents) !== sizeof($entries)) {
650
-			throw new \Exception('Unexpected SearchResult: ' . json_encode($searchResult));
650
+			throw new \Exception('Unexpected SearchResult: '.json_encode($searchResult));
651 651
 		}
652 652
 
653 653
 		foreach ($documents as $document) {
654 654
 			if (!in_array($document->getId(), $entries)) {
655
-				throw new \Exception('Unexpected Document: ' . json_encode($document));
655
+				throw new \Exception('Unexpected Document: '.json_encode($document));
656 656
 			}
657 657
 		}
658 658
 	}
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 	 * @throws InterruptException
666 666
 	 */
667 667
 	private function pause(OutputInterface $output, int $s) {
668
-		$this->output($output, 'Pausing ' . $s . ' seconds');
668
+		$this->output($output, 'Pausing '.$s.' seconds');
669 669
 
670 670
 		for ($i = 1; $i <= $s; $i++) {
671 671
 			if (time_nanosleep(1, 0) !== true) {
Please login to merge, or discard this patch.
lib/Command/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,13 +123,13 @@
 block discarded – undo
123 123
 	 */
124 124
 	private function displaySearchResult(ISearchResult $searchResult) {
125 125
 		/** @var SearchResult $searchResult */
126
-		echo '> ' . $searchResult->getProvider()
127
-								 ->getName() . "\n";
126
+		echo '> '.$searchResult->getProvider()
127
+								 ->getName()."\n";
128 128
 
129 129
 		/** @var IndexDocument[] $result */
130 130
 		$result = $searchResult->getDocuments();
131 131
 		foreach ($result as $document) {
132
-			echo ' - ' . $document->getId() . ' score:' . $document->getScore() . "\n";
132
+			echo ' - '.$document->getId().' score:'.$document->getScore()."\n";
133 133
 		}
134 134
 	}
135 135
 
Please login to merge, or discard this patch.
lib/Db/TickRequestBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,10 +108,10 @@
 block discarded – undo
108 108
 	 * @return Tick
109 109
 	 */
110 110
 	protected function parseTickSelectSql(array $data): Tick {
111
-		$tick = new Tick($data['source'], (int) $data['id']);
111
+		$tick = new Tick($data['source'], (int)$data['id']);
112 112
 		$tick->setData(json_decode($data['data'], true))
113
-			 ->setTick((int) $data['tick'])
114
-			 ->setFirstTick((int) $data['first_tick'])
113
+			 ->setTick((int)$data['tick'])
114
+			 ->setFirstTick((int)$data['first_tick'])
115 115
 			 ->setStatus($data['status'])
116 116
 			 ->setAction($data['action']);
117 117
 
Please login to merge, or discard this patch.