@@ -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>', |
@@ -223,11 +223,11 @@ discard block |
||
223 | 223 | /** do not get stuck while waiting interactive input */ |
224 | 224 | try { |
225 | 225 | readline_callback_handler_install( |
226 | - '', function () { |
|
226 | + '', function() { |
|
227 | 227 | } |
228 | 228 | ); |
229 | 229 | } catch (Throwable $t) { |
230 | - $this->miscService->log($t->getMessage() . ' -- ' . $t->getTraceAsString()); |
|
230 | + $this->miscService->log($t->getMessage().' -- '.$t->getTraceAsString()); |
|
231 | 231 | throw new Exception('Please install php-readline, or use --no-readline'); |
232 | 232 | } |
233 | 233 | } |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | $index = $error['index']; |
644 | 644 | $errorIndex = ''; |
645 | 645 | if ($index !== null) { |
646 | - $errorIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
646 | + $errorIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
647 | 647 | } |
648 | 648 | |
649 | 649 | $width = $this->terminal->getWidth() - 13; |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | $index = $result['index']; |
696 | 696 | $resultIndex = ''; |
697 | 697 | if ($index !== null) { |
698 | - $resultIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
698 | + $resultIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
699 | 699 | } |
700 | 700 | |
701 | 701 |