@@ -128,14 +128,14 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | |
| 130 | 130 | if ($json) { |
| 131 | - echo json_encode($index, JSON_PRETTY_PRINT) . "\n"; |
|
| 131 | + echo json_encode($index, JSON_PRETTY_PRINT)."\n"; |
|
| 132 | 132 | |
| 133 | 133 | return 0; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | $status = $this->statusConvertToString($index->getStatus()); |
| 137 | 137 | $desc = $this->statusAvailable[$status]; |
| 138 | - $output->writeln('current status: <info>' . $status . '</info> (' . $desc . ')'); |
|
| 138 | + $output->writeln('current status: <info>'.$status.'</info> ('.$desc.')'); |
|
| 139 | 139 | |
| 140 | 140 | return 0; |
| 141 | 141 | } |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | return IIndex::INDEX_FAILED; |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | - throw new Exception("Specify a valid status: " . implode(', ', array_keys($this->statusAvailable))); |
|
| 199 | + throw new Exception("Specify a valid status: ".implode(', ', array_keys($this->statusAvailable))); |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | $output->writeln( |
| 108 | - 'Full text search ' . $this->configService->getAppValue('installed_version') |
|
| 108 | + 'Full text search '.$this->configService->getAppValue('installed_version') |
|
| 109 | 109 | ); |
| 110 | 110 | $output->writeln(' '); |
| 111 | 111 | |
@@ -181,12 +181,12 @@ discard block |
||
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | $select = $this->configService->getAppValue(ConfigService::SEARCH_PLATFORM); |
| 184 | - $output->writeln('- Search Platform:' . (($select === '') ? ' (none selected)' : '')); |
|
| 184 | + $output->writeln('- Search Platform:'.(($select === '') ? ' (none selected)' : '')); |
|
| 185 | 185 | |
| 186 | 186 | foreach ($platforms as $platformWrapper) { |
| 187 | 187 | $platform = $platformWrapper->getPlatform(); |
| 188 | 188 | $selected = ($platformWrapper->getClass() === $select) ? '(Selected)' : ''; |
| 189 | - $output->writeln($platform->getName() . ' ' . $platformWrapper->getVersion() . ' ' . $selected); |
|
| 189 | + $output->writeln($platform->getName().' '.$platformWrapper->getVersion().' '.$selected); |
|
| 190 | 190 | try { |
| 191 | 191 | echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
| 192 | 192 | } catch (Exception $e) { |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | foreach ($providers as $providerWrapper) { |
| 219 | 219 | $provider = $providerWrapper->getProvider(); |
| 220 | - $output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion()); |
|
| 220 | + $output->writeln($provider->getName().' '.$providerWrapper->getVersion()); |
|
| 221 | 221 | echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
| 222 | 222 | $output->writeln(''); |
| 223 | 223 | } |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | foreach ($searchResult as $ftsSearch) { |
| 185 | 185 | foreach ($ftsSearch->getDocuments() as $document) { |
| 186 | 186 | $excerpts = $document->getExcerpts(); |
| 187 | - $title = '(' . $document->getProviderId() . ') '; |
|
| 187 | + $title = '('.$document->getProviderId().') '; |
|
| 188 | 188 | if (empty($excerpts)) { |
| 189 | 189 | $title .= $document->getTitle(); |
| 190 | 190 | $subline = ''; |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | $circleManager = OC::$server->get(CirclesManager::class); |
| 230 | 230 | $circleManager->startsession(); |
| 231 | 231 | $circleIds = array_map( |
| 232 | - function (Circle $circle): string { |
|
| 232 | + function(Circle $circle): string { |
|
| 233 | 233 | return $circle->getSingleId(); |
| 234 | 234 | }, $circleManager->getCircles() |
| 235 | 235 | ); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | use Psr\Container\ContainerInterface; |
| 52 | 52 | use Throwable; |
| 53 | 53 | |
| 54 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
| 54 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | class Application extends App implements IBootstrap { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | return [ |
| 140 | 140 | 'id' => self::APP_ID, |
| 141 | 141 | 'order' => 5, |
| 142 | - 'href' => $urlGen->linkToRoute(self::APP_ID . '.Navigation.navigate'), |
|
| 142 | + 'href' => $urlGen->linkToRoute(self::APP_ID.'.Navigation.navigate'), |
|
| 143 | 143 | 'icon' => $urlGen->imagePath(self::APP_ID, 'fulltextsearch.svg'), |
| 144 | 144 | 'name' => 'Search' |
| 145 | 145 | ]; |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, string $userId, |
| 156 | 156 | IndexOptions $options |
| 157 | 157 | ) { |
| 158 | - $this->updateRunnerAction('generateIndex' . $provider->getName()); |
|
| 158 | + $this->updateRunnerAction('generateIndex'.$provider->getName()); |
|
| 159 | 159 | $this->updateRunnerInfoArray( |
| 160 | 160 | [ |
| 161 | 161 | 'userId' => $userId, |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | return array_map( |
| 130 | - function (Index $index): array { |
|
| 130 | + function(Index $index): array { |
|
| 131 | 131 | return $index->asSitemap($this->urlGenerator); |
| 132 | 132 | }, |
| 133 | 133 | $this->indexesRequest->getQueuedIndexes($collection, false, $length) |
@@ -74,10 +74,10 @@ |
||
| 74 | 74 | */ |
| 75 | 75 | protected function execute(InputInterface $input, OutputInterface $output) { |
| 76 | 76 | $collections = $this->collectionService->getCollections(); |
| 77 | - $output->writeln('found ' . sizeof($collections) . ' collection(s)'); |
|
| 77 | + $output->writeln('found '.sizeof($collections).' collection(s)'); |
|
| 78 | 78 | |
| 79 | 79 | foreach ($this->collectionService->getCollections() as $collection) { |
| 80 | - $output->writeln('- ' . $collection); |
|
| 80 | + $output->writeln('- '.$collection); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | return 0; |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | |
| 119 | 119 | $this->cliService->createPanel( |
| 120 | 120 | 'collection', [ |
| 121 | - '┌─ Collection ' . $collection . ' ────', |
|
| 121 | + '┌─ Collection '.$collection.' ────', |
|
| 122 | 122 | '│ ProviderId, UserId: <info>%providerId%</info> / <info>%userId%</info>', |
| 123 | 123 | '│ Chunk: <info>%chunkCurr:3s%</info>/<info>%chunkTotal%</info>', |
| 124 | 124 | '│ Document: <info>%documentCurr:6s%</info>/<info>%documentChunk%</info>', |