]> source.dussan.org Git - nextcloud-server.git/commitdiff
feat(OCS): Annotate capabilities
authorprovokateurin <kate@provokateurin.de>
Mon, 8 Apr 2024 18:08:44 +0000 (20:08 +0200)
committerprovokateurin <kate@provokateurin.de>
Mon, 8 Apr 2024 18:08:44 +0000 (20:08 +0200)
Signed-off-by: provokateurin <kate@provokateurin.de>
lib/private/OCS/CoreCapabilities.php

index 0e9be3460cacce65c2dcb378bd7dbc70e0dd998d..49e88b70dddcc91e923f00cda6604022c4ef4cec 100644 (file)
@@ -42,12 +42,21 @@ class CoreCapabilities implements ICapability {
 
        /**
         * Return this classes capabilities
+        *
+        * @return array{
+        *     core: array{
+        *         pollinterval: int,
+        *         webdav-root: string,
+        *         reference-api: boolean,
+        *         reference-regex: string,
+        *     },
+        * }
         */
        public function getCapabilities(): array {
                return [
                        'core' => [
-                               'pollinterval' => $this->config->getSystemValue('pollinterval', 60),
-                               'webdav-root' => $this->config->getSystemValue('webdav-root', 'remote.php/webdav'),
+                               'pollinterval' => $this->config->getSystemValueInt('pollinterval', 60),
+                               'webdav-root' => $this->config->getSystemValueString('webdav-root', 'remote.php/webdav'),
                                'reference-api' => true,
                                'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS,
                        ],