mirror of
https://github.com/nextcloud/server.git
synced 2026-03-11 02:41:25 -04:00
Fix psalm issues
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
6638b5411e
commit
9dade992ad
1 changed files with 6 additions and 0 deletions
|
|
@ -150,9 +150,15 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
|
|||
// get target node for proper path conversion
|
||||
if ($this->server->tree->nodeExists($destinationPath)) {
|
||||
$destinationNode = $this->server->tree->getNodeForPath($destinationPath);
|
||||
if (!$destinationNode instanceof Node) {
|
||||
return false;
|
||||
}
|
||||
$path = $destinationNode->getPath();
|
||||
} else {
|
||||
$parentNode = $this->server->tree->getNodeForPath(dirname($destinationPath));
|
||||
if (!$parentNode instanceof Node) {
|
||||
return false;
|
||||
}
|
||||
$path = $parentNode->getPath();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue