@@ -184,7 +184,7 @@ |
||
184 | 184 | try { |
185 | 185 | $rights->setCircles(Circles::joinedCircleIds($user->getUID())); |
186 | 186 | } catch (Exception $e) { |
187 | - $this->miscService->log('Circles is set as enabled but: ' . $e->getMessage()); |
|
187 | + $this->miscService->log('Circles is set as enabled but: '.$e->getMessage()); |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 |
@@ -182,7 +182,7 @@ |
||
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
185 | - $this->display->setFormat(implode("\n", $format) . "\n"); |
|
185 | + $this->display->setFormat(implode("\n", $format)."\n"); |
|
186 | 186 | $this->refreshInfo(); |
187 | 187 | $this->display->start(); |
188 | 188 | } |
@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param string $panelId |
88 | - * @param array $lines |
|
88 | + * @param string[] $lines |
|
89 | 89 | */ |
90 | 90 | public function createPanel(string $panelId, array $lines) { |
91 | 91 | if (!is_array($lines)) { |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | $index = $result['index']; |
515 | 515 | $resultIndex = ''; |
516 | 516 | if ($index !== null) { |
517 | - $resultIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
517 | + $resultIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
518 | 518 | } |
519 | 519 | |
520 | 520 | |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | $index = $error['index']; |
572 | 572 | $errorIndex = ''; |
573 | 573 | if ($index !== null) { |
574 | - $errorIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
574 | + $errorIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
575 | 575 | } |
576 | 576 | |
577 | 577 | $width = $this->terminal->getWidth() - 13; |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | $output->writeln( |
103 | - 'Full text search ' . $this->configService->getAppValue('installed_version') |
|
103 | + 'Full text search '.$this->configService->getAppValue('installed_version') |
|
104 | 104 | ); |
105 | 105 | $output->writeln(' '); |
106 | 106 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | $output->writeln('- Search Platform:'); |
175 | 175 | |
176 | - $output->writeln($platform->getName() . ' ' . $wrapper->getVersion()); |
|
176 | + $output->writeln($platform->getName().' '.$wrapper->getVersion()); |
|
177 | 177 | echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT); |
178 | 178 | |
179 | 179 | $output->writeln(' '); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | foreach ($providers as $providerWrapper) { |
201 | 201 | $provider = $providerWrapper->getProvider(); |
202 | - $output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion()); |
|
202 | + $output->writeln($provider->getName().' '.$providerWrapper->getVersion()); |
|
203 | 203 | echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT); |
204 | 204 | $output->writeln(''); |
205 | 205 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $provider = \OC::$server->query((string)$providerId); |
108 | 108 | if (!($provider instanceof IFullTextSearchProvider)) { |
109 | 109 | throw new ProviderIsNotCompatibleException( |
110 | - $providerId . ' is not a compatible IFullTextSearchProvider' |
|
110 | + $providerId.' is not a compatible IFullTextSearchProvider' |
|
111 | 111 | ); |
112 | 112 | } |
113 | 113 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | } |
197 | 197 | } |
198 | 198 | |
199 | - throw new ProviderDoesNotExistException('Provider \'' . $providerId . '\' does not exist'); |
|
199 | + throw new ProviderDoesNotExistException('Provider \''.$providerId.'\' does not exist'); |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | $knownProvider = $providerWrapper->getProvider(); |
285 | 285 | if ($knownProvider->getId() === $provider->getId()) { |
286 | 286 | throw new ProviderIsNotUniqueException( |
287 | - 'FullTextSearchProvider ' . $provider->getId() . ' already exist' |
|
287 | + 'FullTextSearchProvider '.$provider->getId().' already exist' |
|
288 | 288 | ); |
289 | 289 | } |
290 | 290 | } |
@@ -631,7 +631,7 @@ |
||
631 | 631 | } |
632 | 632 | |
633 | 633 | /** |
634 | - * @param array $filters |
|
634 | + * @param string[] $filters |
|
635 | 635 | * |
636 | 636 | * @return ISearchRequest |
637 | 637 | */ |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | |
197 | 197 | $options = ['is', 'show']; |
198 | 198 | if (in_array($kw, $options)) { |
199 | - $this->addOption($kw . '_' . $value, '1'); |
|
199 | + $this->addOption($kw.'_'.$value, '1'); |
|
200 | 200 | |
201 | 201 | return true; |
202 | 202 | } |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $valuedSubOptions = ['and']; |
212 | 212 | if (in_array($kw, $valuedSubOptions)) { |
213 | 213 | list($key, $value) = explode(':', $value, 2); |
214 | - $this->addMultipleOption($kw . ':' . $key, $value); |
|
214 | + $this->addMultipleOption($kw.':'.$key, $value); |
|
215 | 215 | |
216 | 216 | return true; |
217 | 217 | } |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | foreach ($ak as $source) { |
524 | 524 | $tags = $this->subTags[$source]; |
525 | 525 | foreach ($tags as $tag) { |
526 | - $subTags[] = $source . '_' . $tag; |
|
526 | + $subTags[] = $source.'_'.$tag; |
|
527 | 527 | } |
528 | 528 | } |
529 | 529 |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * @param IFullTextSearchProvider $provider |
198 | 198 | * @param IndexDocument[] $documents |
199 | - * @param IIndexOptions $options |
|
199 | + * @param IndexOptions $options |
|
200 | 200 | * |
201 | 201 | * @return IndexDocument[] |
202 | 202 | * @throws Exception |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | |
478 | 478 | |
479 | 479 | /** |
480 | - * @param IIndex $index |
|
480 | + * @param Index $index |
|
481 | 481 | */ |
482 | 482 | private function updateIndexError(IIndex $index) { |
483 | 483 |
@@ -165,7 +165,7 @@ |
||
165 | 165 | IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, string $userId, |
166 | 166 | IndexOptions $options |
167 | 167 | ) { |
168 | - $this->updateRunnerAction('generateIndex' . $provider->getName()); |
|
168 | + $this->updateRunnerAction('generateIndex'.$provider->getName()); |
|
169 | 169 | $this->updateRunnerInfoArray( |
170 | 170 | [ |
171 | 171 | 'userId' => $userId, |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | |
78 | 78 | /** |
79 | - * @param IIndexOptions $options |
|
79 | + * @param \OCA\FullTextSearch\Model\IndexOptions $options |
|
80 | 80 | * |
81 | 81 | * @return IndexDocument |
82 | 82 | */ |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | |
105 | 105 | /** |
106 | - * @param IIndexOptions $options |
|
106 | + * @param \OCA\FullTextSearch\Model\IndexOptions $options |
|
107 | 107 | * |
108 | 108 | * @return IndexDocument |
109 | 109 | */ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | public function generateIndexDocumentContentLicense(IIndexOptions $options): IndexDocument { |
84 | 84 | $indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE); |
85 | 85 | |
86 | - $content = file_get_contents(__DIR__ . '/../../LICENSE'); |
|
86 | + $content = file_get_contents(__DIR__.'/../../LICENSE'); |
|
87 | 87 | $indexDocument->setContent($content); |
88 | 88 | |
89 | 89 | if ($options === null) { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $orig = call_user_func([$origIndex, $method]); |
141 | 141 | $compare = call_user_func([$compareIndex, $method]); |
142 | 142 | if ($orig !== $compare) { |
143 | - throw new \Exception($method . '() orig:' . $orig . ' compare:' . $compare); |
|
143 | + throw new \Exception($method.'() orig:'.$orig.' compare:'.$compare); |
|
144 | 144 | |
145 | 145 | }; |
146 | 146 | } |
@@ -123,13 +123,13 @@ |
||
123 | 123 | */ |
124 | 124 | private function displaySearchResult(ISearchResult $searchResult) { |
125 | 125 | /** @var SearchResult $searchResult */ |
126 | - echo '> ' . $searchResult->getProvider() |
|
127 | - ->getName() . "\n"; |
|
126 | + echo '> '.$searchResult->getProvider() |
|
127 | + ->getName()."\n"; |
|
128 | 128 | |
129 | 129 | /** @var IndexDocument[] $result */ |
130 | 130 | $result = $searchResult->getDocuments(); |
131 | 131 | foreach ($result as $document) { |
132 | - echo ' - ' . $document->getId() . ' score:' . $document->getScore() . "\n"; |
|
132 | + echo ' - '.$document->getId().' score:'.$document->getScore()."\n"; |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 |