@@ -105,13 +105,13 @@ |
||
| 105 | 105 | |
| 106 | 106 | private function displaySearchResult(SearchResult $searchResult) { |
| 107 | 107 | |
| 108 | - echo '> ' . $searchResult->getProvider() |
|
| 109 | - ->getName() . "\n"; |
|
| 108 | + echo '> '.$searchResult->getProvider() |
|
| 109 | + ->getName()."\n"; |
|
| 110 | 110 | |
| 111 | 111 | /** @var IndexDocument[] $result */ |
| 112 | 112 | $result = $searchResult->getDocuments(); |
| 113 | 113 | foreach ($result as $document) { |
| 114 | - echo ' - ' . $document->getId() . ' score:' . $document->getScore() . "\n"; |
|
| 114 | + echo ' - '.$document->getId().' score:'.$document->getScore()."\n"; |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
@@ -224,18 +224,18 @@ |
||
| 224 | 224 | $preAction = $tick->getAction(); |
| 225 | 225 | |
| 226 | 226 | if ($preAction !== '') { |
| 227 | - $preActionTotal = $tick->getInfo($preAction . 'Total', 0); |
|
| 228 | - $preActionStart = $tick->getInfo($preAction . 'Init', 0); |
|
| 227 | + $preActionTotal = $tick->getInfo($preAction.'Total', 0); |
|
| 228 | + $preActionStart = $tick->getInfo($preAction.'Init', 0); |
|
| 229 | 229 | |
| 230 | 230 | if ($preActionStart > 0) { |
| 231 | 231 | |
| 232 | 232 | $preActionTotal += ($now - $preActionStart); |
| 233 | - $tick->setInfo($preAction . 'Total', $preActionTotal); |
|
| 234 | - $tick->unsetInfo($preAction . 'Init'); |
|
| 233 | + $tick->setInfo($preAction.'Total', $preActionTotal); |
|
| 234 | + $tick->unsetInfo($preAction.'Init'); |
|
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | 237 | $tick->setAction($action) |
| 238 | - ->setInfo($action . 'Init', $now); |
|
| 238 | + ->setInfo($action.'Init', $now); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $provider = \OC::$server->query((string)$providerId); |
| 107 | 107 | if (!($provider instanceof IFullTextSearchProvider)) { |
| 108 | 108 | throw new ProviderIsNotCompatibleException( |
| 109 | - $providerId . ' is not a compatible IFullTextSearchProvider' |
|
| 109 | + $providerId.' is not a compatible IFullTextSearchProvider' |
|
| 110 | 110 | ); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | - throw new ProviderDoesNotExistException('Provider \'' . $providerId . '\' does not exist'); |
|
| 190 | + throw new ProviderDoesNotExistException('Provider \''.$providerId.'\' does not exist'); |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | foreach ($this->providers AS $knownProvider) { |
| 273 | 273 | if ($knownProvider->getId() === $provider->getId()) { |
| 274 | 274 | throw new ProviderIsNotUniqueException( |
| 275 | - 'FullTextSearchProvider ' . $provider->getId() . ' already exist' |
|
| 275 | + 'FullTextSearchProvider '.$provider->getId().' already exist' |
|
| 276 | 276 | ); |
| 277 | 277 | } |
| 278 | 278 | } |
@@ -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 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $platform = \OC::$server->query((string)$selected); |
| 160 | 160 | if (!($platform instanceof IFullTextSearchPlatform)) { |
| 161 | 161 | throw new PlatformIsNotCompatibleException( |
| 162 | - $selected . ' is not a compatible FullTextSearchPlatform' |
|
| 162 | + $selected.' is not a compatible FullTextSearchPlatform' |
|
| 163 | 163 | ); |
| 164 | 164 | } |
| 165 | 165 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | if (!in_array($selected, $this->platforms)) { |
| 184 | 184 | throw new PlatformDoesNotExistException( |
| 185 | - 'FullTextSearchPlatform ' . $selected . ' is not available' |
|
| 185 | + 'FullTextSearchPlatform '.$selected.' is not available' |
|
| 186 | 186 | ); |
| 187 | 187 | } |
| 188 | 188 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | $output->writeln( |
| 106 | - 'Full text search ' . $this->configService->getAppValue('installed_version') |
|
| 106 | + 'Full text search '.$this->configService->getAppValue('installed_version') |
|
| 107 | 107 | ); |
| 108 | 108 | $output->writeln(' '); |
| 109 | 109 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | $output->writeln('- Search Platform:'); |
| 175 | 175 | |
| 176 | - $output->writeln($platform->getName() . ' ' . $platform->getVersion()); |
|
| 176 | + $output->writeln($platform->getName().' '.$platform->getVersion()); |
|
| 177 | 177 | echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT); |
| 178 | 178 | |
| 179 | 179 | $output->writeln(' '); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $output->writeln('- Content Providers:'); |
| 199 | 199 | |
| 200 | 200 | foreach ($providers as $provider) { |
| 201 | - $output->writeln($provider->getName() . ' ' . $provider->getVersion()); |
|
| 201 | + $output->writeln($provider->getName().' '.$provider->getVersion()); |
|
| 202 | 202 | echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT); |
| 203 | 203 | $output->writeln(''); |
| 204 | 204 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | public function generateIndexDocumentContentLicense(IndexOptions $options = null) { |
| 78 | 78 | $indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE); |
| 79 | 79 | |
| 80 | - $content = file_get_contents(__DIR__ . '/../../LICENSE'); |
|
| 80 | + $content = file_get_contents(__DIR__.'/../../LICENSE'); |
|
| 81 | 81 | $indexDocument->setContent($content); |
| 82 | 82 | |
| 83 | 83 | if ($options === null) { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $orig = call_user_func([$origIndex, $method]); |
| 135 | 135 | $compare = call_user_func([$compareIndex, $method]); |
| 136 | 136 | if ($orig !== $compare) { |
| 137 | - throw new \Exception($method . '() orig:' . $orig . ' compare:' . $compare); |
|
| 137 | + throw new \Exception($method.'() orig:'.$orig.' compare:'.$compare); |
|
| 138 | 138 | |
| 139 | 139 | }; |
| 140 | 140 | } |
@@ -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 | } |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | public function indexProviderContentFromUser( |
| 150 | 150 | IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, $userId, $options |
| 151 | 151 | ) { |
| 152 | - $this->updateRunnerAction('generateIndex' . $provider->getName()); |
|
| 152 | + $this->updateRunnerAction('generateIndex'.$provider->getName()); |
|
| 153 | 153 | $this->updateRunnerInfoArray( |
| 154 | 154 | [ |
| 155 | 155 | 'userId' => $userId, |