@@ -222,7 +222,7 @@ |
||
222 | 222 | foreach ($mounts as $path => $mount) { |
223 | 223 | $mountPoint = new MountPoint(); |
224 | 224 | $mountPoint->setId($this->getInt('id', $mount, -1)) |
225 | - ->setPath('/' . $userId . '/files/' . $mount['mount_point']) |
|
225 | + ->setPath('/'.$userId.'/files/'.$mount['mount_point']) |
|
226 | 226 | ->setGroups(array_keys($mount['groups'])); |
227 | 227 | $mountPoints[] = $mountPoint; |
228 | 228 | } |
@@ -236,7 +236,7 @@ |
||
236 | 236 | */ |
237 | 237 | public function setDocumentIndexOption(FilesDocument $document, string $option) { |
238 | 238 | $document->getIndex() |
239 | - ->addOption('_' . $option, (string)$this->getAppValue($option)); |
|
239 | + ->addOption('_'.$option, (string)$this->getAppValue($option)); |
|
240 | 240 | } |
241 | 241 | |
242 | 242 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | use Throwable; |
43 | 43 | |
44 | 44 | |
45 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
45 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
46 | 46 | |
47 | 47 | |
48 | 48 | /** |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $this->searchQueryInOptions($request); |
113 | 113 | $this->searchQueryFiltersExtension($request); |
114 | 114 | $this->searchQueryFiltersSource($request); |
115 | - if($this->userId === null) { |
|
115 | + if ($this->userId === null) { |
|
116 | 116 | $this->userId = $this->miscService->secureUsername($request->getAuthor()); |
117 | 117 | } |
118 | 118 | $request->addPart('comments'); |
@@ -125,10 +125,10 @@ discard block |
||
125 | 125 | */ |
126 | 126 | private function searchQueryShareNames(ISearchRequest $request) { |
127 | 127 | $username = $this->miscService->secureUsername($request->getAuthor()); |
128 | - $request->addField('share_names.' . $username); |
|
128 | + $request->addField('share_names.'.$username); |
|
129 | 129 | |
130 | 130 | $request->addWildcardField('title'); |
131 | - $request->addWildcardField('share_names.' . $username); |
|
131 | + $request->addWildcardField('share_names.'.$username); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | |
@@ -146,8 +146,8 @@ discard block |
||
146 | 146 | $currentDir = $this->withoutBeginSlash($this->withEndSlash($currentDir)); |
147 | 147 | $request->addRegexFilters( |
148 | 148 | [ |
149 | - ['share_names.' . $username => $currentDir . '.*'], |
|
150 | - ['title' => $currentDir . '.*'] |
|
149 | + ['share_names.'.$username => $currentDir.'.*'], |
|
150 | + ['title' => $currentDir.'.*'] |
|
151 | 151 | ] |
152 | 152 | ); |
153 | 153 | } |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | $username = $this->miscService->secureUsername($request->getAuthor()); |
166 | 166 | $request->addRegexFilters( |
167 | 167 | [ |
168 | - ['share_names.' . $username => '.*\.' . $extension], |
|
169 | - ['title' => '.*\.' . $extension] |
|
168 | + ['share_names.'.$username => '.*\.'.$extension], |
|
169 | + ['title' => '.*\.'.$extension] |
|
170 | 170 | ] |
171 | 171 | ); |
172 | 172 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | if (in_array('filename', $in)) { |
202 | 202 | $username = $this->miscService->secureUsername($request->getAuthor()); |
203 | - $request->addLimitField('share_names.' . $username); |
|
203 | + $request->addLimitField('share_names.'.$username); |
|
204 | 204 | $request->addLimitField('title'); |
205 | 205 | } |
206 | 206 | |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | $filesDocuments[] = $filesDocument; |
254 | 254 | } catch (Exception $e) { |
255 | 255 | $this->miscService->log( |
256 | - 'Exception while improving searchresult: ' . $e->getMessage() . ' - trace: ' |
|
256 | + 'Exception while improving searchresult: '.$e->getMessage().' - trace: ' |
|
257 | 257 | . json_encode($e->getTrace()) |
258 | 258 | ); |
259 | 259 | } |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | private function getWebdavId(int $fileId): string { |
373 | 373 | $instanceId = $this->configService->getSystemValue('instanceid'); |
374 | 374 | |
375 | - return sprintf("%08s", $fileId) . $instanceId; |
|
375 | + return sprintf("%08s", $fileId).$instanceId; |
|
376 | 376 | } |
377 | 377 | |
378 | 378 |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | ->get($indexOptions->getOption('path', '/')); |
208 | 208 | } catch (Throwable $e) { |
209 | 209 | $this->e($e, ['userId' => $userId, 'options' => $indexOptions]); |
210 | - \OC::$server->getLogger()->log(2, 'Issue while retrieving rootFolder for ' . $userId); |
|
210 | + \OC::$server->getLogger()->log(2, 'Issue while retrieving rootFolder for '.$userId); |
|
211 | 211 | |
212 | 212 | return []; |
213 | 213 | } |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | $document->getIndex() |
575 | 575 | ->setStatus(IIndex::INDEX_IGNORE); |
576 | 576 | $this->miscService->log( |
577 | - 'Exception while generateDocument: ' . $e->getMessage() . ' - trace: ' |
|
577 | + 'Exception while generateDocument: '.$e->getMessage().' - trace: ' |
|
578 | 578 | . json_encode($e->getTrace()) |
579 | 579 | ); |
580 | 580 | } |
@@ -775,7 +775,7 @@ discard block |
||
775 | 775 | |
776 | 776 | $part = []; |
777 | 777 | foreach ($comments as $comment) { |
778 | - $part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage(); |
|
778 | + $part[] = '<'.$comment->getActorId().'> '.$comment->getMessage(); |
|
779 | 779 | } |
780 | 780 | |
781 | 781 | $document->addPart('comments', implode(" \n ", $part)); |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | |
813 | 813 | } catch (Throwable $e) { |
814 | 814 | $this->miscService->log( |
815 | - 'Issue while getting information on documentId:' . $document->getId(), 0 |
|
815 | + 'Issue while getting information on documentId:'.$document->getId(), 0 |
|
816 | 816 | ); |
817 | 817 | } |
818 | 818 | } |
@@ -1251,7 +1251,7 @@ discard block |
||
1251 | 1251 | $path = ''; |
1252 | 1252 | } |
1253 | 1253 | |
1254 | - $result = (($entrySlash) ? '/' : '') . $path; |
|
1254 | + $result = (($entrySlash) ? '/' : '').$path; |
|
1255 | 1255 | $this->debug( |
1256 | 1256 | 'getPathFromRoot', [ |
1257 | 1257 | 'path' => $path, |