@@ -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 | } |
@@ -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 | |
@@ -191,8 +191,8 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | private function limitToDBField(IQueryBuilder &$qb, string $field, string $value) { |
| 193 | 193 | $expr = $qb->expr(); |
| 194 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
| 195 | - $field = $pf . $field; |
|
| 194 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
| 195 | + $field = $pf.$field; |
|
| 196 | 196 | |
| 197 | 197 | $qb->andWhere($expr->eq($field, $qb->createNamedParameter($value))); |
| 198 | 198 | } |
@@ -204,8 +204,8 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | private function limitToDBFieldInt(IQueryBuilder &$qb, string $field, int $value) { |
| 206 | 206 | $expr = $qb->expr(); |
| 207 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
| 208 | - $field = $pf . $field; |
|
| 207 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
| 208 | + $field = $pf.$field; |
|
| 209 | 209 | |
| 210 | 210 | $qb->andWhere($expr->eq($field, $qb->createNamedParameter($value))); |
| 211 | 211 | } |
@@ -218,8 +218,8 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | private function limitToDBFieldArray(IQueryBuilder &$qb, string $field, array $values) { |
| 220 | 220 | $expr = $qb->expr(); |
| 221 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
| 222 | - $field = $pf . $field; |
|
| 221 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
| 222 | + $field = $pf.$field; |
|
| 223 | 223 | |
| 224 | 224 | if (!is_array($values)) { |
| 225 | 225 | $values = [$values]; |
@@ -239,8 +239,8 @@ discard block |
||
| 239 | 239 | */ |
| 240 | 240 | protected function limitToQueuedIndexes(IQueryBuilder &$qb) { |
| 241 | 241 | $expr = $qb->expr(); |
| 242 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
| 243 | - $qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK))); |
|
| 242 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
| 243 | + $qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK))); |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | } |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | if ($color !== '') { |
| 254 | - $this->info[$info . 'Colored'] = '<' . $color . '>' . $value . '</' . $color . '>'; |
|
| 254 | + $this->info[$info.'Colored'] = '<'.$color.'>'.$value.'</'.$color.'>'; |
|
| 255 | 255 | } |
| 256 | 256 | } |
| 257 | 257 | |
@@ -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(string $reason, bool $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); |
@@ -238,18 +238,18 @@ |
||
| 238 | 238 | $preAction = $tick->getAction(); |
| 239 | 239 | |
| 240 | 240 | if ($preAction !== '') { |
| 241 | - $preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0); |
|
| 242 | - $preActionStart = $tick->getInfoFloat($preAction . 'Init', 0); |
|
| 241 | + $preActionTotal = $tick->getInfoFloat($preAction.'Total', 0); |
|
| 242 | + $preActionStart = $tick->getInfoFloat($preAction.'Init', 0); |
|
| 243 | 243 | |
| 244 | 244 | if ($preActionStart > 0) { |
| 245 | 245 | |
| 246 | 246 | $preActionTotal += ($now - $preActionStart); |
| 247 | - $tick->setInfoFloat($preAction . 'Total', $preActionTotal); |
|
| 248 | - $tick->unsetInfo($preAction . 'Init'); |
|
| 247 | + $tick->setInfoFloat($preAction.'Total', $preActionTotal); |
|
| 248 | + $tick->unsetInfo($preAction.'Init'); |
|
| 249 | 249 | } |
| 250 | 250 | } |
| 251 | 251 | $tick->setAction($action) |
| 252 | - ->setInfoFloat($action . 'Init', $now); |
|
| 252 | + ->setInfoFloat($action.'Init', $now); |
|
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | |
@@ -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, |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | /** |
| 211 | 211 | * @param IFullTextSearchProvider $provider |
| 212 | 212 | * @param IIndexDocument[] $documents |
| 213 | - * @param IIndexOptions $options |
|
| 213 | + * @param IndexOptions $options |
|
| 214 | 214 | * |
| 215 | 215 | * @return IIndexDocument[] |
| 216 | 216 | * @throws Exception |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | /** |
| 494 | - * @param IIndex $index |
|
| 494 | + * @param Index $index |
|
| 495 | 495 | */ |
| 496 | 496 | private function updateIndexError(IIndex $index) { |
| 497 | 497 | |