@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | $l10n = \OCP\Server::get(IFactory::class)->get('circles'); |
451 | 451 | $display = $l10n->t('%s (Team owned by %s)', [$display, $circle->getOwner()->getDisplayName()]); |
452 | 452 | } else { |
453 | - $display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')'; |
|
453 | + $display .= ' ('.Circle::$DEF_SOURCE[$circle->getSource()].')'; |
|
454 | 454 | } |
455 | 455 | |
456 | 456 | $share->setSharedWithDisplayName($display); |
@@ -540,22 +540,22 @@ discard block |
||
540 | 540 | |
541 | 541 | public function importFromDatabase(array $data, string $prefix = ''): IQueryRow { |
542 | 542 | $shareTime = new DateTime(); |
543 | - $shareTime->setTimestamp($this->getInt($prefix . 'stime', $data)); |
|
544 | - |
|
545 | - $this->setId($this->get($prefix . 'id', $data)) |
|
546 | - ->setShareType($this->getInt($prefix . 'share_type', $data)) |
|
547 | - ->setPermissions($this->getInt($prefix . 'permissions', $data)) |
|
548 | - ->setItemType($this->get($prefix . 'item_type', $data)) |
|
549 | - ->setItemSource($this->getInt($prefix . 'item_source', $data)) |
|
550 | - ->setItemTarget($this->get($prefix . 'item_target', $data)) |
|
551 | - ->setFileSource($this->getInt($prefix . 'file_source', $data)) |
|
552 | - ->setFileTarget($this->get($prefix . 'file_target', $data)) |
|
553 | - ->setSharedWith($this->get($prefix . 'share_with', $data)) |
|
554 | - ->setSharedBy($this->get($prefix . 'uid_initiator', $data)) |
|
555 | - ->setShareOwner($this->get($prefix . 'uid_owner', $data)) |
|
556 | - ->setToken($this->get($prefix . 'token', $data)) |
|
543 | + $shareTime->setTimestamp($this->getInt($prefix.'stime', $data)); |
|
544 | + |
|
545 | + $this->setId($this->get($prefix.'id', $data)) |
|
546 | + ->setShareType($this->getInt($prefix.'share_type', $data)) |
|
547 | + ->setPermissions($this->getInt($prefix.'permissions', $data)) |
|
548 | + ->setItemType($this->get($prefix.'item_type', $data)) |
|
549 | + ->setItemSource($this->getInt($prefix.'item_source', $data)) |
|
550 | + ->setItemTarget($this->get($prefix.'item_target', $data)) |
|
551 | + ->setFileSource($this->getInt($prefix.'file_source', $data)) |
|
552 | + ->setFileTarget($this->get($prefix.'file_target', $data)) |
|
553 | + ->setSharedWith($this->get($prefix.'share_with', $data)) |
|
554 | + ->setSharedBy($this->get($prefix.'uid_initiator', $data)) |
|
555 | + ->setShareOwner($this->get($prefix.'uid_owner', $data)) |
|
556 | + ->setToken($this->get($prefix.'token', $data)) |
|
557 | 557 | ->setShareTime($shareTime) |
558 | - ->setShareNote($this->get($prefix . 'note', $data)); |
|
558 | + ->setShareNote($this->get($prefix.'note', $data)); |
|
559 | 559 | |
560 | 560 | $this->importAttributesFromDatabase($this->get('attributes', $data)); |
561 | 561 | |
@@ -565,9 +565,9 @@ discard block |
||
565 | 565 | // $share->setPassword($this->get('password', $data, '')); |
566 | 566 | // } |
567 | 567 | |
568 | - $this->setChildId($this->getInt($prefix . 'child_id', $data)) |
|
569 | - ->setChildFileTarget($this->get($prefix . 'child_file_target', $data)) |
|
570 | - ->setChildPermissions($this->getInt($prefix . 'child_permissions', $data)) |
|
568 | + $this->setChildId($this->getInt($prefix.'child_id', $data)) |
|
569 | + ->setChildFileTarget($this->get($prefix.'child_file_target', $data)) |
|
570 | + ->setChildPermissions($this->getInt($prefix.'child_permissions', $data)) |
|
571 | 571 | ->setProviderId(ShareByCircleProvider::IDENTIFIER) |
572 | 572 | ->setStatus(Ishare::STATUS_ACCEPTED); |
573 | 573 |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * @throws SingleCircleNotFoundException |
229 | 229 | */ |
230 | 230 | public function syncNextcloudUser(string $userId): FederatedUser { |
231 | - $this->outputService->output('Syncing Nextcloud Account \'' . $userId . '\'', true); |
|
231 | + $this->outputService->output('Syncing Nextcloud Account \''.$userId.'\'', true); |
|
232 | 232 | |
233 | 233 | return $this->federatedUserService->getLocalFederatedUser($userId, false, true); |
234 | 234 | } |
@@ -272,12 +272,12 @@ discard block |
||
272 | 272 | * @throws RequestBuilderException |
273 | 273 | */ |
274 | 274 | public function syncNextcloudGroup(string $groupId): Circle { |
275 | - $this->outputService->output('Syncing Nextcloud Group \'' . $groupId . '\'', true); |
|
275 | + $this->outputService->output('Syncing Nextcloud Group \''.$groupId.'\'', true); |
|
276 | 276 | |
277 | 277 | $circle = $this->federatedUserService->getGroupCircle($groupId); |
278 | 278 | $this->circleService->updateDisplayName($circle->getSingleId(), $this->groupManager->getDisplayName($groupId)); |
279 | 279 | |
280 | - $members = array_map(function (Member $member): string { |
|
280 | + $members = array_map(function(Member $member): string { |
|
281 | 281 | return $member->getSingleId(); |
282 | 282 | }, $this->memberRequest->getMembers($circle->getSingleId())); |
283 | 283 | |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | */ |
356 | 356 | public function groupDeleted(string $groupId): void { |
357 | 357 | $circle = new Circle(); |
358 | - $circle->setName('group:' . $groupId) |
|
358 | + $circle->setName('group:'.$groupId) |
|
359 | 359 | ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN) |
360 | 360 | ->setSource(Member::TYPE_GROUP); |
361 | 361 |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | public const TIMEOUT = 18000; |
45 | 45 | public static $DELAY = |
46 | 46 | [ |
47 | - 1 => 60, // every minute |
|
48 | - 2 => 300, // every 5 minutes |
|
49 | - 3 => 3600, // every hour |
|
47 | + 1 => 60, // every minute |
|
48 | + 2 => 300, // every 5 minutes |
|
49 | + 3 => 3600, // every hour |
|
50 | 50 | 4 => 75400, // every day |
51 | 51 | 5 => 432000 // evey week |
52 | 52 | ]; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $this->federatedUserService->bypassCurrentUserCondition(true); |
97 | 97 | |
98 | 98 | $this->lockMaintenanceRun(); |
99 | - $this->debug('running maintenance (' . $level . ')'); |
|
99 | + $this->debug('running maintenance ('.$level.')'); |
|
100 | 100 | |
101 | 101 | switch ($level) { |
102 | 102 | case 1: |
@@ -289,14 +289,14 @@ discard block |
||
289 | 289 | ->includeSystemCircles(); |
290 | 290 | |
291 | 291 | $circles = array_map( |
292 | - function (Circle $circle) { |
|
292 | + function(Circle $circle) { |
|
293 | 293 | return $circle->getSingleId(); |
294 | 294 | }, $this->circleRequest->getCircles(null, $probe) |
295 | 295 | ); |
296 | 296 | |
297 | 297 | $shares = array_unique( |
298 | 298 | array_map( |
299 | - function (ShareWrapper $share) { |
|
299 | + function(ShareWrapper $share) { |
|
300 | 300 | return $share->getSharedWith(); |
301 | 301 | }, $this->shareWrapperRequest->getShares() |
302 | 302 | ) |
@@ -438,6 +438,6 @@ discard block |
||
438 | 438 | * @param string $message |
439 | 439 | */ |
440 | 440 | private function output(string $message): void { |
441 | - $this->output?->writeln('- ' . $message); |
|
441 | + $this->output?->writeln('- '.$message); |
|
442 | 442 | } |
443 | 443 | } |