@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | namespace OCA\FullTextSearch_ElasticSearch\AppInfo; |
| 28 | 28 | |
| 29 | -require_once __DIR__ . '/autoload.php'; |
|
| 29 | +require_once __DIR__.'/autoload.php'; |
|
| 30 | 30 | |
| 31 | 31 | $app = new Application(); |
| 32 | 32 | |
@@ -26,9 +26,9 @@ |
||
| 26 | 26 | |
| 27 | 27 | namespace OCA\FullTextSearch_ElasticSearch\AppInfo; |
| 28 | 28 | |
| 29 | -$composerDir = __DIR__ . '/../vendor/'; |
|
| 29 | +$composerDir = __DIR__.'/../vendor/'; |
|
| 30 | 30 | |
| 31 | -if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) { |
|
| 32 | - require_once $composerDir . 'autoload.php'; |
|
| 31 | +if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) { |
|
| 32 | + require_once $composerDir.'autoload.php'; |
|
| 33 | 33 | } |
| 34 | 34 | |
@@ -217,11 +217,11 @@ discard block |
||
| 217 | 217 | public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) { |
| 218 | 218 | |
| 219 | 219 | $this->updateRunner('indexDocument'); |
| 220 | - $this->outputRunner(' . Indexing: ' . $document->getTitle()); |
|
| 220 | + $this->outputRunner(' . Indexing: '.$document->getTitle()); |
|
| 221 | 221 | |
| 222 | 222 | try { |
| 223 | 223 | $result = $this->indexService->indexDocument($this, $this->client, $provider, $document); |
| 224 | - $this->outputRunner(' result: ' . json_encode($result)); |
|
| 224 | + $this->outputRunner(' result: '.json_encode($result)); |
|
| 225 | 225 | |
| 226 | 226 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
| 227 | 227 | } catch (Exception $e) { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $index->setMessage(json_encode($message)); |
| 254 | 254 | |
| 255 | 255 | $result = $this->indexService->indexDocument($this, $this->client, $provider, $document); |
| 256 | - $this->outputRunner(' result with no content: ' . json_encode($result)); |
|
| 256 | + $this->outputRunner(' result with no content: '.json_encode($result)); |
|
| 257 | 257 | |
| 258 | 258 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
| 259 | 259 | } |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | echo "Max retries!"; |
| 294 | 294 | } |
| 295 | 295 | } catch (Exception $e) { |
| 296 | - echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n"; |
|
| 296 | + echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n"; |
|
| 297 | 297 | } |
| 298 | 298 | } |
| 299 | 299 | |