diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-12 14:01:13 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-05 22:03:59 +0200 |
commit | 829490ab7a02579c6b31573c3f53428e86cbf2e0 (patch) | |
tree | 1f644d168039ea1875398234419ace13f49dac5f /apps/dav/lib/Connector/Sabre/CachingTree.php | |
parent | 0690646d09430ce363b07bc2cd59283e303314eb (diff) | |
download | nextcloud-server-829490ab7a02579c6b31573c3f53428e86cbf2e0.tar.gz nextcloud-server-829490ab7a02579c6b31573c3f53428e86cbf2e0.zip |
Cleanup dav
- Remove unused class AppEnabledPlugin
- Add more type hinting when possible
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/CachingTree.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/CachingTree.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/CachingTree.php b/apps/dav/lib/Connector/Sabre/CachingTree.php index eb1233d3540..81ffd47a977 100644 --- a/apps/dav/lib/Connector/Sabre/CachingTree.php +++ b/apps/dav/lib/Connector/Sabre/CachingTree.php @@ -28,17 +28,18 @@ use Sabre\DAV\Tree; class CachingTree extends Tree { /** * Store a node in the cache - * - * @param Node $node - * @param null|string $path */ - public function cacheNode(Node $node, $path = null) { + public function cacheNode(Node $node, ?string $path = null): void { if (is_null($path)) { $path = $node->getPath(); } $this->cache[trim($path, '/')] = $node; } + /** + * @param string $path + * @return void + */ public function markDirty($path) { // We don't care enough about sub-paths // flushing the entire cache |