@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @param $action |
|
100 | + * @param string $action |
|
101 | 101 | * |
102 | 102 | * @throws InterruptException |
103 | 103 | * @throws TickDoesNotExistException |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | |
114 | 114 | /** |
115 | - * @param $line |
|
115 | + * @param string $line |
|
116 | 116 | */ |
117 | 117 | private function outputRunner($line) { |
118 | 118 | if ($this->runner === null) { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | public function indexDocument(IFullTextSearchProvider $provider, IndexDocument $document) { |
216 | 216 | |
217 | 217 | $this->updateRunner('indexDocument'); |
218 | - $this->outputRunner(' . Indexing: ' . $document->getTitle()); |
|
218 | + $this->outputRunner(' . Indexing: '.$document->getTitle()); |
|
219 | 219 | |
220 | 220 | try { |
221 | 221 | $result = $this->indexService->indexDocument($this, $this->client, $provider, $document); |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | ]; |
228 | 228 | } |
229 | 229 | |
230 | - $this->outputRunner(' result: ' . json_encode($result)); |
|
230 | + $this->outputRunner(' result: '.json_encode($result)); |
|
231 | 231 | |
232 | 232 | return $this->indexService->parseIndexResult($document->getIndex(), $result); |
233 | 233 | } |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | echo "Max retries!"; |
267 | 267 | } |
268 | 268 | } catch (Exception $e) { |
269 | - echo ' ElasticSearchPlatform::load() Exception --- ' . $e->getMessage() . "\n"; |
|
269 | + echo ' ElasticSearchPlatform::load() Exception --- '.$e->getMessage()."\n"; |
|
270 | 270 | } |
271 | 271 | } |
272 | 272 |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | |
118 | 118 | /** |
119 | - * @param IFullTextSearchPlatform $platform |
|
119 | + * @param \OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform $platform |
|
120 | 120 | * @param Client $client |
121 | 121 | * @param IFullTextSearchProvider $provider |
122 | 122 | * @param IndexDocument $document |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | /** |
151 | 151 | * @param Index $index |
152 | - * @param array $result |
|
152 | + * @param callable $result |
|
153 | 153 | * |
154 | 154 | * @return Index |
155 | 155 | */ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | |
62 | 62 | /** |
63 | - * @param IFullTextSearchPlatform $source |
|
63 | + * @param \OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform $source |
|
64 | 64 | * @param Client $client |
65 | 65 | * @param IFullTextSearchProvider $provider |
66 | 66 | * @param DocumentAccess $access |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | |
94 | 94 | /** |
95 | - * @param array $result |
|
95 | + * @param callable $result |
|
96 | 96 | * |
97 | 97 | * @return SearchResult |
98 | 98 | */ |
@@ -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 |