@@ -238,18 +238,18 @@ |
||
| 238 | 238 | $preAction = $tick->getAction(); |
| 239 | 239 | |
| 240 | 240 | if ($preAction !== '') { |
| 241 | - $preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0); |
|
| 242 | - $preActionStart = $tick->getInfoFloat($preAction . 'Init', 0); |
|
| 241 | + $preActionTotal = $tick->getInfoFloat($preAction.'Total', 0); |
|
| 242 | + $preActionStart = $tick->getInfoFloat($preAction.'Init', 0); |
|
| 243 | 243 | |
| 244 | 244 | if ($preActionStart > 0) { |
| 245 | 245 | |
| 246 | 246 | $preActionTotal += ($now - $preActionStart); |
| 247 | - $tick->setInfoFloat($preAction . 'Total', $preActionTotal); |
|
| 248 | - $tick->unsetInfo($preAction . 'Init'); |
|
| 247 | + $tick->setInfoFloat($preAction.'Total', $preActionTotal); |
|
| 248 | + $tick->unsetInfo($preAction.'Init'); |
|
| 249 | 249 | } |
| 250 | 250 | } |
| 251 | 251 | $tick->setAction($action) |
| 252 | - ->setInfoFloat($action . 'Init', $now); |
|
| 252 | + ->setInfoFloat($action.'Init', $now); |
|
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | |
@@ -56,7 +56,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | public function setConfig(array $save): void { |
| 36 | - foreach(array_keys($save) as $k) { |
|
| 37 | - switch($k) { |
|
| 36 | + foreach (array_keys($save) as $k) { |
|
| 37 | + switch ($k) { |
|
| 38 | 38 | case ConfigLexicon::APP_NAVIGATION: |
| 39 | 39 | $this->appConfig->setAppValueBool($k, $save[$k]); |
| 40 | 40 | break; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | public function getAppValue(string $key): string { |
| 61 | - return $this->config->getSystemValueString(Application::APP_ID . '.' . $key, |
|
| 61 | + return $this->config->getSystemValueString(Application::APP_ID.'.'.$key, |
|
| 62 | 62 | (string)$this->appConfig->getAppValueString($key) |
| 63 | 63 | ); |
| 64 | 64 | } |