@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | ?string $probeSum, |
| 353 | 353 | ): string { |
| 354 | 354 | $pathHash = \md5($path); |
| 355 | - return $federatedUser->getSingleId() . '#' |
|
| 356 | - . $pathHash . '#' |
|
| 357 | - . $forChildren . '#' |
|
| 355 | + return $federatedUser->getSingleId().'#' |
|
| 356 | + . $pathHash.'#' |
|
| 357 | + . $forChildren.'#' |
|
| 358 | 358 | . $probeSum; |
| 359 | 359 | } |
| 360 | 360 | |
@@ -370,8 +370,8 @@ discard block |
||
| 370 | 370 | int $nodeId, |
| 371 | 371 | string $probeSum, |
| 372 | 372 | ): string { |
| 373 | - return $federatedUser->getSingleId() . '#' |
|
| 374 | - . $nodeId . '#' |
|
| 373 | + return $federatedUser->getSingleId().'#' |
|
| 374 | + . $nodeId.'#' |
|
| 375 | 375 | . $probeSum; |
| 376 | 376 | } |
| 377 | 377 | } |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $childAlias = $qb->leftJoinShareChild(CoreQueryBuilder::SHARE); |
| 385 | 385 | |
| 386 | 386 | if ($forChildren) { |
| 387 | - $qb->limitToFileTargetLike($path . '_%', $childAlias); |
|
| 387 | + $qb->limitToFileTargetLike($path.'_%', $childAlias); |
|
| 388 | 388 | } else { |
| 389 | 389 | $qb->limitToFileTarget($path, $childAlias); |
| 390 | 390 | } |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | if ($shallow) { |
| 465 | 465 | $qb->limitInt('parent', $node->getId(), $aliasFileCache); |
| 466 | 466 | } else { |
| 467 | - $qb->like('path', $node->getInternalPath() . '/%', $aliasFileCache); |
|
| 467 | + $qb->like('path', $node->getInternalPath().'/%', $aliasFileCache); |
|
| 468 | 468 | } |
| 469 | 469 | $qb->limitNull('parent', false); |
| 470 | 470 | |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | } |
| 525 | 525 | |
| 526 | 526 | $ids = array_map( |
| 527 | - function (ShareWrapper $share): string { |
|
| 527 | + function(ShareWrapper $share): string { |
|
| 528 | 528 | return $share->getId(); |
| 529 | 529 | }, |
| 530 | 530 | $this->getItemsFromRequest($qb) |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | $expr = $qb->expr(); |
| 540 | 540 | $qb->leftJoin( |
| 541 | 541 | CoreQueryBuilder::SHARE, CoreRequestBuilder::TABLE_SHARE, 'p', |
| 542 | - $expr->andX($expr->eq('p.id', CoreQueryBuilder::SHARE . '.parent')) |
|
| 542 | + $expr->andX($expr->eq('p.id', CoreQueryBuilder::SHARE.'.parent')) |
|
| 543 | 543 | ); |
| 544 | 544 | |
| 545 | 545 | $qb->filterNull('parent'); |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | |
| 414 | 414 | return array_filter( |
| 415 | 415 | array_map( |
| 416 | - function (ShareWrapper $wrapper) { |
|
| 416 | + function(ShareWrapper $wrapper) { |
|
| 417 | 417 | return $wrapper->getShare($this->rootFolder, $this->userManager, $this->urlGenerator); |
| 418 | 418 | }, $wrappedShares |
| 419 | 419 | ) |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | |
| 466 | 466 | return array_filter( |
| 467 | 467 | array_map( |
| 468 | - function (ShareWrapper $wrapper) { |
|
| 468 | + function(ShareWrapper $wrapper) { |
|
| 469 | 469 | return $wrapper->getShare($this->rootFolder, $this->userManager, $this->urlGenerator); |
| 470 | 470 | }, $wrappedShares |
| 471 | 471 | ) |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | |
| 515 | 515 | return array_filter( |
| 516 | 516 | array_map( |
| 517 | - function (ShareWrapper $wrapper) { |
|
| 517 | + function(ShareWrapper $wrapper) { |
|
| 518 | 518 | return $wrapper->getShare( |
| 519 | 519 | $this->rootFolder, $this->userManager, $this->urlGenerator, true |
| 520 | 520 | ); |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | /** @var array<string, IShare> */ |
| 554 | 554 | return array_filter( |
| 555 | 555 | array_map( |
| 556 | - function (ShareWrapper $wrapper) { |
|
| 556 | + function(ShareWrapper $wrapper) { |
|
| 557 | 557 | return $wrapper->getShare( |
| 558 | 558 | $this->rootFolder, $this->userManager, $this->urlGenerator, true |
| 559 | 559 | ); |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | |
| 584 | 584 | $share = $wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator); |
| 585 | 585 | if ($share->getPassword() !== '') { |
| 586 | - $this->logger->notice('share is protected by a password, hash: ' . $share->getPassword()); |
|
| 586 | + $this->logger->notice('share is protected by a password, hash: '.$share->getPassword()); |
|
| 587 | 587 | } |
| 588 | 588 | |
| 589 | 589 | return $share; |
@@ -697,7 +697,7 @@ discard block |
||
| 697 | 697 | ]; |
| 698 | 698 | } else { |
| 699 | 699 | // we only store temp value, as token is unknown at this point |
| 700 | - $remote[$member->getUserid() . '@' . $member->getInstance()] = [ |
|
| 700 | + $remote[$member->getUserid().'@'.$member->getInstance()] = [ |
|
| 701 | 701 | 'node_id' => $share->getFileSource(), |
| 702 | 702 | 'shareId' => $share->getId(), |
| 703 | 703 | 'memberId' => $member->getId(), |