@@ -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 | */ |
@@ -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 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $words = explode(' ', $request->getSearch()); |
| 115 | 115 | foreach ($words as $word) { |
| 116 | 116 | array_push( |
| 117 | - $query, ['share_names.' . $request->getAuthor() => '*' . $word . '*'] |
|
| 117 | + $query, ['share_names.'.$request->getAuthor() => '*'.$word.'*'] |
|
| 118 | 118 | ); |
| 119 | 119 | } |
| 120 | 120 | $request->addWildcardQueries($query); |
@@ -137,8 +137,8 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | $request->addWildcardFilters( |
| 139 | 139 | [ |
| 140 | - ['share_names.' . $request->getAuthor() => '*\.' . $extension], |
|
| 141 | - ['title' => '*\.' . $extension] |
|
| 140 | + ['share_names.'.$request->getAuthor() => '*\.'.$extension], |
|
| 141 | + ['title' => '*\.'.$extension] |
|
| 142 | 142 | ] |
| 143 | 143 | ); |
| 144 | 144 | |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | // TODO - update $document with a error status instead of just ignore ! |
| 417 | 417 | $document->getIndex() |
| 418 | 418 | ->setStatus(Index::INDEX_IGNORE); |
| 419 | - echo 'Exception: ' . json_encode($e->getTrace()) . ' - ' . $e->getMessage() . "\n"; |
|
| 419 | + echo 'Exception: '.json_encode($e->getTrace()).' - '.$e->getMessage()."\n"; |
|
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | $index[] = $document; |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | private function getWebdavId($fileId) { |
| 637 | 637 | $instanceId = $this->configService->getSystemValue('instanceid'); |
| 638 | 638 | |
| 639 | - return sprintf("%08s", $fileId) . $instanceId; |
|
| 639 | + return sprintf("%08s", $fileId).$instanceId; |
|
| 640 | 640 | } |
| 641 | 641 | |
| 642 | 642 | |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | array_push($result, $access->getOwnerId()); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - foreach($result as $user) { |
|
| 163 | + foreach ($result as $user) { |
|
| 164 | 164 | if (!in_array($user, $users)) |
| 165 | 165 | { |
| 166 | 166 | $users[] = $user; |