@@ -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, |
@@ -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 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $platform = \OC::$server->query((string)$selected->getClass()); |
173 | 173 | if (!($platform instanceof IFullTextSearchPlatform)) { |
174 | 174 | throw new PlatformIsNotCompatibleException( |
175 | - $selected->getClass() . ' is not a compatible FullTextSearchPlatform' |
|
175 | + $selected->getClass().' is not a compatible FullTextSearchPlatform' |
|
176 | 176 | ); |
177 | 177 | } |
178 | 178 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | throw new PlatformDoesNotExistException( |
207 | - 'FullTextSearchPlatform ' . $selected . ' is not available' |
|
207 | + 'FullTextSearchPlatform '.$selected.' is not available' |
|
208 | 208 | ); |
209 | 209 | } |
210 | 210 |
@@ -31,9 +31,9 @@ |
||
31 | 31 | namespace OCA\FullTextSearch\AppInfo; |
32 | 32 | |
33 | 33 | |
34 | -$composerDir = __DIR__ . '/../vendor/'; |
|
34 | +$composerDir = __DIR__.'/../vendor/'; |
|
35 | 35 | |
36 | -if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) { |
|
37 | - require_once $composerDir . 'autoload.php'; |
|
36 | +if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) { |
|
37 | + require_once $composerDir.'autoload.php'; |
|
38 | 38 | } |
39 | 39 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | use OCP\AppFramework\QueryException; |
35 | 35 | |
36 | 36 | |
37 | -require_once __DIR__ . '/autoload.php'; |
|
37 | +require_once __DIR__.'/autoload.php'; |
|
38 | 38 | |
39 | 39 | try { |
40 | 40 | $app = new Application(); |
@@ -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 |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $this->liveCycle(); |
101 | 101 | $this->runner->stop(); |
102 | 102 | } catch (Exception $e) { |
103 | - $this->miscService->log('Exception while cronIndex: ' . get_class($e) . ' - ' . $e->getMessage()); |
|
103 | + $this->miscService->log('Exception while cronIndex: '.get_class($e).' - '.$e->getMessage()); |
|
104 | 104 | $this->runner->exception($e->getMessage(), true); |
105 | 105 | } |
106 | 106 | |
@@ -164,6 +164,6 @@ discard block |
||
164 | 164 | * |
165 | 165 | */ |
166 | 166 | private function setLastErrReset() { |
167 | - $this->configService->setAppValue(ConfigService::CRON_LAST_ERR_RESET, (string) time()); |
|
167 | + $this->configService->setAppValue(ConfigService::CRON_LAST_ERR_RESET, (string)time()); |
|
168 | 168 | } |
169 | 169 | } |