@@ -181,8 +181,8 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | private function limitToDBField(IQueryBuilder &$qb, $field, $values) { |
| 183 | 183 | $expr = $qb->expr(); |
| 184 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
| 185 | - $field = $pf . $field; |
|
| 184 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
| 185 | + $field = $pf.$field; |
|
| 186 | 186 | |
| 187 | 187 | if (!is_array($values)) { |
| 188 | 188 | $values = [$values]; |
@@ -202,8 +202,8 @@ discard block |
||
| 202 | 202 | */ |
| 203 | 203 | protected function limitToQueuedIndexes(IQueryBuilder &$qb) { |
| 204 | 204 | $expr = $qb->expr(); |
| 205 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
| 206 | - $qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK))); |
|
| 205 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
| 206 | + $qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK))); |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | } |
@@ -281,7 +281,7 @@ |
||
| 281 | 281 | foreach ($ak as $source) { |
| 282 | 282 | $tags = $this->subTags[$source]; |
| 283 | 283 | foreach ($tags as $tag) { |
| 284 | - $subTags[] = $source . '_' . $tag; |
|
| 284 | + $subTags[] = $source.'_'.$tag; |
|
| 285 | 285 | } |
| 286 | 286 | } |
| 287 | 287 | |
@@ -89,6 +89,9 @@ discard block |
||
| 89 | 89 | protected $contentEncoded; |
| 90 | 90 | |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $id |
|
| 94 | + */ |
|
| 92 | 95 | public function __construct($providerId, $id) { |
| 93 | 96 | $this->providerId = $providerId; |
| 94 | 97 | $this->id = $id; |
@@ -506,7 +509,7 @@ discard block |
||
| 506 | 509 | } |
| 507 | 510 | |
| 508 | 511 | /** |
| 509 | - * @param $excerpt |
|
| 512 | + * @param string $excerpt |
|
| 510 | 513 | * |
| 511 | 514 | * @return mixed |
| 512 | 515 | */ |
@@ -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; |
@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | $index = $error['index']; |
| 593 | 593 | $errorIndex = ''; |
| 594 | 594 | if ($index !== null) { |
| 595 | - $errorIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
| 595 | + $errorIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
| 596 | 596 | } |
| 597 | 597 | |
| 598 | 598 | $width = $this->terminal->getWidth() - 13; |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | $index = $result['index']; |
| 645 | 645 | $resultIndex = ''; |
| 646 | 646 | if ($index !== null) { |
| 647 | - $resultIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
| 647 | + $resultIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
| 648 | 648 | } |
| 649 | 649 | |
| 650 | 650 | |
@@ -56,7 +56,6 @@ |
||
| 56 | 56 | * Provider constructor. |
| 57 | 57 | * |
| 58 | 58 | * @param string $appId |
| 59 | - * @param IFullTextSearchPlatform $platform |
|
| 60 | 59 | */ |
| 61 | 60 | public function __construct($appId, $class) { |
| 62 | 61 | $this->appId = $appId; |
@@ -105,8 +105,8 @@ |
||
| 105 | 105 | /** |
| 106 | 106 | * Get a version of an app |
| 107 | 107 | * |
| 108 | - * @param string $key |
|
| 109 | 108 | * |
| 109 | + * @param string $appId |
|
| 110 | 110 | * @return string |
| 111 | 111 | */ |
| 112 | 112 | public function getAppVersion($appId) { |
@@ -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 | } |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $platform = \OC::$server->query((string)$selected->getClass()); |
| 162 | 162 | if (!($platform instanceof IFullTextSearchPlatform)) { |
| 163 | 163 | throw new PlatformIsNotCompatibleException( |
| 164 | - $selected . ' is not a compatible FullTextSearchPlatform' |
|
| 164 | + $selected.' is not a compatible FullTextSearchPlatform' |
|
| 165 | 165 | ); |
| 166 | 166 | } |
| 167 | 167 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | throw new PlatformDoesNotExistException( |
| 196 | - 'FullTextSearchPlatform ' . $selected . ' is not available' |
|
| 196 | + 'FullTextSearchPlatform '.$selected.' is not available' |
|
| 197 | 197 | ); |
| 198 | 198 | } |
| 199 | 199 | |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | - * @param $key |
|
| 277 | + * @param string $key |
|
| 278 | 278 | */ |
| 279 | 279 | public function keyPressed($key) { |
| 280 | 280 | foreach ($this->methodOnKeyPress as $method) { |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | |
| 388 | 388 | |
| 389 | 389 | /** |
| 390 | - * @param $tick |
|
| 390 | + * @param integer $tick |
|
| 391 | 391 | */ |
| 392 | 392 | private function updateRamInfo($tick) { |
| 393 | 393 | if (($this->ramUpdate + self::MEMORY_UPDATE) > $tick) { |
@@ -402,8 +402,8 @@ discard block |
||
| 402 | 402 | /** |
| 403 | 403 | * @deprecated - verifier l'interet !? |
| 404 | 404 | * |
| 405 | - * @param $reason |
|
| 406 | - * @param $stop |
|
| 405 | + * @param string $reason |
|
| 406 | + * @param boolean $stop |
|
| 407 | 407 | */ |
| 408 | 408 | public function exception($reason, $stop) { |
| 409 | 409 | if (!$stop) { |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | if ($color !== '') { |
| 245 | - $this->info[$info . 'Colored'] = '<' . $color . '>' . $value . '</' . $color . '>'; |
|
| 245 | + $this->info[$info.'Colored'] = '<'.$color.'>'.$value.'</'.$color.'>'; |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | return; |
| 395 | 395 | } |
| 396 | 396 | |
| 397 | - $this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)) . ' MB'); |
|
| 397 | + $this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)).' MB'); |
|
| 398 | 398 | $this->ramUpdate = $tick; |
| 399 | 399 | } |
| 400 | 400 | |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | */ |
| 408 | 408 | public function exception($reason, $stop) { |
| 409 | 409 | if (!$stop) { |
| 410 | - $this->output('Exception: ' . $reason); |
|
| 410 | + $this->output('Exception: '.$reason); |
|
| 411 | 411 | // TODO: feed an array of exceptions for log; |
| 412 | 412 | } |
| 413 | 413 | $this->runningService->exception($this->tickId, $reason, $stop); |