@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | #[Override] |
| 263 | 263 | public function propPatch($path, PropPatch $propPatch): void { |
| 264 | - $propPatch->handleRemaining(function (array $changedProps) use ($path) { |
|
| 264 | + $propPatch->handleRemaining(function(array $changedProps) use ($path) { |
|
| 265 | 265 | return $this->updateProperties($path, $changedProps); |
| 266 | 266 | }); |
| 267 | 267 | } |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | * Prefetch all user properties in a directory |
| 358 | 358 | */ |
| 359 | 359 | private function cacheDirectory(string $path, Directory $node): void { |
| 360 | - $prefix = ltrim($path . '/', '/'); |
|
| 360 | + $prefix = ltrim($path.'/', '/'); |
|
| 361 | 361 | $query = $this->connection->getQueryBuilder(); |
| 362 | 362 | $query->select('name', 'p.propertypath', 'p.propertyname', 'p.propertyvalue', 'p.valuetype') |
| 363 | 363 | ->from('filecache', 'f') |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | $propsByPath = []; |
| 378 | 378 | |
| 379 | 379 | while ($row = $result->fetch()) { |
| 380 | - $childPath = $prefix . $row['name']; |
|
| 380 | + $childPath = $prefix.$row['name']; |
|
| 381 | 381 | if (!isset($propsByPath[$childPath])) { |
| 382 | 382 | $propsByPath[$childPath] = []; |
| 383 | 383 | } |
@@ -396,16 +396,16 @@ discard block |
||
| 396 | 396 | if ($calendar instanceof Calendar) { |
| 397 | 397 | $user = str_replace('principals/users/', '', $calendar->getPrincipalURI()); |
| 398 | 398 | if (!isset($users[$user])) { |
| 399 | - $users[$user] = ['calendars/' . $user]; |
|
| 399 | + $users[$user] = ['calendars/'.$user]; |
|
| 400 | 400 | } |
| 401 | - $users[$user][] = 'calendars/' . $user . '/' . $calendar->getUri(); |
|
| 401 | + $users[$user][] = 'calendars/'.$user.'/'.$calendar->getUri(); |
|
| 402 | 402 | } elseif ($calendar instanceof Inbox || $calendar instanceof Outbox || $calendar instanceof TrashbinHome || $calendar instanceof ExternalCalendar) { |
| 403 | 403 | if ($calendar->getOwner()) { |
| 404 | 404 | $user = str_replace('principals/users/', '', $calendar->getOwner()); |
| 405 | 405 | if (!isset($users[$user])) { |
| 406 | - $users[$user] = ['calendars/' . $user]; |
|
| 406 | + $users[$user] = ['calendars/'.$user]; |
|
| 407 | 407 | } |
| 408 | - $users[$user][] = 'calendars/' . $user . '/' . $calendar->getName(); |
|
| 408 | + $users[$user][] = 'calendars/'.$user.'/'.$calendar->getName(); |
|
| 409 | 409 | } |
| 410 | 410 | } |
| 411 | 411 | } |
@@ -585,7 +585,7 @@ discard block |
||
| 585 | 585 | $this->validateProperty($path, $name, $value); |
| 586 | 586 | } catch (DavException $e) { |
| 587 | 587 | throw new DavException( |
| 588 | - "Property \"$name\" has an invalid value: " . $e->getMessage(), |
|
| 588 | + "Property \"$name\" has an invalid value: ".$e->getMessage(), |
|
| 589 | 589 | 0, |
| 590 | 590 | $e, |
| 591 | 591 | ); |
@@ -634,7 +634,7 @@ discard block |
||
| 634 | 634 | |
| 635 | 635 | try { |
| 636 | 636 | // Build path relative to the dav base URI to be used later to find the node |
| 637 | - $value = new LocalHref($this->server->calculateUri($href) . '/'); |
|
| 637 | + $value = new LocalHref($this->server->calculateUri($href).'/'); |
|
| 638 | 638 | } catch (DavException\Forbidden) { |
| 639 | 639 | // Not existing calendars will be handled later when the value is validated |
| 640 | 640 | } |