@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | } |
236 | 236 | |
237 | 237 | public function getId(): string { |
238 | - return 'shared::' . $this->getMountPoint(); |
|
238 | + return 'shared::'.$this->getMountPoint(); |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | public function getPermissions(string $path = ''): int { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | } |
258 | 258 | |
259 | 259 | public function isCreatable(string $path): bool { |
260 | - return (bool)($this->getPermissions($path) & Constants::PERMISSION_CREATE); |
|
260 | + return (bool) ($this->getPermissions($path) & Constants::PERMISSION_CREATE); |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | public function isReadable(string $path): bool { |
@@ -274,18 +274,18 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | public function isUpdatable(string $path): bool { |
277 | - return (bool)($this->getPermissions($path) & Constants::PERMISSION_UPDATE); |
|
277 | + return (bool) ($this->getPermissions($path) & Constants::PERMISSION_UPDATE); |
|
278 | 278 | } |
279 | 279 | |
280 | 280 | public function isDeletable(string $path): bool { |
281 | - return (bool)($this->getPermissions($path) & Constants::PERMISSION_DELETE); |
|
281 | + return (bool) ($this->getPermissions($path) & Constants::PERMISSION_DELETE); |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | public function isSharable(string $path): bool { |
285 | 285 | if (Util::isSharingDisabledForUser() || !Share::isResharingAllowed()) { |
286 | 286 | return false; |
287 | 287 | } |
288 | - return (bool)($this->getPermissions($path) & Constants::PERMISSION_SHARE); |
|
288 | + return (bool) ($this->getPermissions($path) & Constants::PERMISSION_SHARE); |
|
289 | 289 | } |
290 | 290 | |
291 | 291 | public function fopen(string $path, string $mode) { |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | } |
333 | 333 | } |
334 | 334 | $info = [ |
335 | - 'target' => $this->getMountPoint() . '/' . $path, |
|
335 | + 'target' => $this->getMountPoint().'/'.$path, |
|
336 | 336 | 'source' => $source, |
337 | 337 | 'mode' => $mode, |
338 | 338 | ]; |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | return new Scanner($storage); |
427 | 427 | } |
428 | 428 | |
429 | - public function getOwner(string $path): string|false { |
|
429 | + public function getOwner(string $path): string | false { |
|
430 | 430 | return $this->superShare->getShareOwner(); |
431 | 431 | } |
432 | 432 | |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | * @psalm-suppress DocblockTypeContradiction |
521 | 521 | */ |
522 | 522 | if (!$this->storage) { |
523 | - $message = 'no storage set after init for share ' . $this->getShareId(); |
|
523 | + $message = 'no storage set after init for share '.$this->getShareId(); |
|
524 | 524 | $this->logger->error($message); |
525 | 525 | $this->storage = new FailedStorage(['exception' => new \Exception($message)]); |
526 | 526 | } |
@@ -528,18 +528,18 @@ discard block |
||
528 | 528 | return $this->storage; |
529 | 529 | } |
530 | 530 | |
531 | - public function file_get_contents(string $path): string|false { |
|
531 | + public function file_get_contents(string $path): string | false { |
|
532 | 532 | $info = [ |
533 | - 'target' => $this->getMountPoint() . '/' . $path, |
|
533 | + 'target' => $this->getMountPoint().'/'.$path, |
|
534 | 534 | 'source' => $this->getUnjailedPath($path), |
535 | 535 | ]; |
536 | 536 | Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info); |
537 | 537 | return parent::file_get_contents($path); |
538 | 538 | } |
539 | 539 | |
540 | - public function file_put_contents(string $path, mixed $data): int|float|false { |
|
540 | + public function file_put_contents(string $path, mixed $data): int | float | false { |
|
541 | 541 | $info = [ |
542 | - 'target' => $this->getMountPoint() . '/' . $path, |
|
542 | + 'target' => $this->getMountPoint().'/'.$path, |
|
543 | 543 | 'source' => $this->getUnjailedPath($path), |
544 | 544 | ]; |
545 | 545 | Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info); |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | return parent::getUnjailedPath($path); |
557 | 557 | } |
558 | 558 | |
559 | - public function getDirectDownload(string $path): array|false { |
|
559 | + public function getDirectDownload(string $path): array | false { |
|
560 | 560 | // disable direct download for shares |
561 | 561 | return []; |
562 | 562 | } |