Completed
Push — master ( a2de35...036eb2 )
by Maxence
05:58 queued 02:33
created
lib/Service/IndexService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 		IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, string $userId,
166 166
 		IndexOptions $options
167 167
 	) {
168
-		$this->updateRunnerAction('generateIndex' . $provider->getName());
168
+		$this->updateRunnerAction('generateIndex'.$provider->getName());
169 169
 		$this->updateRunnerInfoArray(
170 170
 			[
171 171
 				'userId'          => $userId,
Please login to merge, or discard this patch.
lib/Service/TestService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	public function generateIndexDocumentContentLicense(IIndexOptions $options): IndexDocument {
84 84
 		$indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE);
85 85
 
86
-		$content = file_get_contents(__DIR__ . '/../../LICENSE');
86
+		$content = file_get_contents(__DIR__.'/../../LICENSE');
87 87
 		$indexDocument->setContent($content);
88 88
 
89 89
 		if ($options === null) {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 			$orig = call_user_func([$origIndex, $method]);
141 141
 			$compare = call_user_func([$compareIndex, $method]);
142 142
 			if ($orig !== $compare) {
143
-				throw new \Exception($method . '() orig:' . $orig . ' compare:' . $compare);
143
+				throw new \Exception($method.'() orig:'.$orig.' compare:'.$compare);
144 144
 
145 145
 			};
146 146
 		}
Please login to merge, or discard this patch.
lib/Service/PlatformService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		$platform = \OC::$server->query((string)$selected->getClass());
173 173
 		if (!($platform instanceof IFullTextSearchPlatform)) {
174 174
 			throw new PlatformIsNotCompatibleException(
175
-				$selected->getClass() . ' is not a compatible FullTextSearchPlatform'
175
+				$selected->getClass().' is not a compatible FullTextSearchPlatform'
176 176
 			);
177 177
 		}
178 178
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		}
205 205
 
206 206
 		throw new PlatformDoesNotExistException(
207
-			'FullTextSearchPlatform ' . $selected . ' is not available'
207
+			'FullTextSearchPlatform '.$selected.' is not available'
208 208
 		);
209 209
 	}
210 210
 
Please login to merge, or discard this patch.
appinfo/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 namespace OCA\FullTextSearch\AppInfo;
32 32
 
33 33
 
34
-$composerDir = __DIR__ . '/../vendor/';
34
+$composerDir = __DIR__.'/../vendor/';
35 35
 
36
-if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) {
37
-	require_once $composerDir . 'autoload.php';
36
+if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) {
37
+	require_once $composerDir.'autoload.php';
38 38
 }
39 39
 
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
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 use OCP\AppFramework\QueryException;
35 35
 
36 36
 
37
-require_once __DIR__ . '/autoload.php';
37
+require_once __DIR__.'/autoload.php';
38 38
 
39 39
 try {
40 40
 	$app = new Application();
Please login to merge, or discard this patch.
lib/Model/SearchRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 		$options = ['is', 'show'];
198 198
 		if (in_array($kw, $options)) {
199
-			$this->addOption($kw . '_' . $value, '1');
199
+			$this->addOption($kw.'_'.$value, '1');
200 200
 
201 201
 			return true;
202 202
 		}
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 		$valuedSubOptions = ['and'];
212 212
 		if (in_array($kw, $valuedSubOptions)) {
213 213
 			list($key, $value) = explode(':', $value, 2);
214
-			$this->addMultipleOption($kw . ':' . $key, $value);
214
+			$this->addMultipleOption($kw.':'.$key, $value);
215 215
 
216 216
 			return true;
217 217
 		}
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 		foreach ($ak as $source) {
524 524
 			$tags = $this->subTags[$source];
525 525
 			foreach ($tags as $tag) {
526
-				$subTags[] = $source . '_' . $tag;
526
+				$subTags[] = $source.'_'.$tag;
527 527
 			}
528 528
 		}
529 529
 
Please login to merge, or discard this patch.
lib/Cron/Index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 			$this->liveCycle();
101 101
 			$this->runner->stop();
102 102
 		} catch (Exception $e) {
103
-			$this->miscService->log('Exception while cronIndex: ' . get_class($e) . ' - ' . $e->getMessage());
103
+			$this->miscService->log('Exception while cronIndex: '.get_class($e).' - '.$e->getMessage());
104 104
 			$this->runner->exception($e->getMessage(), true);
105 105
 		}
106 106
 
@@ -164,6 +164,6 @@  discard block
 block discarded – undo
164 164
 	 *
165 165
 	 */
166 166
 	private function setLastErrReset() {
167
-		$this->configService->setAppValue(ConfigService::CRON_LAST_ERR_RESET, (string) time());
167
+		$this->configService->setAppValue(ConfigService::CRON_LAST_ERR_RESET, (string)time());
168 168
 	}
169 169
 }
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.