@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | try { |
| 118 | 118 | $platform = \OCP\Server::get((string)$class); |
| 119 | 119 | if (!($platform instanceof IFullTextSearchPlatform)) { |
| 120 | - $this->logger->warning($class . ' does not implement ' . IFullTextSearchPlatform::class); |
|
| 120 | + $this->logger->warning($class.' does not implement '.IFullTextSearchPlatform::class); |
|
| 121 | 121 | continue; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $platform = OC::$server->query((string)$selected->getClass()); |
| 176 | 176 | if (!($platform instanceof IFullTextSearchPlatform)) { |
| 177 | 177 | throw new PlatformIsNotCompatibleException( |
| 178 | - $selected->getClass() . ' is not a compatible FullTextSearchPlatform' |
|
| 178 | + $selected->getClass().' is not a compatible FullTextSearchPlatform' |
|
| 179 | 179 | ); |
| 180 | 180 | } |
| 181 | 181 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | throw new PlatformDoesNotExistException( |
| 210 | - 'FullTextSearchPlatform ' . $selected . ' is not available' |
|
| 210 | + 'FullTextSearchPlatform '.$selected.' is not available' |
|
| 211 | 211 | ); |
| 212 | 212 | } |
| 213 | 213 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | use Psr\Container\ContainerInterface; |
| 52 | 52 | use Throwable; |
| 53 | 53 | |
| 54 | -if (file_exists($autoLoad = __DIR__ . '/../../vendor/autoload.php')) { |
|
| 54 | +if (file_exists($autoLoad = __DIR__.'/../../vendor/autoload.php')) { |
|
| 55 | 55 | include_once $autoLoad; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | return [ |
| 142 | 142 | 'id' => self::APP_ID, |
| 143 | 143 | 'order' => 5, |
| 144 | - 'href' => $urlGen->linkToRoute(self::APP_ID . '.Navigation.navigate'), |
|
| 144 | + 'href' => $urlGen->linkToRoute(self::APP_ID.'.Navigation.navigate'), |
|
| 145 | 145 | 'icon' => $urlGen->imagePath(self::APP_ID, 'fulltextsearch.svg'), |
| 146 | 146 | 'name' => 'Search' |
| 147 | 147 | ]; |
@@ -400,7 +400,7 @@ |
||
| 400 | 400 | foreach ($keys as $key) { |
| 401 | 401 | if (!array_key_exists($key, $arr)) { |
| 402 | 402 | throw new MalformedArrayException( |
| 403 | - 'source: ' . json_encode($arr) . ' - missing key: ' . $key |
|
| 403 | + 'source: '.json_encode($arr).' - missing key: '.$key |
|
| 404 | 404 | ); |
| 405 | 405 | } |
| 406 | 406 | } |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | */ |
| 147 | 147 | public function getAppValue(string $key): string { |
| 148 | 148 | return $this->config->getSystemValueString( |
| 149 | - Application::APP_ID . '.' . $key, |
|
| 149 | + Application::APP_ID.'.'.$key, |
|
| 150 | 150 | (string)$this->config->getAppValue(Application::APP_ID, |
| 151 | 151 | $key, |
| 152 | 152 | $this->defaults[$key] ?? '') |
@@ -62,10 +62,10 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | protected function execute(InputInterface $input, OutputInterface $output) { |
| 64 | 64 | $collections = $this->collectionService->getCollections(); |
| 65 | - $output->writeln('found ' . sizeof($collections) . ' collection(s)'); |
|
| 65 | + $output->writeln('found '.sizeof($collections).' collection(s)'); |
|
| 66 | 66 | |
| 67 | 67 | foreach ($this->collectionService->getCollections() as $collection) { |
| 68 | - $output->writeln('- ' . (($collection === $this->configService->getInternalCollection()) ? '*' : '') . $collection); |
|
| 68 | + $output->writeln('- '.(($collection === $this->configService->getInternalCollection()) ? '*' : '').$collection); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | return 0; |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | $helper = $this->getHelper('question'); |
| 85 | 85 | |
| 86 | 86 | $output->writeln('<error>WARNING! You are about to reset your indexed documents:</error>'); |
| 87 | - $output->writeln('- provider: <info>' . (($provider === '') ? 'ALL' : $provider) . '</info>'); |
|
| 88 | - $output->writeln('- collection: <info>' . (($collection === '') ? 'ALL' : $collection) . '</info>'); |
|
| 87 | + $output->writeln('- provider: <info>'.(($provider === '') ? 'ALL' : $provider).'</info>'); |
|
| 88 | + $output->writeln('- collection: <info>'.(($collection === '') ? 'ALL' : $collection).'</info>'); |
|
| 89 | 89 | $output->writeln(''); |
| 90 | 90 | |
| 91 | 91 | $question = new ConfirmationQuestion( |
@@ -102,10 +102,10 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $output->writeln(''); |
| 104 | 104 | $output->writeln('<error>WARNING! This operation is not reversible.</error>'); |
| 105 | - $action = 'reset ' . (($provider === '') ? 'ALL' : $provider) |
|
| 106 | - . ' ' . (($collection === '') ? 'ALL' : $collection); |
|
| 105 | + $action = 'reset '.(($provider === '') ? 'ALL' : $provider) |
|
| 106 | + . ' '.(($collection === '') ? 'ALL' : $collection); |
|
| 107 | 107 | |
| 108 | - $question = new Question('<comment>Please confirm this destructive operation by typing \'' . $action . '\'</comment>: ', ''); |
|
| 108 | + $question = new Question('<comment>Please confirm this destructive operation by typing \''.$action.'\'</comment>: ', ''); |
|
| 109 | 109 | |
| 110 | 110 | $helper = $this->getHelper('question'); |
| 111 | 111 | $confirmation = $helper->ask($input, $output, $question); |