@@ -229,7 +229,7 @@ |
||
229 | 229 | $circleManager = OC::$server->get(CirclesManager::class); |
230 | 230 | $circleManager->startsession(); |
231 | 231 | $circleIds = array_map( |
232 | - function (Circle $circle): string { |
|
232 | + function(Circle $circle): string { |
|
233 | 233 | return $circle->getSingleId(); |
234 | 234 | }, $circleManager->getCircles() |
235 | 235 | ); |
@@ -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) |
@@ -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>', |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * @return bool |
182 | 182 | */ |
183 | 183 | public function isAlreadyRunning(): bool { |
184 | - $ttl = (int) $this->configService->getAppValue(ConfigService::TICK_TTL); |
|
184 | + $ttl = (int)$this->configService->getAppValue(ConfigService::TICK_TTL); |
|
185 | 185 | $ticks = $this->tickRequest->getTicksByStatus('run'); |
186 | 186 | |
187 | 187 | $isAlreadyRunning = false; |
@@ -215,23 +215,23 @@ discard block |
||
215 | 215 | * @param Tick $tick |
216 | 216 | * @param string $action |
217 | 217 | */ |
218 | - private function assignActionToTick(Tick &$tick, string $action) { |
|
218 | + private function assignActionToTick(Tick & $tick, string $action) { |
|
219 | 219 | $now = microtime(true); |
220 | 220 | $preAction = $tick->getAction(); |
221 | 221 | |
222 | 222 | if ($preAction !== '') { |
223 | - $preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0); |
|
224 | - $preActionStart = $tick->getInfoFloat($preAction . 'Init', 0); |
|
223 | + $preActionTotal = $tick->getInfoFloat($preAction.'Total', 0); |
|
224 | + $preActionStart = $tick->getInfoFloat($preAction.'Init', 0); |
|
225 | 225 | |
226 | 226 | if ($preActionStart > 0) { |
227 | 227 | |
228 | 228 | $preActionTotal += ($now - $preActionStart); |
229 | - $tick->setInfoFloat($preAction . 'Total', $preActionTotal); |
|
230 | - $tick->unsetInfo($preAction . 'Init'); |
|
229 | + $tick->setInfoFloat($preAction.'Total', $preActionTotal); |
|
230 | + $tick->unsetInfo($preAction.'Init'); |
|
231 | 231 | } |
232 | 232 | } |
233 | 233 | $tick->setAction($action) |
234 | - ->setInfoFloat($action . 'Init', $now); |
|
234 | + ->setInfoFloat($action.'Init', $now); |
|
235 | 235 | } |
236 | 236 | |
237 | 237 |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | try { |
118 | 118 | $platform = \OCP\Server::get((string)$class); |
119 | 119 | if (!($platform instanceof IFullTextSearchPlatform)) { |
120 | - $this->logger->warning($class . ' does not implement ' . IFullTextSearchPlatform::class); |
|
120 | + $this->logger->warning($class.' does not implement '.IFullTextSearchPlatform::class); |
|
121 | 121 | continue; |
122 | 122 | } |
123 | 123 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $platform = OC::$server->query((string)$selected->getClass()); |
176 | 176 | if (!($platform instanceof IFullTextSearchPlatform)) { |
177 | 177 | throw new PlatformIsNotCompatibleException( |
178 | - $selected->getClass() . ' is not a compatible FullTextSearchPlatform' |
|
178 | + $selected->getClass().' is not a compatible FullTextSearchPlatform' |
|
179 | 179 | ); |
180 | 180 | } |
181 | 181 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | } |
208 | 208 | |
209 | 209 | throw new PlatformDoesNotExistException( |
210 | - 'FullTextSearchPlatform ' . $selected . ' is not available' |
|
210 | + 'FullTextSearchPlatform '.$selected.' is not available' |
|
211 | 211 | ); |
212 | 212 | } |
213 | 213 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | use Psr\Container\ContainerInterface; |
52 | 52 | use Throwable; |
53 | 53 | |
54 | -if (file_exists($autoLoad = __DIR__ . '/../../vendor/autoload.php')) { |
|
54 | +if (file_exists($autoLoad = __DIR__.'/../../vendor/autoload.php')) { |
|
55 | 55 | include_once $autoLoad; |
56 | 56 | } |
57 | 57 | |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | return [ |
142 | 142 | 'id' => self::APP_ID, |
143 | 143 | 'order' => 5, |
144 | - 'href' => $urlGen->linkToRoute(self::APP_ID . '.Navigation.navigate'), |
|
144 | + 'href' => $urlGen->linkToRoute(self::APP_ID.'.Navigation.navigate'), |
|
145 | 145 | 'icon' => $urlGen->imagePath(self::APP_ID, 'fulltextsearch.svg'), |
146 | 146 | 'name' => 'Search' |
147 | 147 | ]; |
@@ -400,7 +400,7 @@ |
||
400 | 400 | foreach ($keys as $key) { |
401 | 401 | if (!array_key_exists($key, $arr)) { |
402 | 402 | throw new MalformedArrayException( |
403 | - 'source: ' . json_encode($arr) . ' - missing key: ' . $key |
|
403 | + 'source: '.json_encode($arr).' - missing key: '.$key |
|
404 | 404 | ); |
405 | 405 | } |
406 | 406 | } |
@@ -146,7 +146,7 @@ |
||
146 | 146 | */ |
147 | 147 | public function getAppValue(string $key): string { |
148 | 148 | return $this->config->getSystemValueString( |
149 | - Application::APP_ID . '.' . $key, |
|
149 | + Application::APP_ID.'.'.$key, |
|
150 | 150 | (string)$this->config->getAppValue(Application::APP_ID, |
151 | 151 | $key, |
152 | 152 | $this->defaults[$key] ?? '') |