@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | parent::configure(); |
| 51 | 51 | $this->setName('fulltextsearch:collection:link') |
| 52 | 52 | ->setDescription('Link collection to a user') |
| 53 | - ->addArgument('collection', InputArgument::OPTIONAL, 'collection' , '') |
|
| 53 | + ->addArgument('collection', InputArgument::OPTIONAL, 'collection', '') |
|
| 54 | 54 | ->addArgument('userId', InputArgument::OPTIONAL, 'user to link a collection to', '') |
| 55 | 55 | ->addOption('unlink', '', InputOption::VALUE_NONE, 'unlink collection'); |
| 56 | 56 | } |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | $output->writeln('no collection linked to any user'); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - foreach($links as $name => $userId) { |
|
| 75 | - $output->writeln('- Collection <info>' . $name . '</info> linked to user <info>' . $userId . '</info>'); |
|
| 74 | + foreach ($links as $name => $userId) { |
|
| 75 | + $output->writeln('- Collection <info>'.$name.'</info> linked to user <info>'.$userId.'</info>'); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | return 0; |
@@ -168,7 +168,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | use Psr\Container\ContainerInterface; |
| 31 | 31 | use Throwable; |
| 32 | 32 | |
| 33 | -if (file_exists($autoLoad = __DIR__ . '/../../vendor/autoload.php')) { |
|
| 33 | +if (file_exists($autoLoad = __DIR__.'/../../vendor/autoload.php')) { |
|
| 34 | 34 | include_once $autoLoad; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | return [ |
| 118 | 118 | 'id' => self::APP_ID, |
| 119 | 119 | 'order' => 5, |
| 120 | - 'href' => $urlGen->linkToRoute(self::APP_ID . '.Navigation.navigate'), |
|
| 120 | + 'href' => $urlGen->linkToRoute(self::APP_ID.'.Navigation.navigate'), |
|
| 121 | 121 | 'icon' => $urlGen->imagePath(self::APP_ID, 'fulltextsearch.svg'), |
| 122 | 122 | 'name' => \OC::$server->getL10NFactory()->get('fulltextsearch')->t('Search') |
| 123 | 123 | ]; |
@@ -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 | } |