@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * |
130 | 130 | * @param string $userId |
131 | 131 | * |
132 | - * @return IndexDocument[] |
|
132 | + * @return FilesDocument[] |
|
133 | 133 | * @throws InterruptException |
134 | 134 | * @throws TickDoesNotExistException |
135 | 135 | * @throws InvalidPathException |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * |
149 | 149 | * @param IndexDocument[] $chunk |
150 | 150 | * |
151 | - * @return IndexDocument[] |
|
151 | + * @return FilesDocument[] |
|
152 | 152 | */ |
153 | 153 | public function fillIndexDocuments($chunk) { |
154 | 154 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * @param Index $index |
164 | 164 | * |
165 | - * @return IndexDocument|null |
|
165 | + * @return FilesDocument|null |
|
166 | 166 | * @throws InvalidPathException |
167 | 167 | * @throws NotFoundException |
168 | 168 | * @throws NotPermittedException |
@@ -223,7 +223,7 @@ |
||
223 | 223 | |
224 | 224 | |
225 | 225 | /** |
226 | - * @param $userId |
|
226 | + * @param string $userId |
|
227 | 227 | * |
228 | 228 | * @return ExternalMount[] |
229 | 229 | */ |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | private function getWebdavId($fileId) { |
332 | 332 | $instanceId = $this->configService->getSystemValue('instanceid'); |
333 | 333 | |
334 | - return sprintf("%08s", $fileId) . $instanceId; |
|
334 | + return sprintf("%08s", $fileId).$instanceId; |
|
335 | 335 | } |
336 | 336 | |
337 | 337 | |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | // TODO - update $document with a error status instead of just ignore ! |
392 | 392 | $document->getIndex() |
393 | 393 | ->setStatus(Index::INDEX_IGNORE); |
394 | - echo 'Exception: ' . json_encode($e->getTrace()) . ' - ' . $e->getMessage() . "\n"; |
|
394 | + echo 'Exception: '.json_encode($e->getTrace()).' - '.$e->getMessage()."\n"; |
|
395 | 395 | } |
396 | 396 | |
397 | 397 | $index[] = $document; |
@@ -78,8 +78,8 @@ |
||
78 | 78 | */ |
79 | 79 | private function limitToDBField(IQueryBuilder &$qb, $field, $value) { |
80 | 80 | $expr = $qb->expr(); |
81 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
82 | - $qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value))); |
|
81 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
82 | + $qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value))); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $words = explode(' ', $request->getSearch()); |
104 | 104 | foreach ($words as $word) { |
105 | 105 | array_push( |
106 | - $query, ['wildcard' => ['share_names.' . $request->getAuthor() => '*' . $word . '*']] |
|
106 | + $query, ['wildcard' => ['share_names.'.$request->getAuthor() => '*'.$word.'*']] |
|
107 | 107 | ); |
108 | 108 | } |
109 | 109 | |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | $query = [ |
130 | - ['wildcard' => ['share_names.' . $request->getAuthor() => '*\.' . $extension]], |
|
131 | - ['wildcard' => ['title' => '*\.' . $extension]] |
|
130 | + ['wildcard' => ['share_names.'.$request->getAuthor() => '*\.'.$extension]], |
|
131 | + ['wildcard' => ['title' => '*\.'.$extension]] |
|
132 | 132 | ]; |
133 | 133 | |
134 | 134 | $arr['params']['body']['query']['bool']['filter'][]['bool']['should'] = $query; |