@@ -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 |
@@ -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 | |
@@ -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 | |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | - * @param $userId |
|
| 234 | + * @param string $userId |
|
| 235 | 235 | * |
| 236 | 236 | * @return MountPoint[] |
| 237 | 237 | */ |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | foreach ($mounts as $path => $mount) { |
| 212 | 212 | $mountPoint = new MountPoint(); |
| 213 | 213 | $mountPoint->setId($mount['id']) |
| 214 | - ->setPath('/' . $userId . '/files/' . $mount['mount_point']) |
|
| 214 | + ->setPath('/'.$userId.'/files/'.$mount['mount_point']) |
|
| 215 | 215 | ->setGroups(array_keys($mount['groups'])); |
| 216 | 216 | $mountPoints[] = $mountPoint; |
| 217 | 217 | } |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | */ |
| 239 | 239 | public function setDocumentIndexOption(FilesDocument $document, $option) { |
| 240 | 240 | $document->getIndex() |
| 241 | - ->addOption('_' . $option, $this->getAppValue($option)); |
|
| 241 | + ->addOption('_'.$option, $this->getAppValue($option)); |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @param SearchRequest $request |
| 71 | 71 | */ |
| 72 | 72 | private function searchQueryShareNames(SearchRequest $request) { |
| 73 | - $request->addField('share_names.' . MiscService::secureUsername($request->getAuthor())); |
|
| 73 | + $request->addField('share_names.'.MiscService::secureUsername($request->getAuthor())); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | |
@@ -86,8 +86,8 @@ discard block |
||
| 86 | 86 | $currentDir = MiscService::noBeginSlash(MiscService::endSlash($currentDir)); |
| 87 | 87 | $request->addRegexFilters( |
| 88 | 88 | [ |
| 89 | - ['share_names.' . $username => $currentDir . '*'], |
|
| 90 | - ['title' => $currentDir . '*'] |
|
| 89 | + ['share_names.'.$username => $currentDir.'*'], |
|
| 90 | + ['title' => $currentDir.'*'] |
|
| 91 | 91 | ] |
| 92 | 92 | ); |
| 93 | 93 | } |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | $username = MiscService::secureUsername($request->getAuthor()); |
| 106 | 106 | $request->addRegexFilters( |
| 107 | 107 | [ |
| 108 | - ['share_names.' . $username => '.*\.' . $extension], |
|
| 109 | - ['title' => '.*\.' . $extension] |
|
| 108 | + ['share_names.'.$username => '.*\.'.$extension], |
|
| 109 | + ['title' => '.*\.'.$extension] |
|
| 110 | 110 | ] |
| 111 | 111 | ); |
| 112 | 112 | } |