@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | ->get($indexOptions->getOption('path', '/')); |
232 | 232 | } catch (Throwable $e) { |
233 | 233 | $this->e($e, ['userId' => $userId, 'options' => $indexOptions]); |
234 | - \OC::$server->getLogger()->log(2, 'Issue while retrieving rootFolder for ' . $userId); |
|
234 | + \OC::$server->getLogger()->log(2, 'Issue while retrieving rootFolder for '.$userId); |
|
235 | 235 | |
236 | 236 | return []; |
237 | 237 | } |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | $tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files'); |
482 | 482 | if (array_key_exists($file->getId(), $tagIds)) { |
483 | 483 | $tags = array_values( |
484 | - array_map(function (ISystemTag $tag): string { |
|
484 | + array_map(function(ISystemTag $tag): string { |
|
485 | 485 | return $tag->getName(); |
486 | 486 | }, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()])) |
487 | 487 | ); |
@@ -615,8 +615,8 @@ discard block |
||
615 | 615 | $document->getIndex() |
616 | 616 | ->setStatus(IIndex::INDEX_IGNORE); |
617 | 617 | $this->miscService->log( |
618 | - 'Exception while generateDocument: ' . $e->getMessage() . ' (' . get_class($e) . ') at ' |
|
619 | - . $e->getFile() . ' line ' . $e->getLine() |
|
618 | + 'Exception while generateDocument: '.$e->getMessage().' ('.get_class($e).') at ' |
|
619 | + . $e->getFile().' line '.$e->getLine() |
|
620 | 620 | ); |
621 | 621 | } |
622 | 622 | } |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | |
820 | 820 | $part = []; |
821 | 821 | foreach ($comments as $comment) { |
822 | - $part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage(); |
|
822 | + $part[] = '<'.$comment->getActorId().'> '.$comment->getMessage(); |
|
823 | 823 | } |
824 | 824 | |
825 | 825 | $document->addPart('comments', implode(" \n ", $part)); |
@@ -854,7 +854,7 @@ discard block |
||
854 | 854 | (!is_string($path)) ? $path = '' : $path; |
855 | 855 | } catch (Throwable $e) { |
856 | 856 | $this->miscService->log( |
857 | - 'Issue while getting information on documentId:' . $document->getId(), 0 |
|
857 | + 'Issue while getting information on documentId:'.$document->getId(), 0 |
|
858 | 858 | ); |
859 | 859 | } |
860 | 860 | } |
@@ -1292,7 +1292,7 @@ discard block |
||
1292 | 1292 | $path = ''; |
1293 | 1293 | } |
1294 | 1294 | |
1295 | - $result = (($entrySlash) ? '/' : '') . $path; |
|
1295 | + $result = (($entrySlash) ? '/' : '').$path; |
|
1296 | 1296 | $this->debug( |
1297 | 1297 | 'getPathFromRoot', [ |
1298 | 1298 | 'path' => $path, |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param FilesDocument $document |
160 | 160 | * @param Node $file |
161 | 161 | */ |
162 | - public function updateDocumentAccess(FilesDocument &$document, Node $file) { |
|
162 | + public function updateDocumentAccess(FilesDocument & $document, Node $file) { |
|
163 | 163 | if ($document->getSource() !== ConfigService::FILES_GROUP_FOLDERS) { |
164 | 164 | return; |
165 | 165 | } |
@@ -222,7 +222,7 @@ discard block |
||
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 | } |
@@ -122,10 +122,10 @@ discard block |
||
122 | 122 | */ |
123 | 123 | private function searchQueryShareNames(ISearchRequest $request) { |
124 | 124 | $username = $this->miscService->secureUsername($request->getAuthor()); |
125 | - $request->addField('share_names.' . $username); |
|
125 | + $request->addField('share_names.'.$username); |
|
126 | 126 | |
127 | 127 | $request->addWildcardField('title'); |
128 | - $request->addWildcardField('share_names.' . $username); |
|
128 | + $request->addWildcardField('share_names.'.$username); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | |
@@ -142,8 +142,8 @@ discard block |
||
142 | 142 | $currentDir = $this->withoutBeginSlash($this->withEndSlash($currentDir)); |
143 | 143 | $request->addRegexFilters( |
144 | 144 | [ |
145 | - ['share_names.' . $username => $currentDir . '.*'], |
|
146 | - ['title' => $currentDir . '.*'] |
|
145 | + ['share_names.'.$username => $currentDir.'.*'], |
|
146 | + ['title' => $currentDir.'.*'] |
|
147 | 147 | ] |
148 | 148 | ); |
149 | 149 | } |
@@ -161,8 +161,8 @@ discard block |
||
161 | 161 | $username = $this->miscService->secureUsername($request->getAuthor()); |
162 | 162 | $request->addRegexFilters( |
163 | 163 | [ |
164 | - ['share_names.' . $username => '.*\.' . $extension], |
|
165 | - ['title' => '.*\.' . $extension] |
|
164 | + ['share_names.'.$username => '.*\.'.$extension], |
|
165 | + ['title' => '.*\.'.$extension] |
|
166 | 166 | ] |
167 | 167 | ); |
168 | 168 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | if (in_array('filename', $in)) { |
197 | 197 | $username = $this->miscService->secureUsername($request->getAuthor()); |
198 | - $request->addLimitField('share_names.' . $username); |
|
198 | + $request->addLimitField('share_names.'.$username); |
|
199 | 199 | $request->addLimitField('title'); |
200 | 200 | } |
201 | 201 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $filesDocuments[] = $filesDocument; |
248 | 248 | } catch (Exception $e) { |
249 | 249 | $this->miscService->log( |
250 | - 'Exception while improving searchresult: ' . $e->getMessage() . ' - trace: ' |
|
250 | + 'Exception while improving searchresult: '.$e->getMessage().' - trace: ' |
|
251 | 251 | . json_encode($e->getTrace()) |
252 | 252 | ); |
253 | 253 | } |
@@ -365,6 +365,6 @@ discard block |
||
365 | 365 | private function getWebdavId(int $fileId): string { |
366 | 366 | $instanceId = $this->configService->getSystemValue('instanceid'); |
367 | 367 | |
368 | - return sprintf("%08s", $fileId) . $instanceId; |
|
368 | + return sprintf("%08s", $fileId).$instanceId; |
|
369 | 369 | } |
370 | 370 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | use OCP\Share\Events\ShareDeletedEvent; |
50 | 50 | use Throwable; |
51 | 51 | |
52 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
52 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
53 | 53 | |
54 | 54 | |
55 | 55 | /** |