Completed
Pull Request — master (#936)
by Maxence
19s
created
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/Command/Check.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 			return 0;
57 57
 		}
58 58
 
59
-		$output->writeln('Full text search ' . $this->appConfig->getAppValueString('installed_version'));
59
+		$output->writeln('Full text search '.$this->appConfig->getAppValueString('installed_version'));
60 60
 		$output->writeln(json_encode($this->configService->getConfig(), JSON_PRETTY_PRINT));
61 61
 		$output->writeln('');
62 62
 
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
 		}
133 133
 
134 134
 		$select = $this->appConfig->getAppValueString(ConfigLexicon::SEARCH_PLATFORM);
135
-		$output->writeln('- Search Platform:' . (($select === '') ? ' (none selected)' : ''));
135
+		$output->writeln('- Search Platform:'.(($select === '') ? ' (none selected)' : ''));
136 136
 
137 137
 		foreach ($platforms as $platformWrapper) {
138 138
 			$platform = $platformWrapper->getPlatform();
139 139
 			$selected = ($platformWrapper->getClass() === $select) ? '(Selected)' : '';
140
-			$output->writeln($platform->getName() . ' ' . $platformWrapper->getVersion() . ' ' . $selected);
140
+			$output->writeln($platform->getName().' '.$platformWrapper->getVersion().' '.$selected);
141 141
 			try {
142 142
 				echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
143 143
 			} catch (Exception $e) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
 		foreach ($providers as $providerWrapper) {
170 170
 			$provider = $providerWrapper->getProvider();
171
-			$output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion());
171
+			$output->writeln($provider->getName().' '.$providerWrapper->getVersion());
172 172
 			echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
173 173
 			$output->writeln('');
174 174
 		}
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
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	public function loadProvider(string $appId, string $providerId) {
74 74
 		$provider = OC::$server->query((string)$providerId);
75 75
 		if (!($provider instanceof IFullTextSearchProvider)) {
76
-			throw new ProviderIsNotCompatibleException($providerId . ' is not a compatible IFullTextSearchProvider');
76
+			throw new ProviderIsNotCompatibleException($providerId.' is not a compatible IFullTextSearchProvider');
77 77
 		}
78 78
 
79 79
 		$this->providerIdMustBeUnique($provider);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 			}
154 154
 		}
155 155
 
156
-		throw new ProviderDoesNotExistException('Provider \'' . $providerId . '\' does not exist');
156
+		throw new ProviderDoesNotExistException('Provider \''.$providerId.'\' does not exist');
157 157
 	}
158 158
 
159 159
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 			try {
215 215
 				$this->loadProvider($appId, $provider);
216 216
 			} catch (Exception $e) {
217
-				$this->logger->warning('Issue while loading Provider: ' . $appId . '/' . $provider, ['exception' => $e]);
217
+				$this->logger->warning('Issue while loading Provider: '.$appId.'/'.$provider, ['exception' => $e]);
218 218
 			}
219 219
 		}
220 220
 	}
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 			$knownProvider = $providerWrapper->getProvider();
232 232
 			if ($knownProvider->getId() === $provider->getId()) {
233 233
 				throw new ProviderIsNotUniqueException(
234
-					'FullTextSearchProvider ' . $provider->getId() . ' already exist'
234
+					'FullTextSearchProvider '.$provider->getId().' already exist'
235 235
 				);
236 236
 			}
237 237
 		}
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 	}
33 33
 
34 34
 	public function setConfig(array $save): void {
35
-		foreach(array_keys($save) as $k) {
36
-			switch($k) {
35
+		foreach (array_keys($save) as $k) {
36
+			switch ($k) {
37 37
 				case ConfigLexicon::APP_NAVIGATION:
38 38
 					$this->appConfig->setAppValueBool($k, $save[$k]);
39 39
 					break;
Please login to merge, or discard this patch.
lib/Service/LockService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 use OCP\Security\ISecureRandom;
17 17
 
18 18
 class LockService {
19
-	private const LOCK_TIMEOUT = 300;     // the final value will be LOCK_TIMEOUT+LOCK_PING_DELAY
19
+	private const LOCK_TIMEOUT = 300; // the final value will be LOCK_TIMEOUT+LOCK_PING_DELAY
20 20
 	private const LOCK_PING_DELAY = 10;
21 21
 
22 22
 	private string $lockId;
Please login to merge, or discard this patch.
lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 		return [
104 104
 			'id'    => self::APP_ID,
105 105
 			'order' => 5,
106
-			'href'  => $urlGen->linkToRoute(self::APP_ID . '.Navigation.navigate'),
106
+			'href'  => $urlGen->linkToRoute(self::APP_ID.'.Navigation.navigate'),
107 107
 			'icon'  => $urlGen->imagePath(self::APP_ID, 'fulltextsearch.svg'),
108 108
 			'name'  => \OC::$server->getL10NFactory()->get('fulltextsearch')->t('Search')
109 109
 		];
Please login to merge, or discard this patch.